[tumblr] restrict condition for calling _original_image

pull/2827/head
Mike Fährmann 2 years ago
parent df1c643dda
commit a27b17481f
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

@ -119,7 +119,8 @@ class TumblrExtractor(Extractor):
best_photo = alt_photo best_photo = alt_photo
photo.update(best_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"]) photo["url"] = self._original_image(photo["url"])
del photo["original_size"] del photo["original_size"]

Loading…
Cancel
Save