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

Call "on_play" in background.

parent d584a00c
No related branches found
No related tags found
No related merge requests found
...@@ -31,13 +31,13 @@ input_filesystem_1 = request.equeue(id="in_filesystem_1") ...@@ -31,13 +31,13 @@ input_filesystem_1 = request.equeue(id="in_filesystem_1")
#input_fs = cue_cut(mksafe(request.equeue(id="fs"))) #input_fs = cue_cut(mksafe(request.equeue(id="fs")))
# Update Trackservice # Call engine core handler to "on_play" (e.g. to update track service)
def do_meta_filesystem(meta) = def do_meta_filesystem(meta) =
filename = meta["filename"] filename = meta["filename"]
# artist = meta["artist"] # artist = meta["artist"]
# title = meta["title"] # title = meta["title"]
system('#{list.assoc(default="", "install_dir", ini)}/guru.py --on_play "#{filename}"') system('#{list.assoc(default="", "install_dir", ini)}/guru.py --on_play "#{filename}" &')
end end
input_filesystem_0 = on_metadata(id="in_filesystem_0", do_meta_filesystem, input_filesystem_0) input_filesystem_0 = on_metadata(id="in_filesystem_0", do_meta_filesystem, input_filesystem_0)
......
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