From 8f64cf7a7ac19c7bdfb66c621554b1386243398e Mon Sep 17 00:00:00 2001 From: sigma67 Date: Wed, 16 Dec 2020 16:53:12 +0100 Subject: [PATCH] Fix error on missing album browseId of unplayable item (#124) --- ytmusicapi/parsers/browsing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ytmusicapi/parsers/browsing.py b/ytmusicapi/parsers/browsing.py index 4b22dc4..3ecbe26 100644 --- a/ytmusicapi/parsers/browsing.py +++ b/ytmusicapi/parsers/browsing.py @@ -68,7 +68,7 @@ class Parser: if len(runs) - last_artist_index == 5: # has album search_result['album'] = { 'name': runs[last_artist_index + 2]['text'], - 'id': nav(runs[last_artist_index + 2], NAVIGATION_BROWSE_ID) + 'id': nav(runs[last_artist_index + 2], NAVIGATION_BROWSE_ID, True) } search_result['duration'] = runs[-1]['text']