[XVideos] Applied requested fixes for PR #15979

This commit is contained in:
Parmjit Virk 2018-03-27 15:54:59 -05:00
parent 0974842c90
commit 414b27619c

View File

@ -39,20 +39,6 @@ class XVideosIE(InfoExtractor):
}, {
'url': 'http://static-hw.xvideos.com/swf/xv-player.swf?id_video=4588838',
'only_matching': True,
}, {
'url': 'https://www.xvideos.com/video299069/diesel_sfw_xxx_video',
'md5': 'c0cec3673a7b74a0ed871945c03ab935',
'info_dict': {
'id': '299069',
'ext': 'mp4',
'title': 'DIESEL SFW XXX Video',
'thumbnail': r're:https?://.*\.jpg',
'duration': 80,
'age_limit': 18,
},
'params': {
'skip_download': True,
}
}]
def _real_extract(self, url):
@ -72,8 +58,7 @@ class XVideosIE(InfoExtractor):
group='title') or self._og_search_title(webpage)
thumbnail = self._search_regex(
r'url_bigthumb=(.+?)&amp', webpage, 'thumbnail', default=None) or self._search_regex(
r'html5player\.setThumbUrl\(\'(.+?)\'\);', webpage, 'thumbnail', fatal=False)
r'url_bigthumb=(.+?)&amp|html5player\.setThumbUrl\(\'(.+?)\'\);', webpage, 'thumbnail', fatal=False)
duration = int_or_none(self._og_search_property(
'duration', webpage, default=None)) or parse_duration(
self._search_regex(