소스 검색

screencast.com: fallback on page title

When determining the title of the page, use the <title> tag of the page
Martin Trigaux 9 년 전
부모
커밋
791d6aaecc
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      youtube_dl/extractor/screencast.py

+ 2 - 1
youtube_dl/extractor/screencast.py

@@ -97,7 +97,8 @@ class ScreencastIE(InfoExtractor):
         if title is None:
             title = self._html_search_regex(
                 [r'<b>Title:</b> ([^<]*)</div>',
-                 r'class="tabSeperator">></span><span class="tabText">(.*?)<'],
+                 r'class="tabSeperator">></span><span class="tabText">(.*?)<',
+                 r'<title>([^<]*)</title>'],
                 webpage, 'title')
         thumbnail = self._og_search_thumbnail(webpage)
         description = self._og_search_description(webpage, default=None)