mirror of
https://gitea.phreedom.club/localhost_frssoft/funkwlmpv
synced 2024-11-05 14:53:02 +00:00
lol, fix hide artist in radio
This commit is contained in:
parent
8850ac2916
commit
9c940a0bac
@ -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':
|
||||
|
Loading…
Reference in New Issue
Block a user