diff options
Diffstat (limited to 'rhimport/importer.go')
-rw-r--r-- | rhimport/importer.go | 6 |
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) |