feat(playout): allow updating message_offline value
This commit is contained in:
parent
314c70a208
commit
f5a83dbabb
10 changed files with 42 additions and 15 deletions
|
@ -92,6 +92,9 @@ class PypoFetch(Thread):
|
|||
elif command == "update_stream_format":
|
||||
logger.info("Updating stream format...")
|
||||
self.update_liquidsoap_stream_format(m["stream_format"])
|
||||
elif command == "update_message_offline":
|
||||
logger.info("Updating message offline...")
|
||||
self.update_liquidsoap_message_offline(m["message_offline"])
|
||||
elif command == "update_station_name":
|
||||
logger.info("Updating station name...")
|
||||
self.update_liquidsoap_station_name(m["station_name"])
|
||||
|
@ -207,6 +210,13 @@ class PypoFetch(Thread):
|
|||
except (ConnectionError, TimeoutError) as exception:
|
||||
logger.exception(exception)
|
||||
|
||||
@ls_timeout
|
||||
def update_liquidsoap_message_offline(self, message_offline: str):
|
||||
try:
|
||||
self.liq_client.settings_update(message_offline=message_offline)
|
||||
except (ConnectionError, TimeoutError) as exception:
|
||||
logger.exception(exception)
|
||||
|
||||
@ls_timeout
|
||||
def update_liquidsoap_transition_fade(self, fade):
|
||||
try:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue