You've already forked RadioPlayer
mirror of
https://github.com/radio95-rnt/RadioPlayer.git
synced 2026-02-26 21:53:54 +01:00
don't be that verbose
This commit is contained in:
@@ -112,8 +112,6 @@ class Module(ActiveModifier):
|
|||||||
if data.get("action") == "add_to_toplay":
|
if data.get("action") == "add_to_toplay":
|
||||||
songs_to_add = data.get("songs")
|
songs_to_add = data.get("songs")
|
||||||
if isinstance(songs_to_add, list):
|
if isinstance(songs_to_add, list):
|
||||||
logger.info(f"Received request to add {len(songs_to_add)} items to toplay queue from '{source_name or 'unnamed'}'")
|
|
||||||
|
|
||||||
with self.file_lock:
|
with self.file_lock:
|
||||||
with open("/tmp/radioPlayer_toplay", "a") as f:
|
with open("/tmp/radioPlayer_toplay", "a") as f:
|
||||||
for song_path in songs_to_add: f.write(f"{song_path}\n")
|
for song_path in songs_to_add: f.write(f"{song_path}\n")
|
||||||
|
|||||||
Reference in New Issue
Block a user