mirror of
https://gitea.phreedom.club/localhost_frssoft/funkwlmpv
synced 2024-12-23 03:33:32 +02:00
artist track count
This commit is contained in:
parent
7ab1058937
commit
6a816ea853
1 changed files with 3 additions and 2 deletions
|
@ -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