1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-06-28 09:28:33 +00:00

[xvideos] Support profiles, searches, channels and favourites

This commit is contained in:
Tahasanul Abraham 2025-03-21 02:55:52 +01:00 committed by GitHub
parent 05ee64abcf
commit a2779512cb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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"""