Show owner fw_libraries; mpv log_handler disabled

This commit is contained in:
localhost_frssoft 2022-11-09 15:47:57 +03:00
parent a4bf0f69c0
commit 8245cd433e
2 changed files with 3 additions and 2 deletions

View File

@ -19,7 +19,8 @@ def libraries(pg=None):
for lib_i in libs:
index = libs.index(lib_i)
lib_name = lib_i.get('name')
libraries_listing.append(f'{index}.{lib_name}')
lib_by = lib_i.get('actor').get('full_username')
libraries_listing.append(f'{index}.{lib_name} | by {lib_by}')
lib_select = fzf.prompt(libraries_listing, f'--header=\'found {libs_count} libraries\'')[0].split('.', 1)
if lib_select[0] == 'Next':
libraries(pg=libs_next)

View File

@ -13,7 +13,7 @@ def mpv_log(loglevel, component, message):
elif loglevel == 'error':
logger.error(f'{component} {message}')
player = mpv.MPV(log_handler=mpv_log)
player = mpv.MPV()
list_options = dir(player)
if 'ytdl' in list_options: