logo

youtube-dl

[mirror] Download/Watch videos from video hosters
commit: 0669f8fd8f19fbe0783974654fc2a6925d6162b0
parent 0b4bbcdcb6f62e080e70c026eb28a5e92f46dfc8
Author: Parmjit Virk <pvirk@mts.net>
Date:   Sat, 31 Mar 2018 11:46:08 -0500

[xvideos] Fix thumbnail extraction (closes #15978)


Diffstat:

Myoutube_dl/extractor/xvideos.py4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git 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=(.+?)&amp', webpage, 'thumbnail', fatal=False) + (r'setThumbUrl\(\s*(["\'])(?P<thumbnail>(?:(?!\1).)+)\1', + r'url_bigthumb=(?P<thumbnail>.+?)&amp'), + webpage, 'thumbnail', fatal=False, group='thumbnail') duration = int_or_none(self._og_search_property( 'duration', webpage, default=None)) or parse_duration( self._search_regex(