projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e2750e1
)
[drtuber] Fix title extraction (closes #16107)
author
Parmjit Virk
<pvirk@mts.net>
Sat, 7 Apr 2018 14:39:21 +0000
(09:39 -0500)
committer
Sergey M
<dstftw@gmail.com>
Sat, 7 Apr 2018 14:39:21 +0000
(21:39 +0700)
youtube_dl/extractor/drtuber.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/drtuber.py
b/youtube_dl/extractor/drtuber.py
index c88b3126b1676f11ee3696a2499e1f7a0a57d8b3..5c41c8022e6215ac01d617972f6e988a0425d163 100644
(file)
--- a/
youtube_dl/extractor/drtuber.py
+++ b/
youtube_dl/extractor/drtuber.py
@@
-66,7
+66,9
@@
class DrTuberIE(InfoExtractor):
self._sort_formats(formats)
title = self._html_search_regex(
- (r'class="title_watch"[^>]*><(?:p|h\d+)[^>]*>([^<]+)<',
+ (r'<h1[^>]+class=["\']title[^>]+>([^<]+)',
+ r'<title>([^<]+)\s*@\s+DrTuber',
+ r'class="title_watch"[^>]*><(?:p|h\d+)[^>]*>([^<]+)<',
r'<p[^>]+class="title_substrate">([^<]+)</p>',
r'<title>([^<]+) - \d+'),
webpage, 'title')