瀏覽代碼

[drtuber] Improve title extraction

Sergey M․ 9 年之前
父節點
當前提交
367976d49f
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      youtube_dl/extractor/drtuber.py

+ 3 - 1
youtube_dl/extractor/drtuber.py

@@ -38,7 +38,9 @@ class DrTuberIE(InfoExtractor):
             r'<source src="([^"]+)"', webpage, 'video URL')
 
         title = self._html_search_regex(
-            [r'<p[^>]+class="title_substrate">([^<]+)</p>', r'<title>([^<]+) - \d+'],
+            (r'class="title_watch"[^>]*><p>([^<]+)<',
+             r'<p[^>]+class="title_substrate">([^<]+)</p>',
+             r'<title>([^<]+) - \d+'),
             webpage, 'title')
 
         thumbnail = self._html_search_regex(