diff --git a/gallery_dl/extractor/tumblr.py b/gallery_dl/extractor/tumblr.py index 68aa14a2f7..4bf3705e83 100644 --- a/gallery_dl/extractor/tumblr.py +++ b/gallery_dl/extractor/tumblr.py @@ -25,9 +25,9 @@ def _original_inline_image(url): def _original_video(url): return re.sub( - (r"https?://vt\.media\.tumblr\.com" - r"/tumblr_([^_]+)_\d+\.([0-9a-z]+)"), - r"https://vt.media.tumblr.com/tumblr_\1.\2", url + (r"https?://(vt+(?:\.media)?\.tumblr\.com" + r"/tumblr_[^_]+)_\d+\.([0-9a-z]+)"), + r"https://\1.\2", url )