[XVideos] Applied second requested fixes for PR #15979

This commit is contained in:
Parmjit Virk 2018-03-28 17:46:42 -05:00
parent 414b27619c
commit a9dd7c357a

View File

@ -58,7 +58,10 @@ class XVideosIE(InfoExtractor):
group='title') or self._og_search_title(webpage)
thumbnail = self._search_regex(
r'url_bigthumb=(.+?)&amp|html5player\.setThumbUrl\(\'(.+?)\'\);', webpage, 'thumbnail', fatal=False)
(r'url_bigthumb=(.+?)&amp',
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(