mirror of
http://gitea.phreedom.club/localhost_frssoft/funkwlmpv
synced 2024-11-05 02:33:13 +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 a new issue