mirror of
https://github.com/migatu/conjurer.git
synced 2026-07-14 21:38:38 +00:00
JINGLES!
This commit is contained in:
@@ -41,18 +41,9 @@ let json.parse credentials = file.contents("/home/pi/Conjurer/icecast_credentia
|
||||
end
|
||||
|
||||
# Randomly select a playlist with weights
|
||||
s = random(id="randomizer", weights=[1, 3, 2], [s1, s2, s3])
|
||||
#s = delay(duration=5., s)
|
||||
#radio = add([delay(1800., jingles), music])
|
||||
#radio = fallback([delay(1800., jingles), music])
|
||||
#p = predicate.signal()
|
||||
#radio = switch([(p, jingles), ({true}, music)])
|
||||
#thread.run(every=1200., {p.signal()})
|
||||
# def cmd(_)
|
||||
# p.signal()
|
||||
# "Jingle inserted!"
|
||||
# end
|
||||
# server.register("insert_jingle", cmd)
|
||||
s4 = random(id="randomizer", weights=[1, 3, 2], [s1, s2, s3])
|
||||
jingles = (playlist(reload_mode="watch", "/home/pi/Conjurer/jingles.playlist"))
|
||||
s = rotate(id="randomizer", weights=[20, 1], [s4, jingles])
|
||||
|
||||
# Set up an interactive harbor for controlling the stream
|
||||
interactive.harbor(port = 9999)
|
||||
|
||||
Reference in New Issue
Block a user