Fix error on missing album browseId of unplayable item (#124)

This commit is contained in:
sigma67 2020-12-16 16:53:12 +01:00
commit 8f64cf7a7a
No known key found for this signature in database
GPG key ID: 1545A01D4474BAF0

View file

@ -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']