mirror of
http://gitea.phreedom.club/localhost_frssoft/funkwlmpv
synced 2024-11-22 07:21: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:
|
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':
|
||||||
|
|
Loading…
Reference in a new issue