summaryrefslogtreecommitdiff
path: root/rhimport/importer.go
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2016-07-15 13:10:29 (GMT)
committerChristian Pointner <equinox@helsinki.at>2016-07-15 13:14:03 (GMT)
commitb7456c5beafeeba5357db25eac195b93313647fe (patch)
tree9a8b32014d067abb7d8978980f3d9984798acc6d /rhimport/importer.go
parent032ef2074e691935a017d95fa5fd134317ef344f (diff)
simplified progress reports
Diffstat (limited to 'rhimport/importer.go')
-rw-r--r--rhimport/importer.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/rhimport/importer.go b/rhimport/importer.go
index bcaf84f..37bbc01 100644
--- a/rhimport/importer.go
+++ b/rhimport/importer.go
@@ -311,11 +311,7 @@ func importAudio(ctx *Context, res *Result) (err error) {
return false
}
- if ctx.ProgressCallBack != nil {
- if keep := ctx.ProgressCallBack(3, "importing", ulnow, ultotal, ctx.Cart, ctx.Cut, ctx.ProgressCallBackData); !keep {
- ctx.ProgressCallBack = nil
- }
- }
+ ctx.reportProgress(3, "importing", ulnow, ultotal)
return true
})
easy.Setopt(curl.OPT_PROGRESSDATA, ctx)