Browse Source

VALID_URL changed to match different kinds of Tumblr-URLs

MikeCol 11 years ago
parent
commit
9e8ee54553
1 changed files with 1 additions and 1 deletions
  1. 1 1
      youtube_dl/extractor/tumblr.py

+ 1 - 1
youtube_dl/extractor/tumblr.py

@@ -9,7 +9,7 @@ from ..utils import (
 
 
 
 
 class TumblrIE(InfoExtractor):
 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 = {
     _TEST = {
         'url': 'http://tatianamaslanydaily.tumblr.com/post/54196191430/orphan-black-dvd-extra-behind-the-scenes',
         'url': 'http://tatianamaslanydaily.tumblr.com/post/54196191430/orphan-black-dvd-extra-behind-the-scenes',
         'file': '54196191430.mp4',
         'file': '54196191430.mp4',