0
0
Fork 0

[tudou] A more comprehensive _VALID_URL

main
Yen Chi Hsuan 2015-09-12 22:45:09 +08:00
parent 41ebd6530b
commit 94e507aea7
1 changed files with 1 additions and 1 deletions

View 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',