fix extraction
authorlinhua55 <5linhua5@gmail.com>
Sat, 18 Jul 2015 15:33:42 +0000 (23:33 +0800)
committerlinhua55 <5linhua5@gmail.com>
Sat, 18 Jul 2015 15:33:42 +0000 (23:33 +0800)
 for http://www.tudou.com/albumplay/cJAHGih4yYg.html

youtube_dl/extractor/tudou.py

index c89de5ba4a46bb261987d8dbee5f55b3d05492da..8095e18d2838bebaa9ce1b4db00af218595348c2 100644 (file)
@@ -9,7 +9,7 @@ from .common import InfoExtractor
 
 
 class TudouIE(InfoExtractor):
-    _VALID_URL = r'https?://(?:www\.)?tudou\.com/(?:listplay|programs(?:/view)?|albumplay)/.*?/(?P<id>[^/?#]+?)(?:\.html)?/?(?:$|[?#])'
+    _VALID_URL = r'https?://(?:www\.)?tudou\.com/(?:listplay|programs(?:/view)?|albumplay)/?.*/(?P<id>[^/?#]+?)(?:\.html)?/?(?:$|[?#])'
     _TESTS = [{
         'url': 'http://www.tudou.com/listplay/zzdE77v6Mmo/2xN2duXMxmw.html',
         'md5': '140a49ed444bd22f93330985d8475fcb',