1
0
mirror of https://github.com/l1ving/youtube-dl synced 2026-05-28 20:19:55 +08:00

Update xvideos.py

This commit is contained in:
Sergey M
2018-03-31 23:45:19 +07:00
committed by GitHub
Unverified
parent eeb2883097
commit 7be3cb65fc
+3 -4
View File
@@ -58,10 +58,9 @@ class XVideosIE(InfoExtractor):
group='title') or self._og_search_title(webpage)
thumbnail = self._search_regex(
(r'url_bigthumb=(.+?)&amp',
r'html5player\.setThumbUrl\(\'(.+?)\'\);'),
webpage, 'thumbnail', fatal=False)
(r'setThumbUrl\(\s*(["\'])(?P<thumbnail>(?:(?!\1).)+)\1',
r'url_bigthumb=(?P<thumbnail>.+?)&amp'),
webpage, 'thumbnail', fatal=False, group='thumbnail')
duration = int_or_none(self._og_search_property(
'duration', webpage, default=None)) or parse_duration(
self._search_regex(