0
1
mirror of https://github.com/radio95-rnt/RadioPlayer.git synced 2026-02-27 06:03:52 +01:00

major internal changes (might be reverted)

This commit is contained in:
2025-12-12 21:20:38 +01:00
parent 06b983d3cd
commit 2d31f0a907
8 changed files with 53 additions and 80 deletions

View File

@@ -1,4 +1,4 @@
# websocket_module.py
# TODO: focus time in track
import multiprocessing, os
import json
import threading, uuid, time
@@ -165,7 +165,8 @@ class Module(PlayerModule):
if key := message.get("key", None): self.data[key] = out
except Exception: pass
def on_new_playlist(self, playlist: list[Track]) -> None:
def on_new_playlist(self, playlist: list[Track], global_args: dict[str, str]) -> None:
# TODO: add global args to data
api_data = []
for track in playlist:
api_data.append({