Mercurial > libervia-backend
diff libervia/backend/plugins/plugin_misc_radiocol.py @ 4270:0d7bb4df2343
Reformatted code base using black.
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 19 Jun 2024 18:44:57 +0200 |
parents | 4b842c1fb686 |
children |
line wrap: on
line diff
--- a/libervia/backend/plugins/plugin_misc_radiocol.py Tue Jun 18 12:06:45 2024 +0200 +++ b/libervia/backend/plugins/plugin_misc_radiocol.py Wed Jun 19 18:44:57 2024 +0200 @@ -195,13 +195,11 @@ ] # FIXME: referee comes from Libervia's client side, it's unsecure radio_data["to_delete"][ attrs["filename"] - ] = ( - song_path - ) # FIXME: works only because of the same host trick, see the note under the docstring + ] = song_path # FIXME: works only because of the same host trick, see the note under the docstring return self.send(referee, ("", "song_added"), attrs, profile=profile) def play_next(self, room_jid, profile): - """"Play next song in queue if exists, and put a timer + """ "Play next song in queue if exists, and put a timer which trigger after the song has been played to play next one""" # TODO: songs need to be erased once played or found invalids # ==> unlink done the Q&D way with the same host trick (see above) @@ -245,9 +243,7 @@ try: file_to_delete = radio_data["to_delete"][filename] except KeyError: - log.error( - _("INTERNAL ERROR: can't find full path of the song to delete") - ) + log.error(_("INTERNAL ERROR: can't find full path of the song to delete")) return False else: file_to_delete = filename