]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[tudou] Fix title regex (Fixes #1614)
authorPhilipp Hagemeister <phihag@phihag.de>
Fri, 18 Oct 2013 09:16:11 +0000 (11:16 +0200)
committerPhilipp Hagemeister <phihag@phihag.de>
Fri, 18 Oct 2013 09:16:20 +0000 (11:16 +0200)
youtube_dl/extractor/tudou.py

index 79679a14a5ee1703290121e33525411e917c0fb2..7a3891b89b736fb05f4c09d441d7eb56e68d8dcd 100644 (file)
@@ -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)