This commit is contained in:
localhost_frssoft 2023-08-12 04:21:52 +03:00
parent a5c5984880
commit 1a95d26238
3 changed files with 3 additions and 3 deletions

View file

@ -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(

View file

@ -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()

View file

@ -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')