summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2016-07-07 14:57:08 (GMT)
committerChristian Pointner <equinox@helsinki.at>2016-07-07 14:57:08 (GMT)
commit25ef4599cae337a2ca7650878d601ec3530528b2 (patch)
treece7d53fe77b946848365bdead1ac235502a94c9a
parentd4a48a491f9ee9ece54f7a3e38ef4d76f8543425 (diff)
minor bugfixes with metadata format
-rw-r--r--rhimport/converter.go2
-rw-r--r--rhimport/fetcher.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/rhimport/converter.go b/rhimport/converter.go
index f48a041..e8e693f 100644
--- a/rhimport/converter.go
+++ b/rhimport/converter.go
@@ -100,7 +100,7 @@ func NewFFMpegFetchConverter(filename string, metadata map[string]string) (ff *F
ff.cmd = exec.Command("ffmpeg", "-loglevel", "warning", "-i", "-", "-map_metadata", "0")
if metadata != nil {
for key, value := range metadata {
- ff.cmd.Args = append(ff.cmd.Args, "-metadata", fmt.Sprintf("%s=%q", key, value))
+ ff.cmd.Args = append(ff.cmd.Args, "-metadata", fmt.Sprintf("%s=%s", key, value))
}
}
ff.cmd.Args = append(ff.cmd.Args, "-f", "flac", filenameFlac)
diff --git a/rhimport/fetcher.go b/rhimport/fetcher.go
index e4e03c9..05c8725 100644
--- a/rhimport/fetcher.go
+++ b/rhimport/fetcher.go
@@ -293,7 +293,7 @@ func fetchFileArchiv(ctx *Context, res *Result, uri *url.URL) (err error) {
easy.Setopt(curl.OPT_BUFFERSIZE, 1024*1024)
cbdata.metadata = make(map[string]string)
- cbdata.metadata["TITLE"] = fmt.Sprintf("Archiv vom %s - %s Uhr", start.Format("2.1.6 03:04"), end.Format("03:04"))
+ cbdata.metadata["TITLE"] = fmt.Sprintf("Archiv vom %s - %s Uhr", start.Format("2.1.2006 15:04"), end.Format("15:04"))
cbdata.metadata["ALBUM"] = "Radio Helsinki Archiv"
cbdata.metadata["ORGANIZATION"] = "Radio Helsinki"