projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
52c50a1
)
[redtube] Improve title extraction (#25208)
author
Dave Loyall
<dave@the-good-guys.net>
Tue, 19 May 2020 19:11:05 +0000
(14:11 -0500)
committer
GitHub
<noreply@github.com>
Tue, 19 May 2020 19:11:05 +0000
(
02:11
+0700)
youtube_dl/extractor/redtube.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/redtube.py
b/youtube_dl/extractor/redtube.py
index b1bde1e8117bf5fa72cccf94ce825a0ad31c274e..deb3ad52cac934cf91c74dc91de334e271ec88bd 100644
(file)
--- a/
youtube_dl/extractor/redtube.py
+++ b/
youtube_dl/extractor/redtube.py
@@
-57,7
+57,7
@@
class RedTubeIE(InfoExtractor):
if not info.get('title'):
info['title'] = self._html_search_regex(
- (r'<h(\d)[^>]+class="(?:video_title_text|videoTitle)[^"]*">(?P<title>(?:(?!\1).)+)</h\1>',
+ (r'<h(\d)[^>]+class="(?:video_title_text|videoTitle
|video_title
)[^"]*">(?P<title>(?:(?!\1).)+)</h\1>',
r'(?:videoTitle|title)\s*:\s*(["\'])(?P<title>(?:(?!\1).)+)\1',),
webpage, 'title', group='title',
default=None) or self._og_search_title(webpage)