This commit is contained in:
2024-04-22 13:10:47 +02:00
committed by migatu
parent 430a66c3ba
commit 1a75f5588d
+1 -16
View File
@@ -57,22 +57,7 @@ let json.parse credentials = file.contents("/home/pi/Conjurer/icecast_credentia
# Skip blank sections in the stream
s = blank.skip(max_blank=2., s)
l = playlog()
l.duration = 14400
l.persistency = "/Conjurer/persistence.log/"
def check(r)
m = request.metadata(r)
if l.last(m) < 3600. then
log.info("Rejecting #{m['filename']} (played #{l.last(m)}s ago).")
false
else
l.add(m)
true
end
end
# Configure logging settings
# Configure logging settings
log_to_stdout = true
log_to_file = true
logpath = "/home/pi/Conjurer/radio_log.log"