mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-06-28 17:38:35 +00:00
[xvideos] Support profiles, searches, channels and favourites
This commit is contained in:
parent
05ee64abcf
commit
a2779512cb
@ -244,8 +244,13 @@ class XVideosPlaylistIE(InfoExtractor):
|
|||||||
|
|
||||||
def _extract_videos_from_json_list(self, json_list, path='video'):
|
def _extract_videos_from_json_list(self, json_list, path='video'):
|
||||||
return (
|
return (
|
||||||
'https://www.xvideos.com/%s%d/%s' % (path, x.get('id'), str(x.get('u')).split('/')[-1])
|
(
|
||||||
for x in json_list if isinstance(x, dict))
|
'https://www.xvideos.com/%s.%s/%s' % (path, x.get('eid'), str(x.get('u')).split('/')[-1])
|
||||||
|
if x.get('eid') is not None
|
||||||
|
else 'https://www.xvideos.com/%s%d/%s' % (path, x.get('id'), str(x.get('u')).split('/')[-1])
|
||||||
|
)
|
||||||
|
for x in json_list if isinstance(x, dict)
|
||||||
|
)
|
||||||
|
|
||||||
def _get_playlist_url(self, url, playlist_id):
|
def _get_playlist_url(self, url, playlist_id):
|
||||||
"""URL of first playlist page"""
|
"""URL of first playlist page"""
|
||||||
|
Loading…
Reference in New Issue
Block a user