[xvideos] Support profiles, searches, channels and favourites

pull/12680/head
Tahasanul Abraham 4 months ago committed by GitHub
parent bc0d6c6a9e
commit 05ee64abcf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -386,8 +386,8 @@ class XVideosChannelIE(XVideosPlaylistIE):
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…
Cancel
Save