From: Parmjit Virk Date: Sat, 31 Mar 2018 16:46:08 +0000 (-0500) Subject: [xvideos] Fix thumbnail extraction (closes #15978) X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=0669f8fd8f19fbe0783974654fc2a6925d6162b0;p=youtube-dl [xvideos] Fix thumbnail extraction (closes #15978) --- 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(?:(?!\1).)+)\1', + r'url_bigthumb=(?P.+?)&'), + webpage, 'thumbnail', fatal=False, group='thumbnail') duration = int_or_none(self._og_search_property( 'duration', webpage, default=None)) or parse_duration( self._search_regex(