Skip to content

Commit

Permalink
[tumblr] improve rewrite rules for video URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
mikf committed Sep 9, 2018
1 parent 542a25c commit d4d95d3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gallery_dl/extractor/tumblr.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
)


Expand Down

0 comments on commit d4d95d3

Please sign in to comment.