projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dee04d2
)
[xxxymovies] Fix title extraction (closes #13868)
author
Sergey M․
<dstftw@gmail.com>
Wed, 9 Aug 2017 16:46:49 +0000
(23:46 +0700)
committer
Sergey M․
<dstftw@gmail.com>
Wed, 9 Aug 2017 16:46:49 +0000
(23:46 +0700)
youtube_dl/extractor/xxxymovies.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/xxxymovies.py
b/youtube_dl/extractor/xxxymovies.py
index 5c8f17eb2fa1c3bb12924ca189699181eb2b598e..e34ebe3a6612264815295dfe043f0eca1f5b2dcc 100644
(file)
--- a/
youtube_dl/extractor/xxxymovies.py
+++ b/
youtube_dl/extractor/xxxymovies.py
@@
-39,8
+39,8
@@
class XXXYMoviesIE(InfoExtractor):
r"video_url\s*:\s*'([^']+)'", webpage, 'video URL')
title = self._html_search_regex(
- [r'<div
class="block_header">\s*<h1>([^<]+)</h1>
',
- r'<title>(.*?)\s*-\s*
XXXYMovies\.com
</title>'],
+ [r'<div
[^>]+\bclass="block_header"[^>]*>\s*<h1>([^<]+)<
',
+ r'<title>(.*?)\s*-\s*
(?:XXXYMovies\.com|XXX\s+Movies)
</title>'],
webpage, 'title')
thumbnail = self._search_regex(