From 8245cd433eb11d97b23fd8121e4f85836fabfea4 Mon Sep 17 00:00:00 2001 From: localhost_frssoft Date: Wed, 9 Nov 2022 15:47:57 +0300 Subject: [PATCH] Show owner fw_libraries; mpv log_handler disabled --- src/fw_libraries.py | 3 ++- src/mpv_control.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/fw_libraries.py b/src/fw_libraries.py index ffde50f..eaa7caa 100644 --- a/src/fw_libraries.py +++ b/src/fw_libraries.py @@ -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) diff --git a/src/mpv_control.py b/src/mpv_control.py index 32c3549..4924370 100644 --- a/src/mpv_control.py +++ b/src/mpv_control.py @@ -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: