Set default value for album key of song search results
This commit is contained in:
parent
1496259019
commit
8a9d0b306d
1 changed files with 1 additions and 0 deletions
|
|
@ -66,6 +66,7 @@ class Parser:
|
||||||
default_offset + 2).split(' ')[0]
|
default_offset + 2).split(' ')[0]
|
||||||
|
|
||||||
elif resultType in ['song']:
|
elif resultType in ['song']:
|
||||||
|
search_result['album'] = None
|
||||||
if len(runs) - last_artist_index == 5: # has album
|
if len(runs) - last_artist_index == 5: # has album
|
||||||
search_result['album'] = {
|
search_result['album'] = {
|
||||||
'name': runs[last_artist_index + 2]['text'],
|
'name': runs[last_artist_index + 2]['text'],
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue