From a27b17481fe73c239ee7cd9229e829e5f9031cac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Thu, 11 Aug 2022 12:20:39 +0200 Subject: [PATCH] [tumblr] restrict condition for calling _original_image --- gallery_dl/extractor/tumblr.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gallery_dl/extractor/tumblr.py b/gallery_dl/extractor/tumblr.py index 6d7c9405..db949d05 100644 --- a/gallery_dl/extractor/tumblr.py +++ b/gallery_dl/extractor/tumblr.py @@ -119,7 +119,8 @@ class TumblrExtractor(Extractor): best_photo = alt_photo photo.update(best_photo) - if "/s2048x3072/" in photo["url"] and self.original: + if self.original and "/s2048x3072/" in photo["url"] and ( + photo["width"] == 2048 or photo["height"] == 3072): photo["url"] = self._original_image(photo["url"]) del photo["original_size"]