I have a similar approach but with HTTP GET and an API on the other end. Code
looks like this:
`def send_meta(m) =
ignore(http.get("http://api:10000/post/song?file=" ^ url.encode(m["filename"])
^ "&artist=" ^ url.encode(m["artist"]) ^ "&title=" ^ url.encode(m["title"]) ^
""))
end`
And then
`radio = on_metadata(send_meta, radio)`
I run an API written in golang that parses this output and also gets
information from mysql, then I output a json which I use on the website. If you
want to see the API code it's https://github.com/xtradio/xtradio-api (don't
judge, first golang project and not a dev)
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/savonet/liquidsoap/issues/515#issuecomment-401948507
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users