Update channel to new ctoken format

Huge thanks to @michaelweiser

Different sortings still don't work for videos and playlists
This commit is contained in:
Jesus E
2023-05-28 21:04:36 -04:00
parent 7b60751e99
commit 68752000f0
4 changed files with 70 additions and 17 deletions

View File

@@ -542,8 +542,12 @@ def extract_items(response, item_types=_item_types,
item_types=item_types)
if items:
break
elif 'onResponseReceivedEndpoints' in response:
for endpoint in response.get('onResponseReceivedEndpoints', []):
elif ('onResponseReceivedEndpoints' in response
or 'onResponseReceivedActions' in response):
for endpoint in multi_get(response,
'onResponseReceivedEndpoints',
'onResponseReceivedActions',
[]):
items, ctoken = extract_items_from_renderer_list(
multi_deep_get(
endpoint,