From a9dd7c357a45b0948e9f0dc3f370740db5337179 Mon Sep 17 00:00:00 2001 From: Parmjit Virk Date: Wed, 28 Mar 2018 17:46:42 -0500 Subject: [PATCH] [XVideos] Applied second requested fixes for PR #15979 --- youtube_dl/extractor/xvideos.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/youtube_dl/extractor/xvideos.py b/youtube_dl/extractor/xvideos.py index 4974b545c..a5b52f60d 100644 --- a/youtube_dl/extractor/xvideos.py +++ b/youtube_dl/extractor/xvideos.py @@ -58,7 +58,10 @@ class XVideosIE(InfoExtractor): group='title') or self._og_search_title(webpage) thumbnail = self._search_regex( - r'url_bigthumb=(.+?)&|html5player\.setThumbUrl\(\'(.+?)\'\);', webpage, 'thumbnail', fatal=False) + (r'url_bigthumb=(.+?)&', + r'html5player\.setThumbUrl\(\'(.+?)\'\);'), + webpage, 'thumbnail', fatal=False) + duration = int_or_none(self._og_search_property( 'duration', webpage, default=None)) or parse_duration( self._search_regex(