Hi David, Martin,
Here is what I had initially:
source = request.dynamic({request.create(get_process_output("php -q
#{scripts}next-song.php #{mount}"))})
where next-song.php merely echoed url of the next song.
But now I need to pass in from next-song.php some additional
information - song_id for example, which I want to write into the
database on_metadata. So here is how I rewrote the piece above:
params = string.split(separator="\|", get_process_output("php -q
#{scripts}next-song.php #{mount}"))
source = request.dynamic({request.create(list.nth(params, 0))
But when I do it like this it seems to remember first url produced by
get_process_output() and simply loops it over and over again :(
Davit Barbakadze
On Wed, May 18, 2011 at 12:18 AM, David Baelde <[email protected]> wrote:
> Hi Davit,
>
> The code you wrote probably isn't what you meant, if you're facing
> such problems: make sure the call to get_process_output() is
> inside/within the function that is passed to request.dynamic(). Feel
> free to post a snippet, of course.
>
> Cheers,
> --
> David
>
------------------------------------------------------------------------------
What Every C/C++ and Fortran developer Should Know!
Read this article and learn how Intel has extended the reach of its
next-generation tools to help Windows* and Linux* C/C++ and Fortran
developers boost performance applications - including clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users