Set default value for album key of song search results

This commit is contained in:
sigma67 2020-12-18 12:08:32 +01:00
commit 8a9d0b306d
No known key found for this signature in database
GPG key ID: 1545A01D4474BAF0

View file

@ -66,6 +66,7 @@ class Parser:
default_offset + 2).split(' ')[0]
elif resultType in ['song']:
search_result['album'] = None
if len(runs) - last_artist_index == 5: # has album
search_result['album'] = {
'name': runs[last_artist_index + 2]['text'],