VALID_URL changed to match different kinds of Tumblr-URLs
authorMikeCol <MikeCol@gmx.net>
Tue, 28 Jan 2014 00:41:18 +0000 (01:41 +0100)
committerMikeCol <MikeCol@gmx.net>
Tue, 28 Jan 2014 00:41:18 +0000 (01:41 +0100)
youtube_dl/extractor/tumblr.py

index f7bc77c48cbc70cda5191dcca6da099f423771fc..54436906875a727ac6f6eeb3de555f0c0cd461bf 100644 (file)
@@ -9,7 +9,7 @@ from ..utils import (
 
 
 class TumblrIE(InfoExtractor):
-    _VALID_URL = r'http://(?P<blog_name>.*?)\.tumblr\.com/((post)|(video))/(?P<id>\d*)/(.*?)'
+    _VALID_URL = r'http://(?P<blog_name>.*?)\.tumblr\.com/((post)|(video))/(?P<id>\d*)($|/)'
     _TEST = {
         'url': 'http://tatianamaslanydaily.tumblr.com/post/54196191430/orphan-black-dvd-extra-behind-the-scenes',
         'file': '54196191430.mp4',