From 05ee64abcf3e8f11f1d423e47336643dd039c763 Mon Sep 17 00:00:00 2001 From: Tahasanul Abraham Date: Fri, 21 Mar 2025 02:43:16 +0100 Subject: [PATCH] [xvideos] Support profiles, searches, channels and favourites --- yt_dlp/extractor/xvideos.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yt_dlp/extractor/xvideos.py b/yt_dlp/extractor/xvideos.py index 1877b793a0..3f02b10c88 100644 --- a/yt_dlp/extractor/xvideos.py +++ b/yt_dlp/extractor/xvideos.py @@ -386,8 +386,8 @@ def _get_playlist_url(self, url, playlist_id): url, frag = urllib.parse.urldefrag(url) if not url.endswith('/'): url += '/' - if not re.search(self._CHANNEL_REGEX + r'$', url): - parsed = urllib.parse.urlparse(url) + parsed = urllib.parse.urlparse(url) + if not re.search(r'^/' + self._CHANNEL_REGEX, parsed.path): path_parts = parsed.path.lstrip('/').split('/', 1) new_path = '/channels/' + path_parts[0] if len(path_parts) > 1: