projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0b4bbcd
)
[xvideos] Fix thumbnail extraction (closes #15978)
author
Parmjit Virk
<pvirk@mts.net>
Sat, 31 Mar 2018 16:46:08 +0000
(11:46 -0500)
committer
Sergey M
<dstftw@gmail.com>
Sat, 31 Mar 2018 16:46:08 +0000
(23:46 +0700)
youtube_dl/extractor/xvideos.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/xvideos.py
b/youtube_dl/extractor/xvideos.py
index 085c8d4f35a68c74c61ca9af571d421a68783d93..efee95651df0c21d57bca7b0ef5625dcc53d5cac 100644
(file)
--- a/
youtube_dl/extractor/xvideos.py
+++ b/
youtube_dl/extractor/xvideos.py
@@
-58,7
+58,9
@@
class XVideosIE(InfoExtractor):
group='title') or self._og_search_title(webpage)
thumbnail = self._search_regex(
- r'url_bigthumb=(.+?)&', webpage, 'thumbnail', fatal=False)
+ (r'setThumbUrl\(\s*(["\'])(?P<thumbnail>(?:(?!\1).)+)\1',
+ r'url_bigthumb=(?P<thumbnail>.+?)&'),
+ webpage, 'thumbnail', fatal=False, group='thumbnail')
duration = int_or_none(self._og_search_property(
'duration', webpage, default=None)) or parse_duration(
self._search_regex(