From 34e4c8651bb2ce752e2320a15262bf1bddad6b0e Mon Sep 17 00:00:00 2001 From: Mort Yao Date: Wed, 22 May 2024 01:02:27 +0200 Subject: [PATCH] [tumblr] print info for each pic --- src/you_get/extractors/tumblr.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/you_get/extractors/tumblr.py b/src/you_get/extractors/tumblr.py index 1fdfcad0..5b5c22d6 100644 --- a/src/you_get/extractors/tumblr.py +++ b/src/you_get/extractors/tumblr.py @@ -82,16 +82,16 @@ def tumblr_download(url, output_dir='.', merge=True, info_only=False, **kwargs): except: pass if tuggles: - size = sum([tuggles[t]['size'] for t in tuggles]) - print_info(site_info, page_title, None, size) + #size = sum([tuggles[t]['size'] for t in tuggles]) + #print_info(site_info, page_title, None, size) - if not info_only: - for t in tuggles: - title = tuggles[t]['title'] - ext = tuggles[t]['ext'] - size = tuggles[t]['size'] - url = tuggles[t]['url'] - print_info(site_info, title, ext, size) + for t in tuggles: + title = tuggles[t]['title'] + ext = tuggles[t]['ext'] + size = tuggles[t]['size'] + url = tuggles[t]['url'] + print_info(site_info, title, ext, size) + if not info_only: download_urls([url], title, ext, size, output_dir=output_dir) return