diff options
author | James Taylor <user234683@users.noreply.github.com> | 2021-08-31 14:00:25 -0700 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2021-08-31 18:29:37 -0500 |
commit | 2ab5b96178892fd7ca2f40ec7644cf525e039eb4 (patch) | |
tree | 124a742188dee208c5640036310301b53add077f /youtube/yt_data_extract | |
parent | 7c79f530a53e9ff4a9fc61d6b7adde6e9c241c62 (diff) | |
download | yt-local-2ab5b96178892fd7ca2f40ec7644cf525e039eb4.tar.lz yt-local-2ab5b96178892fd7ca2f40ec7644cf525e039eb4.tar.xz yt-local-2ab5b96178892fd7ca2f40ec7644cf525e039eb4.zip |
Fix videos added to playlist from channel missing author_id
Signed-off-by: Jesús <heckyel@hyperbola.info>
Diffstat (limited to 'youtube/yt_data_extract')
-rw-r--r-- | youtube/yt_data_extract/everything_else.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/youtube/yt_data_extract/everything_else.py b/youtube/yt_data_extract/everything_else.py index 6d94681..56a2e68 100644 --- a/youtube/yt_data_extract/everything_else.py +++ b/youtube/yt_data_extract/everything_else.py @@ -74,7 +74,11 @@ def extract_channel_info(polymer_json, tab): if tab in ('videos', 'playlists', 'search'): items, ctoken = extract_items(response) - additional_info = {'author': info['channel_name'], 'author_url': info['channel_url']} + additional_info = { + 'author': info['channel_name'], + 'author_id': info['channel_id'], + 'author_url': info['channel_url'], + } info['items'] = [extract_item_info(renderer, additional_info) for renderer in items] info['ctoken'] = ctoken if tab in ('search', 'playlists'): |