summaryrefslogtreecommitdiff
path: root/rhimport
diff options
context:
space:
mode:
Diffstat (limited to 'rhimport')
-rw-r--r--rhimport/core.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/rhimport/core.go b/rhimport/core.go
index cc4671c..92e798b 100644
--- a/rhimport/core.go
+++ b/rhimport/core.go
@@ -250,5 +250,9 @@ func (ctx *Context) getMusicInfo() (err error) {
}
func (ctx *Context) updateCutCartTitle() (err error) {
- return ctx.db.UpdateCutCartTitle(ctx.Cart, ctx.Cut, ctx.GroupName, ctx.OrigFilename)
+ filename := ctx.OrigFilename
+ if filename == "" {
+ filename = ctx.SourceFile
+ }
+ return ctx.db.UpdateCutCartTitle(ctx.Cart, ctx.Cut, ctx.GroupName, filename)
}