mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2025-08-22 22:34:01 -07:00
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:
parent
2dd6c6edd8
commit
28cbe18a18
1 changed files with 1 additions and 1 deletions
|
@ -2123,7 +2123,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
|
|||
or search_meta('uploadDate')),
|
||||
'uploader': video_details['author'],
|
||||
'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_url': owner_profile_url,
|
||||
'channel_id': channel_id,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue