summaryrefslogtreecommitdiff
path: root/rhimport
diff options
context:
space:
mode:
Diffstat (limited to 'rhimport')
-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"