diff options
author | Christian Pointner <equinox@helsinki.at> | 2016-07-15 19:11:53 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2016-07-15 19:11:53 (GMT) |
commit | 0b75bce8c4faf9cc634ad45a6093100aedeacd79 (patch) | |
tree | be5ef0d824fa4200c4e6f5a0ad66e03296b3504a /src | |
parent | 7ca03399cd4540188016b12ca59444f241bbbb17 (diff) |
respect SampleRate and Channel settings from rd.conf
Diffstat (limited to 'src')
-rw-r--r-- | src/rhimportd/main.go | 6 |
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 { |