From 0b75bce8c4faf9cc634ad45a6093100aedeacd79 Mon Sep 17 00:00:00 2001
From: Christian Pointner <equinox@helsinki.at>
Date: Fri, 15 Jul 2016 21:11:53 +0200
Subject: respect SampleRate and Channel settings from rd.conf


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 {
-- 
cgit v0.10.2