From a2779512cb3aa1137eaf2da83f68211a18f72fbd Mon Sep 17 00:00:00 2001 From: Tahasanul Abraham Date: Fri, 21 Mar 2025 02:55:52 +0100 Subject: [PATCH] [xvideos] Support profiles, searches, channels and favourites --- yt_dlp/extractor/xvideos.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/yt_dlp/extractor/xvideos.py b/yt_dlp/extractor/xvideos.py index 3f02b10c8..e1d9f81f5 100644 --- a/yt_dlp/extractor/xvideos.py +++ b/yt_dlp/extractor/xvideos.py @@ -244,8 +244,13 @@ class XVideosPlaylistIE(InfoExtractor): def _extract_videos_from_json_list(self, json_list, path='video'): 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): """URL of first playlist page"""