From d4d95d315423c43650b2d29cecfe210acf3e7190 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Sun, 9 Sep 2018 14:06:39 +0200 Subject: [PATCH] [tumblr] improve rewrite rules for video URLs --- gallery_dl/extractor/tumblr.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 )