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

[xvideos] Support profiles, searches, channels and favourites

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

View File

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