[tumblr] print info for each pic

This commit is contained in:
Mort Yao 2024-05-22 01:02:27 +02:00
parent 1899b3e4fa
commit 34e4c8651b
No known key found for this signature in database
GPG Key ID: 07DA00CB78203251

View File

@ -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