mirror of
https://github.com/radio95-rnt/RadioPlayer.git
synced 2026-07-29 23:39:15 +02:00
whoops again
This commit is contained in:
+1
-1
@@ -220,7 +220,7 @@ class Module(PlayerModule):
|
|||||||
def imc_data(self, source: BaseIMCModule, source_name: str | None, data: object, broadcast: bool) -> object:
|
def imc_data(self, source: BaseIMCModule, source_name: str | None, data: object, broadcast: bool) -> object:
|
||||||
wsdata = {"event": "imc", "data": {"name": source_name, "data": data, "broadcast": broadcast}}
|
wsdata = {"event": "imc", "data": {"name": source_name, "data": data, "broadcast": broadcast}}
|
||||||
if source_name == "rds":
|
if source_name == "rds":
|
||||||
self.data[source_name] = data
|
self.data[source_name] = json.dumps(data)
|
||||||
wsdata = {"event": "rds", "data": data}
|
wsdata = {"event": "rds", "data": data}
|
||||||
try: self.ws_q.put(wsdata)
|
try: self.ws_q.put(wsdata)
|
||||||
except Exception: pass
|
except Exception: pass
|
||||||
|
|||||||
Reference in New Issue
Block a user