summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2016-07-15 19:11:53 (GMT)
committerChristian Pointner <equinox@helsinki.at>2016-07-15 19:11:53 (GMT)
commit0b75bce8c4faf9cc634ad45a6093100aedeacd79 (patch)
treebe5ef0d824fa4200c4e6f5a0ad66e03296b3504a
parent7ca03399cd4540188016b12ca59444f241bbbb17 (diff)
respect SampleRate and Channel settings from rd.conf
-rw-r--r--src/rhimportd/main.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/rhimportd/main.go b/src/rhimportd/main.go
index 7f0a4ce..57f8c95 100644
--- a/src/rhimportd/main.go
+++ b/src/rhimportd/main.go
@@ -122,7 +122,11 @@ func main() {
return
}
- conf := rhimport.NewConfig(rdxportUrl.Get().(string), tempDir.Get().(string), localFetchDir.Get().(string))
+ conf, err := rhimport.NewConfig(rdconf.Get().(string), rdxportUrl.Get().(string), tempDir.Get().(string), localFetchDir.Get().(string))
+ if err != nil {
+ rhl.Println("Error parsing configuration file:", err)
+ return
+ }
db, err := rddb.NewDB(rdconf.Get().(string))
if err != nil {