]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[drtuber] Fix title extraction (closes #16107)
authorParmjit Virk <pvirk@mts.net>
Sat, 7 Apr 2018 14:39:21 +0000 (09:39 -0500)
committerSergey M <dstftw@gmail.com>
Sat, 7 Apr 2018 14:39:21 +0000 (21:39 +0700)
youtube_dl/extractor/drtuber.py

index c88b3126b1676f11ee3696a2499e1f7a0a57d8b3..5c41c8022e6215ac01d617972f6e988a0425d163 100644 (file)
@@ -66,7 +66,9 @@ class DrTuberIE(InfoExtractor):
         self._sort_formats(formats)
 
         title = self._html_search_regex(
-            (r'class="title_watch"[^>]*><(?:p|h\d+)[^>]*>([^<]+)<',
+            (r'<h1[^>]+class=["\']title[^>]+>([^<]+)',
+             r'<title>([^<]+)\s*@\s+DrTuber',
+             r'class="title_watch"[^>]*><(?:p|h\d+)[^>]*>([^<]+)<',
              r'<p[^>]+class="title_substrate">([^<]+)</p>',
              r'<title>([^<]+) - \d+'),
             webpage, 'title')