From 7be3cb65fc3124c8ef7fa54e9bf15de1735de818 Mon Sep 17 00:00:00 2001 From: Sergey M Date: Sat, 31 Mar 2018 23:45:19 +0700 Subject: [PATCH] Update xvideos.py --- youtube_dl/extractor/xvideos.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/youtube_dl/extractor/xvideos.py b/youtube_dl/extractor/xvideos.py index a5b52f60d..efee95651 100644 --- a/youtube_dl/extractor/xvideos.py +++ b/youtube_dl/extractor/xvideos.py @@ -58,10 +58,9 @@ class XVideosIE(InfoExtractor): group='title') or self._og_search_title(webpage) thumbnail = self._search_regex( - (r'url_bigthumb=(.+?)&', - r'html5player\.setThumbUrl\(\'(.+?)\'\);'), - 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(