Fix videos added to playlist from channel missing author_id

Signed-off-by: Jesús <heckyel@hyperbola.info>
This commit is contained in:
James Taylor 2021-08-31 14:00:25 -07:00 committed by Jesús
parent 7c79f530a5
commit 2ab5b96178
No known key found for this signature in database
GPG Key ID: F6EE7BC59A315766

View File

@ -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'):