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)
source
end
# Tell the system when a new track
# is played
source = on_metadata(fun (meta) ->
# log("ON_METADATA_DISABLED"),
system('#{list.assoc("install_dir", ini)}/guru.py --adapt-trackservice-title'),
source)
# Tell the system when a new track is played
def do_meta(meta) =
artist = meta["artist"]
title = meta["title"]
system('#{list.assoc("install_dir", ini)}/guru.py --adapt-trackservice-title "|+|+|#{artist}|+|+|#{title}|+|+|"')
end
source = on_metadata(do_meta, source)
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