mirror of
https://gitea.phreedom.club/localhost_frssoft/funkwlmpv
synced 2024-12-22 05:39:48 +00:00
Fix: Fallback to playing tracks if artist no have albums
This commit is contained in:
parent
c8af4ae6ea
commit
ae3becd1e9
@ -32,7 +32,12 @@ def list_artists(pg=None, search=None):
|
||||
print('Search by artist:')
|
||||
list_artists(search=input())
|
||||
else:
|
||||
list_albums(albums=artists_results[int(select)].get('albums'))
|
||||
albums = artists_results[int(select)].get('albums')
|
||||
if albums:
|
||||
list_albums(albums=albums)
|
||||
else: # Fallback on tracks of selected artist
|
||||
play_artist(artists_results[int(select)]['id'])
|
||||
|
||||
|
||||
|
||||
def play_artist(artist_id):
|
||||
|
Loading…
Reference in New Issue
Block a user