aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2016-08-11 23:47:52 +0700
committerSergey M․ <dstftw@gmail.com>2016-08-11 23:47:52 +0700
commit367976d49fba48ea44fc5bf622adcc989896f29a (patch)
treee025eea7080617d8bff2572c545b4403a51ad3bc /youtube_dl
parent0aef0771f8cf18d97ce1b6b9123ce76bae45f3ef (diff)
[drtuber] Improve title extraction
Diffstat (limited to 'youtube_dl')
-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 4e5557703..e8870c460 100644
--- a/youtube_dl/extractor/drtuber.py
+++ b/youtube_dl/extractor/drtuber.py
@@ -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(