From 2ab5b96178892fd7ca2f40ec7644cf525e039eb4 Mon Sep 17 00:00:00 2001 From: James Taylor Date: Tue, 31 Aug 2021 14:00:25 -0700 Subject: Fix videos added to playlist from channel missing author_id MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jesús --- youtube/yt_data_extract/everything_else.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'youtube') 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'): -- cgit v1.2.3