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:
parent
bc0d6c6a9e
commit
05ee64abcf
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user