lol, fix hide artist in radio

This commit is contained in:
localhost_frssoft 2023-06-04 01:24:44 +03:00
parent 8850ac2916
commit 9c940a0bac

View File

@ -1,4 +1,4 @@
from src.fw_api import current_instance, get_radios, post_radio_session, get_track_radio, list_libraries, favorite_track, get_audio_file
from src.fw_api import current_instance, get_radios, post_radio_session, get_track_radio, list_libraries, favorite_track, get_audio_file, hide_content
from src.fw_libraries import libraries
from src.fw_tags import list_tags
from src.utils import download_track
@ -139,6 +139,10 @@ def radio_load(id_radio=None, type_radio='custom', name=None, related_object=Non
player.pause = False
else:
player.pause = True
elif select == 'Hide artist':
track = player_fw_storage.storage.get(track_url_to_uuid())
hide_content(
{'target': {'id': track.get('artist').get('id'), 'type': 'artist'}})
elif select == 'Download':
name_downloaded = download_track(player.stream_open_filename)
elif select == 'Info':