1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-17 16:33:05 +01:00

[extractor/youtube] uploader_id includes @ with handle

Authored by: bashonly
This commit is contained in:
bashonly 2023-02-17 02:14:45 -06:00
parent f737fb16d8
commit c61cf091a5
No known key found for this signature in database
GPG Key ID: 783F096F253D15B0

View File

@ -4120,7 +4120,7 @@ def is_bad_format(fmt):
'thumbnail': traverse_obj(original_thumbnails, (-1, 'url')), 'thumbnail': traverse_obj(original_thumbnails, (-1, 'url')),
'description': video_description, 'description': video_description,
'uploader': get_first(video_details, 'author'), 'uploader': get_first(video_details, 'author'),
'uploader_id': self._search_regex(r'/(?:channel/|user/|@)([^/?&#]+)', owner_profile_url, 'uploader id', default=None), 'uploader_id': self._search_regex(r'/(?:channel/|user/|(?=@))([^/?&#]+)', owner_profile_url, 'uploader id', default=None),
'uploader_url': owner_profile_url, 'uploader_url': owner_profile_url,
'channel_id': channel_id, 'channel_id': channel_id,
'channel_url': format_field(channel_id, None, 'https://www.youtube.com/channel/%s'), 'channel_url': format_field(channel_id, None, 'https://www.youtube.com/channel/%s'),