[downloader] Pass info_dict to progress_hooks
This commit is contained in:
parent
29b208f6f9
commit
3ba7740dd8
13 changed files with 36 additions and 28 deletions
|
|
@ -122,7 +122,7 @@ body > figure > img {
|
|||
'total_frags': len(fragments),
|
||||
}
|
||||
|
||||
self._prepare_and_start_frag_download(ctx)
|
||||
self._prepare_and_start_frag_download(ctx, info_dict)
|
||||
|
||||
extra_state = ctx.setdefault('extra_state', {
|
||||
'header_written': False,
|
||||
|
|
@ -198,5 +198,5 @@ body > figure > img {
|
|||
|
||||
ctx['dest_stream'].write(
|
||||
b'--%b--\r\n\r\n' % frag_boundary.encode('us-ascii'))
|
||||
self._finish_frag_download(ctx)
|
||||
self._finish_frag_download(ctx, info_dict)
|
||||
return True
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue