From 1a95d262381d68d0b1af423bce116c335eade8a5 Mon Sep 17 00:00:00 2001 From: localhost_frssoft Date: Sat, 12 Aug 2023 04:21:52 +0300 Subject: [PATCH] fix --- src/fw_recents.py | 2 +- src/fw_tracks.py | 2 +- src/mpv_control.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/fw_recents.py b/src/fw_recents.py index 32c4e86..5784cd3 100644 --- a/src/fw_recents.py +++ b/src/fw_recents.py @@ -48,7 +48,7 @@ def list_fav_or_history(pg=None, search=None, scope=None, is_history_view=False) for i in tracks_results: play_track(track=i['track'], multi=True) player_fw_storage.menu_ctx = list_fav_or_history - player_fw_storage.menu_ctx_args = [pg] + player_fw_storage.menu_ctx_args = [pg, search, scope, is_history_view] elif len(select) > 1: for i in select: play_track(track=tracks_results[int( diff --git a/src/fw_tracks.py b/src/fw_tracks.py index ba4182d..bd49dee 100644 --- a/src/fw_tracks.py +++ b/src/fw_tracks.py @@ -49,7 +49,7 @@ def list_tracks(pg=None, search=None, tag=None, library=None): for i in tracks_results: play_track(track=i, multi=True) player_fw_storage.menu_ctx = list_tracks - player_fw_storage.menu_ctx_args = [pg] + player_fw_storage.menu_ctx_args = [pg, search, tag, library] elif select == 'Play all pages': if tracks_count > 500: yn = input('WARNING: you really want add more than 500 tracks? (y/[n] or number of tracks)\n').lower() diff --git a/src/mpv_control.py b/src/mpv_control.py index 6d92cbc..2c09da3 100644 --- a/src/mpv_control.py +++ b/src/mpv_control.py @@ -208,7 +208,7 @@ def player_menu(header='', storage={}): src.fw_api.favorite_track( player_fw_storage.storage.get(track_url_to_uuid())['id']) elif select == 'Add more tracks': - player_fw_storage.menu_ctx(pg=player_fw_storage.menu_ctx_args[0]) + player_fw_storage.menu_ctx(*player_fw_storage.menu_ctx_args) elif select == 'Hide artist': track = player_fw_storage.storage.get(track_url_to_uuid()) player.playlist_remove('current')