mirror of
http://gitea.phreedom.club/localhost_frssoft/funkwlmpv
synced 2024-11-25 01:31:28 +00:00
artist track count
This commit is contained in:
parent
7ab1058937
commit
6a816ea853
|
@ -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':
|
||||
|
|
Loading…
Reference in a new issue