diff options
author | bashonly <bashonly@bashonly.com> | 2023-02-17 02:14:45 -0600 |
---|---|---|
committer | bashonly <bashonly@bashonly.com> | 2023-02-17 02:14:45 -0600 |
commit | c61cf091a54d3aa3c611722035ccde5ecfe981bb (patch) | |
tree | 969af1e283add9d36c11fc089157ffaf93d17336 | |
parent | f737fb16d8234408c85bc189ccc926fea000515b (diff) | |
download | hypervideo-pre-c61cf091a54d3aa3c611722035ccde5ecfe981bb.tar.lz hypervideo-pre-c61cf091a54d3aa3c611722035ccde5ecfe981bb.tar.xz hypervideo-pre-c61cf091a54d3aa3c611722035ccde5ecfe981bb.zip |
[extractor/youtube] `uploader_id` includes `@` with handle
Authored by: bashonly
-rw-r--r-- | yt_dlp/extractor/youtube.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/yt_dlp/extractor/youtube.py b/yt_dlp/extractor/youtube.py index 4dde4bbaa..d891d92a3 100644 --- a/yt_dlp/extractor/youtube.py +++ b/yt_dlp/extractor/youtube.py @@ -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', default=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'), |