Privacy level libraries show

This commit is contained in:
localhost_frssoft 2023-06-18 01:34:44 +03:00
parent e2f07a7a35
commit 81f818bc2f

View file

@ -25,8 +25,9 @@ def libraries(pg=None, radio=False):
index = libs.index(lib_i) index = libs.index(lib_i)
lib_name = lib_i.get('name') lib_name = lib_i.get('name')
lib_tracks_count = lib_i.get('uploads_count') lib_tracks_count = lib_i.get('uploads_count')
lib_access = lib_i.get('privacy_level')
lib_by = lib_i.get('actor').get('full_username') lib_by = lib_i.get('actor').get('full_username')
libraries_listing.append(f'{index}.{lib_name} | {lib_by} | {lib_tracks_count}') libraries_listing.append(f'{index}.{lib_name} | {lib_by} | {lib_tracks_count} | {lib_access}')
lib_select = fzf.prompt( lib_select = fzf.prompt(
libraries_listing, libraries_listing,
f'--header=\'found {libs_count} libraries\nmap: library name | owner | tracks count\'') f'--header=\'found {libs_count} libraries\nmap: library name | owner | tracks count\'')