From cb828ee5f54f20651a18bafc3fbff5458b755b4b Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Thu, 4 Aug 2016 19:10:07 +0200 Subject: make use of new session based file cleanup diff --git a/src/pool-import/main.go b/src/pool-import/main.go index 36300bf..7de3b55 100644 --- a/src/pool-import/main.go +++ b/src/pool-import/main.go @@ -57,7 +57,6 @@ func HandleCart(cart uint, cut uint, artist, album, title, dstgroup string, sess ctx.Trusted = true ctx.GroupName = dstgroup ctx.SourceUri = "local:///" + filename - ctx.SourceFilePolicy = rhimport.Keep ctx.FetchConverter = "ffmpeg-bs1770" ctx.ExtraMetaData["ARTIST"] = artist ctx.ExtraMetaData["ALBUM"] = album @@ -106,7 +105,7 @@ func main() { oldGroup := os.Args[1] newGroup := os.Args[2] - conf, err := rhimport.NewConfig(NEW_RD_CONF, "http://localhost/rd-bin/rdxport.cgi", "tmp/", "snd/") + conf, err := rhimport.NewConfig(NEW_RD_CONF, "http://localhost/rd-bin/rdxport.cgi", "/tmp/", "snd/") if err != nil { log.Fatal("Error parsing configuration file:", err) } -- cgit v0.10.2