summaryrefslogtreecommitdiff
path: root/src/helsinki.at/rhimport/fetcher.go
diff options
context:
space:
mode:
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
}