From: Philipp Hagemeister Date: Fri, 18 Oct 2013 09:16:11 +0000 (+0200) Subject: [tudou] Fix title regex (Fixes #1614) X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=7c58ef3275a2463728528b395fe584815aa6b16a;p=youtube-dl [tudou] Fix title regex (Fixes #1614) --- 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)