mirror of
https://gitea.phreedom.club/localhost_frssoft/funkwlmpv
synced 2024-11-22 15:59:21 +02: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:')
|
print('Search by artist:')
|
||||||
list_artists(search=input())
|
list_artists(search=input())
|
||||||
else:
|
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):
|
def play_artist(artist_id):
|
||||||
|
|
Loading…
Reference in New Issue