[miomio] fix #795

This commit is contained in:
Mort Yao 2015-12-13 04:45:45 +01:00
parent 5bba285a11
commit f1e7885140

View File

@ -28,12 +28,12 @@ def miomio_download(url, output_dir = '.', merge = True, info_only = False, **kw
size_full = 0
for url in url_list:
type_, ext, size = url_info(url)
type_, ext, size = url_info(url, headers=fake_headers)
size_full += size
print_info(site_info, title, type_, size_full)
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:
raise NotImplementedError(flashvars)