diff --git a/docs/configuration.rst b/docs/configuration.rst index e3ca0e78ff5..6a127bc5acf 100644 --- a/docs/configuration.rst +++ b/docs/configuration.rst @@ -2266,10 +2266,11 @@ Type Default ``true`` Description - Download full-resolution ``photo`` images. + Download full-resolution ``photo`` and ``inline`` images. For each photo with "maximum" resolution - (width equal to 2048 or height equal to 3072), + (width equal to 2048 or height equal to 3072) + or each inline image, use an extra HTTP request to find the URL to its full-resolution version. diff --git a/gallery_dl/extractor/tumblr.py b/gallery_dl/extractor/tumblr.py index b694fa0dd50..fa65862c626 100644 --- a/gallery_dl/extractor/tumblr.py +++ b/gallery_dl/extractor/tumblr.py @@ -14,14 +14,6 @@ import re -def _original_inline_image(url): - return re.sub( - (r"https?://(\d+\.media\.tumblr\.com(?:/[0-9a-f]+)?" - r"/tumblr(?:_inline)?_[^_]+)_\d+\.([0-9a-z]+)"), - r"https://\1_1280.\2", url - ) - - def _original_video(url): return re.sub( (r"https?://((?:vt|vtt|ve)(?:\.media)?\.tumblr\.com" @@ -141,7 +133,7 @@ def items(self): # API response, but they can't contain images/videos anyway body = post["reblog"]["comment"] + post["reblog"]["tree_html"] for url in re.findall('