youtube channel urls can also be @channelname

an example this https://www.youtube.com/channel/UCKjaXKTMQMgpyac7WsnNrKw and https://www.youtube.com/@alangomezok are the same, it also crashed because it didn't match, the old url template, but it looks like that is already fixed

hope this helps, my first proposed change :)
This commit is contained in:
Gabriel Ayala 2023-02-18 01:38:43 -03:00 committed by GitHub
commit 28cbe18a18
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2123,7 +2123,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
or search_meta('uploadDate')), or search_meta('uploadDate')),
'uploader': video_details['author'], 'uploader': video_details['author'],
'uploader_id': self._search_regex( 'uploader_id': self._search_regex(
r'/(?:channel|user)/([^/?&#]+)', owner_profile_url, r'/(?:(?:channel|user)/|@)([^/?&#]+)', owner_profile_url,
'uploader id', fatal=False) if owner_profile_url else None, 'uploader id', fatal=False) if owner_profile_url else None,
'uploader_url': owner_profile_url, 'uploader_url': owner_profile_url,
'channel_id': channel_id, 'channel_id': channel_id,