summaryrefslogtreecommitdiff
path: root/rhimport/core.go
diff options
context:
space:
mode:
Diffstat (limited to 'rhimport/core.go')
-rw-r--r--rhimport/core.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/rhimport/core.go b/rhimport/core.go
index fcc9584..0e596ba 100644
--- a/rhimport/core.go
+++ b/rhimport/core.go
@@ -129,6 +129,7 @@ type Context struct {
SourceUri string
AttachmentChan <-chan []byte
FetchConverter string
+ OrigFilename string
SourceFile string
DeleteSourceFile bool
DeleteSourceDir bool
@@ -157,6 +158,7 @@ func NewContext(conf *Config, db *rddb.DBChan) *Context {
ctx.UseMetaData = conf.ImportParamDefaults.UseMetaData
ctx.AttachmentChan = nil
ctx.FetchConverter = "ffmpeg"
+ ctx.OrigFilename = ""
ctx.SourceFile = ""
ctx.DeleteSourceFile = false
ctx.DeleteSourceDir = false
@@ -246,5 +248,5 @@ func (ctx *Context) getMusicInfo() (err error) {
}
func (ctx *Context) updateCutCartTitle() (err error) {
- return ctx.db.UpdateCutCartTitle(ctx.Cart, ctx.Cut, ctx.GroupName, ctx.SourceFile)
+ return ctx.db.UpdateCutCartTitle(ctx.Cart, ctx.Cut, ctx.GroupName, ctx.OrigFilename)
}