Skip to content
Snippets Groups Projects
Commit 1c21abc5 authored by David Trattnig's avatar David Trattnig
Browse files

Liquidsoap notification on fallbacks

parent 33a52785
No related branches found
No related tags found
No related merge requests found
...@@ -113,12 +113,15 @@ def fallback_create(~skip=true, name, requestor) ...@@ -113,12 +113,15 @@ def fallback_create(~skip=true, name, requestor)
source source
end end
# Tell the system when a new track
# is played # Tell the system when a new track is played
source = on_metadata(fun (meta) -> def do_meta(meta) =
# log("ON_METADATA_DISABLED"), artist = meta["artist"]
system('#{list.assoc("install_dir", ini)}/guru.py --adapt-trackservice-title'), title = meta["title"]
source) system('#{list.assoc("install_dir", ini)}/guru.py --adapt-trackservice-title "|+|+|#{artist}|+|+|#{title}|+|+|"')
end
source = on_metadata(do_meta, source)
log("channel created") log("channel created")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment