mirror of
https://github.com/soimort/you-get.git
synced 2025-02-09 11:42:30 +03:00
[miomio] fix #795
This commit is contained in:
parent
5bba285a11
commit
f1e7885140
@ -28,12 +28,12 @@ def miomio_download(url, output_dir = '.', merge = True, info_only = False, **kw
|
|||||||
|
|
||||||
size_full = 0
|
size_full = 0
|
||||||
for url in url_list:
|
for url in url_list:
|
||||||
type_, ext, size = url_info(url)
|
type_, ext, size = url_info(url, headers=fake_headers)
|
||||||
size_full += size
|
size_full += size
|
||||||
|
|
||||||
print_info(site_info, title, type_, size_full)
|
print_info(site_info, title, type_, size_full)
|
||||||
if not info_only:
|
if not info_only:
|
||||||
download_urls([url], title, ext, total_size=None, output_dir=output_dir, merge=merge)
|
download_urls(url_list, title, ext, total_size=size_full, output_dir=output_dir, merge=merge, headers=fake_headers)
|
||||||
else:
|
else:
|
||||||
raise NotImplementedError(flashvars)
|
raise NotImplementedError(flashvars)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user