David Baelde:
> The request.dynamic() is like a queue, except that it doesn't wait for
> a push, but instead pulls data by calling a script whenever it wants
> to refill. Essentially it calls its "feeding function" (which calls
> your script) 

ok, thanks, got the basic concept. 

def agent() =
        # myscript returns one line with an URI or nothing 
        r = list.hd(get_process_lines("myscript"))
        # Create and return a request using this result
        request.create(r)
end
dyn = request.dynamic(agent)
radio = [dyn, playlist, secure]

this works as long as myscript returns an URI. how to deal with null 
output, i.e. no URI available? execution of myscript then results in
a complaint: [request:3] Nonexistent file or ill-formed URI ""!
what should happen is that the dynamic request source simply fails and
playlist takes over. must be something simple... tips appreciated,
thanks, udo


------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to