artist track count

This commit is contained in:
localhost_frssoft 2023-06-12 14:06:12 +03:00
parent 7ab1058937
commit 6a816ea853

View File

@ -23,8 +23,9 @@ def list_artists(pg=None, search=None, library=None):
for i in artists_results:
index = artists_results.index(i)
artist_name = i.get('name')
view.append(f'{index}.{artist_name}')
select = fzf.prompt(view)[0].split('.', 1)[0]
artist_tracks_count = i.get('tracks_count')
view.append(f'{index}.{artist_name} | {artist_tracks_count}')
select = fzf.prompt(view, '--header=\'map: artist | tracks count\'')[0].split('.', 1)[0]
if select == 'Next page':
list_artists(pg=artists_next)
elif select == 'Prev page':