Hello there!

First of all thanks for the great project, this really looks like swiss
knife.

Started yesterday, so please excuse the noob question.


I'm trying to hook up MPD to liquidsoap and its working sort of. What I
want to archieve: a function which queries MPD for a specific genre an
returns a list. So nothing complicated.

My function:

def get_request(arg="ambient") =
  uri = 'mpd:genre=#{arg}'
  print("The string "^uri)
 request.create(uri,persistent=false)
end

Calling it:
radio = request.dynamic(id="autoplaylist",conservative=false,get_request)

This works. But as soon as i pass a parameter:
myplaylist =
request.dynamic(id="autoplaylist",conservative=false,get_request("techno"))


I get this error:
Error 5: this value has type
  request (inferred at line 32, char 1-37)
but it should be a subtype of the type of the value at
/home/micha/.opam/default/lib/liquidsoap/share/liquidsoap/git/58febd5e/libs/request.liq,
line 14, char 145
  () -> _ (inferred at
/home/micha/.opam/default/lib/liquidsoap/share/liquidsoap/git/58febd5e/libs/request.liq,
line 15, char 172-174)


Tried so much and i don't get it. Can someone point me in the right
direction?
And it seems, like nobody is using MPD in combination anymore, what are
your favourit indexers for it? The playlist concept is not of any use in
my case...


Thank you so much in advance, all the best,

Micha



_______________________________________________
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to