get_library_*: fix for next YouTube update (#301)

This commit is contained in:
sigma67 2022-09-29 21:13:08 +02:00
commit 1cac82be21
No known key found for this signature in database
GPG key ID: 1545A01D4474BAF0
4 changed files with 29 additions and 47 deletions

View file

@ -26,9 +26,7 @@ class LibraryMixin:
endpoint = 'browse'
response = self._send_request(endpoint, body)
results = find_object_by_key(nav(response, SINGLE_COLUMN_TAB + SECTION_LIST),
'itemSectionRenderer')
results = nav(results, ITEM_SECTION + GRID)
results = get_library_contents(response, GRID)
playlists = parse_content_list(results['items'][1:], parse_playlist)
if 'continuations' in results: