]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[drtuber] Fix title extraction
authorSergey M․ <dstftw@gmail.com>
Sun, 6 Nov 2016 14:29:15 +0000 (21:29 +0700)
committerSergey M․ <dstftw@gmail.com>
Sun, 6 Nov 2016 14:29:15 +0000 (21:29 +0700)
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')