delete track from playlist when hide artist

This commit is contained in:
localhost_frssoft 2023-08-10 22:16:58 +03:00
parent 695b745c02
commit 1c90dd5d0e

View File

@ -198,6 +198,7 @@ def player_menu(header='', storage={}):
player_fw_storage.storage.get(track_url_to_uuid())['id']) player_fw_storage.storage.get(track_url_to_uuid())['id'])
elif select == 'Hide artist': elif select == 'Hide artist':
track = player_fw_storage.storage.get(track_url_to_uuid()) track = player_fw_storage.storage.get(track_url_to_uuid())
player.playlist_remove('current')
src.fw_api.hide_content( src.fw_api.hide_content(
{'target': {'id': track.get('artist').get('id'), 'type': 'artist'}}) {'target': {'id': track.get('artist').get('id'), 'type': 'artist'}})
elif select == 'Exit': elif select == 'Exit':