]> gitweb @ CieloNegro.org - youtube-dl.git/blobdiff - youtube_dl/extractor/drtuber.py
[drtuber] Fix title extraction
[youtube-dl.git] / youtube_dl / extractor / drtuber.py
index 8baad18f6b32db642547ae646a2e46ae889e4d16..95ecef66071bc11a9dd2829fe8dff91468851d0d 100644 (file)
@@ -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')