Hi Martin,

I cannot propose any working solution, but it should be possible to do
it as follows: you setup an insert_metadata() operator, and use
add_timeout() to periodically get the metadata from the URL, using
http.get(), and insert that metadata (after having parsed it) using
the function given by insert_metadata.

Here's a standalone minimal example doing this. Unfortunately I cannot
test at all at the moment.

url = "http://localhost/metadata";
source = blank()
insert_source = insert_metadata(source)
insert = fst(insert_source)
source = snd(insert_source)
delay = 5.
def update_meta() =
  x_data = http.get(url)
  insert([("title",snd(x_data))])
end
add_timeout(0., { update_meta() ; delay })
output.dummy(on_metadata(fun(m)->print(m),source))

Hope this helps,
-- 
David

------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to