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:
Jonas L 2022-01-17 10:51:32 +01:00 committed by GitHub
parent fe0b2c4a7a
commit 5364911922
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 130 additions and 230 deletions

View file

@ -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")