feat(playout): migrate notify cli to click (#1519)
Fixes #1502 - replace notify option parser with click - refactor call from liquidsoap to playout-notify BREAKING CHANGE: the libretime-layout-notify log file in '/var/log/airtime/pypo-liquidsoap/notify.log' was removed and merged into the existing '/var/log/libretime/liquidsoap.log' log file.
This commit is contained in:
parent
fe0b2c4a7a
commit
5364911922
8 changed files with 130 additions and 230 deletions
|
@ -217,9 +217,7 @@ def make_scheduled_play_unavailable()
|
|||
end
|
||||
|
||||
def update_source_status(sourcename, status) =
|
||||
command = "timeout --signal=KILL 45 libretime-playout-notify --source-name=#{sourcename} --source-status=#{status} &"
|
||||
system(command)
|
||||
log(command)
|
||||
gateway("live '#{sourcename}' '#{status}'")
|
||||
end
|
||||
|
||||
def live_dj_connect(header) =
|
||||
|
@ -442,7 +440,4 @@ if s4_enable == true then
|
|||
s4_connected, s4_description, s4_channels)
|
||||
end
|
||||
|
||||
|
||||
command = "timeout --signal=KILL 45 libretime-playout-notify --liquidsoap-started &"
|
||||
log(command)
|
||||
system(command)
|
||||
gateway("started")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue