浏览代码

[GooglePlus] fix video title extraction

Petr Půlpán 11 年之前
父节点
当前提交
41b610acab
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      youtube_dl/extractor/googleplus.py

+ 1 - 2
youtube_dl/extractor/googleplus.py

@@ -52,8 +52,7 @@ class GooglePlusIE(InfoExtractor):
 
         # Extract title
         # Get the first line for title
-        video_title = self._html_search_regex(r'<meta name\=\"Description\" content\=\"(.*?)[\n<"]',
-            webpage, 'title', default='NA')
+        video_title = self._og_search_description(webpage).splitlines()[0]
 
         # Step 2, Simulate clicking the image box to launch video
         DOMAIN = 'https://plus.google.com/'