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: for i in artists_results:
index = artists_results.index(i) index = artists_results.index(i)
artist_name = i.get('name') artist_name = i.get('name')
view.append(f'{index}.{artist_name}') artist_tracks_count = i.get('tracks_count')
select = fzf.prompt(view)[0].split('.', 1)[0] 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': if select == 'Next page':
list_artists(pg=artists_next) list_artists(pg=artists_next)
elif select == 'Prev page': elif select == 'Prev page':