From 6a816ea853670e153dee882cf17676a6e8f342cb Mon Sep 17 00:00:00 2001 From: localhost_frssoft Date: Mon, 12 Jun 2023 14:06:12 +0300 Subject: [PATCH] artist track count --- src/fw_artists.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/fw_artists.py b/src/fw_artists.py index 476c1be..c40410d 100644 --- a/src/fw_artists.py +++ b/src/fw_artists.py @@ -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':