mpv player menu if not stopped display button in main menu

This commit is contained in:
localhost_frssoft 2022-11-14 23:28:01 +03:00
parent d5e8342da6
commit eac531c373
2 changed files with 12 additions and 1 deletions

View file

@ -12,12 +12,18 @@ player.ytdl = False # Prevent attempts load track with yt-dlp
player.prefetch_playlist = get_config('prefetch_playlist') # Fast loading next track, but high network traffic
show_like_button = get_config('show_like_button')
class player_fw_storage:
storage = {}
def set_http_header(headers=[]):
player.http_header_fields = headers
@logger.catch
def player_menu(header=None, storage={}):
def player_menu(header='', storage={}):
player_fw_storage.storage = storage
while True:
try:
player_items_menu = ['Next', 'Prev', 'Pause',