projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
519d897
)
[drtuber] Fix title extraction
author
Sergey M․
<dstftw@gmail.com>
Sun, 6 Nov 2016 14:29:15 +0000
(21:29 +0700)
committer
Sergey M․
<dstftw@gmail.com>
Sun, 6 Nov 2016 14:29:15 +0000
(21:29 +0700)
youtube_dl/extractor/drtuber.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/drtuber.py
b/youtube_dl/extractor/drtuber.py
index 8baad18f6b32db642547ae646a2e46ae889e4d16..95ecef66071bc11a9dd2829fe8dff91468851d0d 100644
(file)
--- a/
youtube_dl/extractor/drtuber.py
+++ b/
youtube_dl/extractor/drtuber.py
@@
-42,7
+42,7
@@
class DrTuberIE(InfoExtractor):
r'<source src="([^"]+)"', webpage, 'video URL')
title = self._html_search_regex(
- (r'class="title_watch"[^>]*><
p
>([^<]+)<',
+ (r'class="title_watch"[^>]*><
(?:p|h\d+)[^>]*
>([^<]+)<',
r'<p[^>]+class="title_substrate">([^<]+)</p>',
r'<title>([^<]+) - \d+'),
webpage, 'title')