Fix comments extraction due to new response continuation key name

Signed-off-by: Jesús <heckyel@hyperbola.info>
This commit is contained in:
James Taylor 2021-08-22 22:48:30 -07:00 committed by Jesús
parent 740aea68f6
commit 4e556efa3d
No known key found for this signature in database
GPG Key ID: F6EE7BC59A315766

View File

@ -542,8 +542,12 @@ def extract_items(response, item_types=_item_types,
elif 'onResponseReceivedEndpoints' in response: elif 'onResponseReceivedEndpoints' in response:
for endpoint in response.get('onResponseReceivedEndpoints', []): for endpoint in response.get('onResponseReceivedEndpoints', []):
items, ctoken = extract_items_from_renderer_list( items, ctoken = extract_items_from_renderer_list(
deep_get(endpoint, 'appendContinuationItemsAction', multi_deep_get(
'continuationItems', default=[]), endpoint,
['reloadContinuationItemsCommand', 'continuationItems'],
['appendContinuationItemsAction', 'continuationItems'],
default=[]
),
item_types=item_types, item_types=item_types,
) )
if items: if items: