浏览代码

[tudou] Fix title regex (Fixes #1614)

Philipp Hagemeister 12 年之前
父节点
当前提交
7c58ef3275
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      youtube_dl/extractor/tudou.py

+ 2 - 1
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)