aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/tudou.py
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2013-10-18 11:16:11 +0200
committerPhilipp Hagemeister <phihag@phihag.de>2013-10-18 11:16:20 +0200
commit7c58ef3275a2463728528b395fe584815aa6b16a (patch)
tree064189741aa1b70f482844f979d3c26eda00af47 /youtube_dl/extractor/tudou.py
parent416a5efce7f70a6a3ef88ac902100fa5211e181e (diff)
[tudou] Fix title regex (Fixes #1614)
Diffstat (limited to 'youtube_dl/extractor/tudou.py')
-rw-r--r--youtube_dl/extractor/tudou.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/extractor/tudou.py b/youtube_dl/extractor/tudou.py
index 79679a14a..7a3891b89 100644
--- a/youtube_dl/extractor/tudou.py
+++ b/youtube_dl/extractor/tudou.py
@@ -48,7 +48,8 @@ class TudouIE(InfoExtractor):
'ie_key': 'Youku'
}
- title = self._search_regex(r",kw:['\"](.+?)[\"']", webpage, u'title')
+ title = self._search_regex(
+ r",kw:\s*['\"](.+?)[\"']", webpage, u'title')
thumbnail_url = self._search_regex(
r",pic:\s*[\"'](.+?)[\"']", webpage, u'thumbnail URL', fatal=False)