On Tue, 30 Jun 2009 17:16:45 +0200, Solvik Blum <[email protected]>
wrote:
> Hi,
Hi !
> I would like to use an external application to manage the music which is
> played.
> So I though to use request.dynamic.
>
> My script has only that:
> pls = request.dynamic(id="scheduler",
> fun () ->
>
>
request(get_process_output("/home/oxyradio/liquidsoap/test/oxycast.php")))
>
>
> But it doesn't play anything and logs say:
> 2009/06/30 17:13:23 [scheduler:5] Queue is empty !
> 2009/06/30 17:13:23 [scheduler:5] Failed to prepare track: no file
> 2009/06/30 17:13:23 [scheduler:5] Queue is empty !
> 2009/06/30 17:13:23 [scheduler:5] Failed to prepare track: no file
> 2009/06/30 17:13:23 [scheduler:5] Queue is empty !
> 2009/06/30 17:13:23 [scheduler:5] Failed to prepare track: no file
> 2009/06/30 17:13:23 [scheduler:5] Queue is empty !
> 2009/06/30 17:13:23 [scheduler:5] Failed to prepare track: no file
> 2009/06/30 17:13:23 [scheduler:5] Queue is empty !
> 2009/06/30 17:13:23 [scheduler:5] Failed to prepare track: no file
>
>
> The script is executable, and when I execute it, i get the URI of a file
> like:
> /home/oxyradio/musique/rock/Andy Blurry - Square Fate.mp3
>
> Any idea ?
You should use list.hd(get_process_lines()), get_process_output will have
the trailing \n at the end.
For debugging purpose, you can also print the retrieved URI before sending
the request:
def process () =
s =
list.hd(get_process_lines("/home/oxyradio/liquidsoap/test/oxycast.php"))
print("\n\n\nGot: #{s}\n\n\n")
request.create(s)
end
Romain
--
If you are the big three,
We are the small axe...
------------------------------------------------------------------------------
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users