aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/tudou.py
diff options
context:
space:
mode:
authorYen Chi Hsuan <yan12125@gmail.com>2015-09-12 22:45:09 +0800
committerYen Chi Hsuan <yan12125@gmail.com>2015-09-12 22:45:09 +0800
commit94e507aea798dac6974237cc44257dda45d5fa5a (patch)
tree0e57776d8e9bb5f0118617a82aa073c489605ddb /youtube_dl/extractor/tudou.py
parent41ebd6530b124b9265a3df9d7d09aef02041b088 (diff)
[tudou] A more comprehensive _VALID_URL
Diffstat (limited to 'youtube_dl/extractor/tudou.py')
-rw-r--r--youtube_dl/extractor/tudou.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/tudou.py b/youtube_dl/extractor/tudou.py
index 950c42afb..68712cb4a 100644
--- a/youtube_dl/extractor/tudou.py
+++ b/youtube_dl/extractor/tudou.py
@@ -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',