diff options
author | Christian Pointner <equinox@helsinki.at> | 2016-07-15 13:10:29 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2016-07-15 13:14:03 (GMT) |
commit | b7456c5beafeeba5357db25eac195b93313647fe (patch) | |
tree | 9a8b32014d067abb7d8978980f3d9984798acc6d /rhimport/importer.go | |
parent | 032ef2074e691935a017d95fa5fd134317ef344f (diff) |
simplified progress reports
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) |