mirror of
https://gitea.phreedom.club/localhost_frssoft/funkwlmpv
synced 2024-11-27 17:43:02 +00:00
Check avalaiblity artist in albums
This commit is contained in:
parent
5556a0c3de
commit
12a02ab6be
@ -34,9 +34,10 @@ def list_albums(albums=None, pg=None, search=None, artist=None, include_channels
|
||||
for i in albums_results:
|
||||
index = albums_results.index(i)
|
||||
album_name = i.get('title')
|
||||
artist_name = i.get('artist').get('name')
|
||||
option_str = f'{index}.{album_name}'
|
||||
if show_artist_name_in_albums:
|
||||
artist_name = i.get('artist')
|
||||
if show_artist_name_in_albums and isinstance(artist_name, dict):
|
||||
artist_name = artist_name.get('name')
|
||||
option_str += f' | Artist: {artist_name}'
|
||||
view.append(f'{option_str}')
|
||||
select = fzf.prompt(view)[0].split('.', 1)[0]
|
||||
|
Loading…
Reference in New Issue
Block a user