commit: 367976d49fba48ea44fc5bf622adcc989896f29a
parent 0aef0771f8cf18d97ce1b6b9123ce76bae45f3ef
Author: Sergey M․ <dstftw@gmail.com>
Date: Thu, 11 Aug 2016 23:47:52 +0700
[drtuber] Improve title extraction
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git 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(