tumblr.py: update regex for video (#133)

There seems to be another sub-domain for videos, apparently..
Not just
`vt(.media).tumblr`
`vtt(media).tumblr`
But also
`ve(.media).tumblr`
This commit is contained in:
HRXN 2018-12-09 09:07:46 +01:00 committed by Mike Fährmann
parent 9a98b6769d
commit e80ee77d71

View File

@ -25,7 +25,7 @@ def _original_inline_image(url):
def _original_video(url):
return re.sub(
(r"https?://(vt+(?:\.media)?\.tumblr\.com"
(r"https?://((?:vt|vtt|ve)(?:\.media)?\.tumblr\.com"
r"/tumblr_[^_]+)_\d+\.([0-9a-z]+)"),
r"https://\1.\2", url
)