mirror of
https://github.com/migatu/conjurer.git
synced 2026-07-14 21:38:38 +00:00
Logging fix in radio
This commit is contained in:
@@ -24,9 +24,9 @@ emergency = single("/home/pi/RetroPie/mp3/Youtube/Dr. Peacock - Trip to Ireland
|
|||||||
radio = fallback(id="switcher",track_sensitive = false, [s, emergency])
|
radio = fallback(id="switcher",track_sensitive = false, [s, emergency])
|
||||||
|
|
||||||
handle_metadata = fun (m) -> begin
|
handle_metadata = fun (m) -> begin
|
||||||
print(m["title"])
|
log.info(m["title"])
|
||||||
print(m["artist"])
|
log.info(m["artist"])
|
||||||
print(m["filename"])
|
log.info(m["filename"])
|
||||||
end
|
end
|
||||||
radio.on_metadata(handle_metadata)
|
radio.on_metadata(handle_metadata)
|
||||||
interactive.persistent("script.params")
|
interactive.persistent("script.params")
|
||||||
|
|||||||
Reference in New Issue
Block a user