fix get_library_upload_albums audioPlaylistId key (YouTube update)

This commit is contained in:
sigma67 2021-08-03 19:02:45 +02:00
commit ba57e1a8a0
No known key found for this signature in database
GPG key ID: 1545A01D4474BAF0

View file

@ -25,7 +25,7 @@ def parse_album_header(response):
# add to library/uploaded
menu = nav(header, MENU)
toplevel = menu['topLevelButtons']
album['audioPlaylistId'] = nav(toplevel, [0, 'buttonRenderer'] + NAVIGATION_PLAYLIST_ID)
album['audioPlaylistId'] = nav(toplevel, [0, 'buttonRenderer'] + NAVIGATION_WATCH_PLAYLIST_ID)
service = nav(toplevel, [1, 'buttonRenderer', 'defaultServiceEndpoint'], True)
if service:
album['likeStatus'] = parse_like_status(service)