mirror of
https://github.com/soimort/you-get.git
synced 2025-01-23 13:35:16 +03:00
[tumblr] print info for each pic
This commit is contained in:
parent
1899b3e4fa
commit
34e4c8651b
@ -82,16 +82,16 @@ def tumblr_download(url, output_dir='.', merge=True, info_only=False, **kwargs):
|
|||||||
except: pass
|
except: pass
|
||||||
|
|
||||||
if tuggles:
|
if tuggles:
|
||||||
size = sum([tuggles[t]['size'] for t in tuggles])
|
#size = sum([tuggles[t]['size'] for t in tuggles])
|
||||||
print_info(site_info, page_title, None, size)
|
#print_info(site_info, page_title, None, size)
|
||||||
|
|
||||||
if not info_only:
|
for t in tuggles:
|
||||||
for t in tuggles:
|
title = tuggles[t]['title']
|
||||||
title = tuggles[t]['title']
|
ext = tuggles[t]['ext']
|
||||||
ext = tuggles[t]['ext']
|
size = tuggles[t]['size']
|
||||||
size = tuggles[t]['size']
|
url = tuggles[t]['url']
|
||||||
url = tuggles[t]['url']
|
print_info(site_info, title, ext, size)
|
||||||
print_info(site_info, title, ext, size)
|
if not info_only:
|
||||||
download_urls([url], title, ext, size,
|
download_urls([url], title, ext, size,
|
||||||
output_dir=output_dir)
|
output_dir=output_dir)
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user