summaryrefslogtreecommitdiff
path: root/src/helsinki.at/rhimport/fetcher.go
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2015-12-08 10:50:37 (GMT)
committerChristian Pointner <equinox@helsinki.at>2015-12-08 10:50:37 (GMT)
commita6b29b342a73582a7f02877dda648d8d7a44ec57 (patch)
tree6d782f9e2e23040f79dadf9af7e5a54154573045 /src/helsinki.at/rhimport/fetcher.go
parentabff4760fe4aede34b60fbefc8f398ad2370304e (diff)
import_file should be done
Diffstat (limited to 'src/helsinki.at/rhimport/fetcher.go')
-rw-r--r--src/helsinki.at/rhimport/fetcher.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/helsinki.at/rhimport/fetcher.go b/src/helsinki.at/rhimport/fetcher.go
index 1a5801b..97fe7ff 100644
--- a/src/helsinki.at/rhimport/fetcher.go
+++ b/src/helsinki.at/rhimport/fetcher.go
@@ -24,11 +24,15 @@
package rhimport
+import (
+ "path"
+)
+
func FetchFile(ctx *ImportContext) (err error) {
// TODO: fetch file from ctx.SourceUri and put it into ctx.Config.TempDir
- ctx.SourceFile = ctx.Config.TempDir + "/source-file.ogg"
+ ctx.SourceFile = ctx.Config.TempDir + "/" + path.Base(ctx.SourceUri)
ctx.DeleteSourceFile = true
return
}