I have a script for our overnight stream that is supposed to play station id's
for our station on some days as well as the id for another station who shares
our stream on the remaining days of the week. On Sunday and Thursday at
midnight, it starts playing the default single for 24 hours straight, then
switches back to expected behavior.
Here is my script:
`#!/home/liquid/.opam/system/bin/liquidsoap
##### Set the logfile location and also send it to standard out
set("log.file.path","/var/log/liquidsoap/liquidsoap-over.log")
##### Set the station ID location
stationid = mksafe(playlist("/home/local/STATION IDs"))
kfgmID = mksafe(playlist("/home/local/KFGM/Station IDs"))
##### Default Single Track
default = single("/home/gm/fallback-single.mp3")
##### Loading the Overnight Playlist
over = mksafe(playlist("/home/gm/overnight"))
##### Overnight for Sun - Wed
earlyweek = smooth_add(normal=over, special=switch([({0m0s},stationid)]))
##### Overnight for Thu - Sat to include KFGM ID's
lateweek = smooth_add(normal=over, special=switch([({0m0s}, stationid),
({1m0s}, kfgmID)]))
##### Puttin' the overnight together.
overnight = fallback([switch([({ 1w-5w }, earlyweek), ({ 6w-7w }, lateweek)]),
default])
##### Output overnight to Icecast mount /overnight
output.icecast(%mp3(bitrate=128, samplerate=44100,
stereo=true),host="localhost", port = 9999, password = "********", mount =
"overnight", overnight)
`
Here is a pertinent section of the log:
`2019/03/01 08:22:30 [decoder:3] Method "MAD" accepted
"/home/gm/fallback-single.mp3".
2019/03/01 08:22:30 [threads:3] Created thread "generic queue #1".
2019/03/01 08:22:30 [threads:3] Created thread "generic queue #2".
2019/03/01 08:22:30 [threads:3] Created thread "non-blocking queue #1".
2019/03/01 08:22:30 [threads:3] Created thread "non-blocking queue #2".
2019/03/01 08:22:30 [STATION_IDs:3] Loading playlist...
2019/03/01 08:22:30 [STATION_IDs:3] Playlist is a directory.
2019/03/01 08:22:30 [STATION_IDs:3] Successfully loaded a playlist of 69 tracks.
2019/03/01 08:22:30 [overnight:3] Loading playlist...
2019/03/01 08:22:30 [overnight:3] Playlist is a directory.
2019/03/01 08:22:30 [decoder:3] Method "MAD" accepted "/home/local/STATION
IDs/Conscious 2.mp3".
2019/03/01 08:22:30 [overnight:3] Successfully loaded a playlist of 9691 tracks.
2019/03/01 08:22:30 [Station_IDs:3] Loading playlist...
2019/03/01 08:22:30 [Station_IDs:3] Playlist is a directory.
2019/03/01 08:22:31 [decoder:3] Method "MAD" accepted
"/home/gm/overnight/Lionel Hampton/Lionel Hampton - The Ultimate Jazz Archive,
Big Bands-Lionel Hampton/10-Lionel Hampton-Punch and Judy.mp3".
2019/03/01 08:22:31 [Station_IDs:3] Successfully loaded a playlist of 5 tracks.
2019/03/01 08:22:31 [single_6435:3] "/home/gm/fallback-single.mp3" is static,
resolving once for all...
2019/03/01 08:22:31 [single_6435:3] Prepared "/home/gm/fallback-single.mp3"
(RID 0).
2019/03/01 08:22:31 [overnight(dot)1:3] Connecting mount overnight for
source@localhost...
2019/03/01 08:22:31 [decoder:3] Method "MAD" accepted "/home/local/KFGM/Station
IDs/Butte ID.mp3".
2019/03/01 08:22:31 [overnight(dot)1:3] Connection setup was successful.
2019/03/01 08:22:31 [threads:3] Created thread "wallclock_main" (1 total).
2019/03/01 08:22:31 [clock.wallclock_main:3] Streaming loop starts,
synchronized with wallclock.
2019/03/01 08:22:31 [fallback_6448:3] Switch to single_6435.
2019/03/01 08:22:54 [single_6435:3] Finished with
"/home/gm/fallback-single.mp3".
2019/03/01 08:22:54 [single_6435:3] Prepared "/home/gm/fallback-single.mp3"
(RID 0).
2019/03/01 08:23:16 [single_6435:3] Finished with
"/home/gm/fallback-single.mp3".
2019/03/01 08:23:16 [single_6435:3] Prepared "/home/gm/fallback-single.mp3"
(RID 0).
2019/03/01 08:23:25 [main:3] Shutdown started!
`
Any suggestions would be appreciated.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/savonet/liquidsoap/issues/725
_______________________________________________
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users