[drtuber] Improve title extraction
authorSergey M․ <dstftw@gmail.com>
Thu, 11 Aug 2016 16:47:52 +0000 (23:47 +0700)
committerSergey M․ <dstftw@gmail.com>
Thu, 11 Aug 2016 16:47:52 +0000 (23:47 +0700)
youtube_dl/extractor/drtuber.py

index 4e55577038e8c0e8ae30ba8a8a7139498cbcb326..e8870c4607d4e4f0293f134610ed8f1f8d48e956 100644 (file)
@@ -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(