0
1
mirror of https://github.com/radio95-rnt/RadioPlayer.git synced 2026-02-26 13:52:00 +01:00
This commit is contained in:
2025-12-06 23:02:42 +01:00
parent 0dd76e48c8
commit ff3822b4f9
2 changed files with 8 additions and 3 deletions

View File

@@ -120,7 +120,6 @@ class Module(ActiveModifier):
return {"status": "ok", "message": f"{len(songs_to_add)} songs added."}
elif data.get("action") == "get_toplay":
with self.file_lock:
with open("/tmp/radioPlayer_toplay", "r") as f:
return {"status": "ok", "data": [i.strip() for i in f.readlines() if i.strip()]}
with open("/tmp/radioPlayer_toplay", "r") as f: return {"status": "ok", "data": [i.strip() for i in f.readlines() if i.strip()]}
activemod = Module()