Fix default search unavailable song edge (#161)
This commit is contained in:
parent
e89adce0b6
commit
2857e22067
1 changed files with 3 additions and 0 deletions
|
|
@ -37,6 +37,9 @@ class Parser:
|
|||
runs = get_flex_column_item(data, 1)['text']['runs']
|
||||
last_artist_index = get_last_artist_index(runs)
|
||||
|
||||
if not search_result['videoId'] and default_offset: # unavailable song in default search edge case
|
||||
default_offset = 0
|
||||
|
||||
search_result['artists'] = parse_song_artists_runs(
|
||||
runs[default_offset:last_artist_index + 1])
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue