refactor(playout): move liq io to liq_client
This commit is contained in:
parent
fd2381624a
commit
a9cd1fb3df
2 changed files with 15 additions and 9 deletions
|
@ -59,6 +59,11 @@ class LiquidsoapClient:
|
|||
|
||||
raise LiquidsoapClientError("could not get liquidsoap version")
|
||||
|
||||
def outputs_connection_status(self):
|
||||
with self.conn:
|
||||
self.conn.write("streams.connection_status")
|
||||
return self.conn.read().splitlines()[0]
|
||||
|
||||
def queues_remove(self, *queues: int) -> None:
|
||||
with self.conn:
|
||||
for queue_id in queues:
|
||||
|
@ -125,6 +130,10 @@ class LiquidsoapClient:
|
|||
if input_fade_transition is not None:
|
||||
self._set_var("default_dj_fade", input_fade_transition)
|
||||
|
||||
def boot_timestamp_update(self, timestamp: float):
|
||||
with self.conn:
|
||||
self._set_var("bootup_time", str(timestamp))
|
||||
|
||||
def restart(self):
|
||||
logger.warning("restarting Liquidsoap")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue