diff options
author | Sergey M․ <dstftw@gmail.com> | 2016-08-11 23:47:52 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2016-08-11 23:47:52 +0700 |
commit | 367976d49fba48ea44fc5bf622adcc989896f29a (patch) | |
tree | e025eea7080617d8bff2572c545b4403a51ad3bc /youtube_dl/extractor | |
parent | 0aef0771f8cf18d97ce1b6b9123ce76bae45f3ef (diff) |
[drtuber] Improve title extraction
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r-- | youtube_dl/extractor/drtuber.py | 4 |
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( |