projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0aef077
)
[drtuber] Improve title extraction
author
Sergey M․
<dstftw@gmail.com>
Thu, 11 Aug 2016 16:47:52 +0000
(23:47 +0700)
committer
Sergey M․
<dstftw@gmail.com>
Thu, 11 Aug 2016 16:47:52 +0000
(23:47 +0700)
youtube_dl/extractor/drtuber.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/drtuber.py
b/youtube_dl/extractor/drtuber.py
index 4e55577038e8c0e8ae30ba8a8a7139498cbcb326..e8870c4607d4e4f0293f134610ed8f1f8d48e956 100644
(file)
--- 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(