commit: 9d15be3a5b1f0764d8493ccfc312fc0d0a2df164
parent e2750e1437497925c5a058947b850ddadd7ee7d3
Author: Parmjit Virk <pvirk@mts.net>
Date: Sat, 7 Apr 2018 09:39:21 -0500
[drtuber] Fix title extraction (closes #16107)
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/youtube_dl/extractor/drtuber.py b/youtube_dl/extractor/drtuber.py
@@ -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')