Fix get_library_albums error if a library album has no year (closes #151)

This commit is contained in:
sigma67 2021-01-14 17:29:41 +01:00
commit dbb2e90961
No known key found for this signature in database
GPG key ID: 1545A01D4474BAF0

View file

@ -55,7 +55,7 @@ def parse_albums(results, upload=True):
'name': nav(data, SUBTITLE2),
'id': nav(data, ['subtitle', 'runs', 2] + NAVIGATION_BROWSE_ID, True)
}
album['year'] = nav(data, SUBTITLE3)
album['year'] = nav(data, SUBTITLE3, True)
albums.append(album)