Fix exception for album search results with missing year

This commit is contained in:
sigma67 2020-12-18 12:34:27 +01:00
commit 09a300736f
No known key found for this signature in database
GPG key ID: 1545A01D4474BAF0

View file

@ -59,7 +59,7 @@ class Parser:
search_result['title'] = get_item_text(data, 0)
search_result['type'] = get_item_text(data, 1)
search_result['artist'] = get_item_text(data, 1, 2)
search_result['year'] = get_item_text(data, 1, 4)
search_result['year'] = get_item_text(data, 1, 4, True)
elif resultType in ['playlist']:
search_result['title'] = get_item_text(data, 0)