mirror of
https://gitea.phreedom.club/localhost_frssoft/funkwlmpv
synced 2024-12-23 09:13:32 +02:00
Fix: Fallback to playing tracks if artist no have albums
This commit is contained in:
parent
c8af4ae6ea
commit
ae3becd1e9
1 changed files with 6 additions and 1 deletions
|
@ -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