diff options
author | Parmjit Virk <pvirk@mts.net> | 2018-03-31 11:46:08 -0500 |
---|---|---|
committer | Sergey M <dstftw@gmail.com> | 2018-03-31 23:46:08 +0700 |
commit | 0669f8fd8f19fbe0783974654fc2a6925d6162b0 (patch) | |
tree | 3a4d5844f8aab6dcc1f5ce55f866e96bbdc7335d /youtube_dl/extractor/xvideos.py | |
parent | 0b4bbcdcb6f62e080e70c026eb28a5e92f46dfc8 (diff) |
[xvideos] Fix thumbnail extraction (closes #15978)
Diffstat (limited to 'youtube_dl/extractor/xvideos.py')
-rw-r--r-- | youtube_dl/extractor/xvideos.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/youtube_dl/extractor/xvideos.py b/youtube_dl/extractor/xvideos.py index 085c8d4f3..efee95651 100644 --- 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( |