mirror of https://github.com/yt-dlp/yt-dlp.git
[extractor/youtube] Fix `uploader_id` extraction
Closes #6247 Authored by: bashonly
This commit is contained in:
parent
9ebac35577
commit
149eb0bbf3
|
@ -4120,7 +4120,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
|
|||
'thumbnail': traverse_obj(original_thumbnails, (-1, 'url')),
|
||||
'description': video_description,
|
||||
'uploader': get_first(video_details, 'author'),
|
||||
'uploader_id': self._search_regex(r'/(?:channel|user)/([^/?&#]+)', owner_profile_url, 'uploader id') if owner_profile_url else None,
|
||||
'uploader_id': self._search_regex(r'/(?:channel/|user/|@)([^/?&#]+)', owner_profile_url, 'uploader id', default=None),
|
||||
'uploader_url': owner_profile_url,
|
||||
'channel_id': channel_id,
|
||||
'channel_url': format_field(channel_id, None, 'https://www.youtube.com/channel/%s'),
|
||||
|
|
Loading…
Reference in New Issue