aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorParmjit Virk <pvirk@mts.net>2018-04-07 09:39:21 -0500
committerSergey M <dstftw@gmail.com>2018-04-07 21:39:21 +0700
commit9d15be3a5b1f0764d8493ccfc312fc0d0a2df164 (patch)
treebba2fdbc83f426d54279b0094148d3ff64723a75
parente2750e1437497925c5a058947b850ddadd7ee7d3 (diff)
downloadyoutube-dl-9d15be3a5b1f0764d8493ccfc312fc0d0a2df164.tar.xz
[drtuber] Fix title extraction (closes #16107)
-rw-r--r--youtube_dl/extractor/drtuber.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/youtube_dl/extractor/drtuber.py b/youtube_dl/extractor/drtuber.py
index c88b3126b..5c41c8022 100644
--- 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')