Kaynağa Gözat

[drtuber] Fix title extraction

Sergey M․ 9 yıl önce
ebeveyn
işleme
f5c4b06f17
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      youtube_dl/extractor/drtuber.py

+ 1 - 1
youtube_dl/extractor/drtuber.py

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