Hmm. I don't need to do any of that for my automation script, it just works. 
then I let nicecast take care of the rest when and if I decide to go live.

Blessings. 
> On Jan 7, 2015, at 2:44 PM, unosonic <u...@aporee.org> wrote:
> 
> 
> 
> 
> 
> 
> in your liq-file:
> 
> playlist = playlist(playlist_file)
> playlist = rewrite_metadata(
>       [("artist",'$(if $(my_artist),"$(my_artist)","$(artist)")'),
>       ("title", '$(if $(my_title),"$(my_title)","$(title)")')],playlist)
> 
> 
> and in playlist_file use the annotate protocol:
> 
> annotate:my_title="my title 1",my_artist="someone":/path/to/file1.mp3
> annotate:my_title="my title 2",my_artist="someone else":/path/to/file2.mp3
> ...
> 
> you can also define your own metadata tags, e.g. my_id
> 
> annotate:my_title="my 
> title",my_artist="someone",my_id="id1":/path/to/file2.mp3
> 
> and then do something with it:
> 
> radio = on_metadata(fun (meta) -> system("/path/to/your/script.php " ^ 
> quote(meta["my_id"]) ^  " &"), radio
> 
> which would exec "/path/to/your/script.php id1 &" every time metadata 
> appears, e.g.
> on track change. 
> 
> good luck, u.
> 
> 
> 
> 
> 
> 
> 
> 
> Dane Streeter:
>> Hi All
>> 
>> I'm not sure if any of my messages do get through on here as i dont 
>> think ive ever had a reply to any of my questions :(
>> 
>> I have a script at the moment that reads a playlist and outputs this to 
>> icecast - very simple.
>> 
>> I am looking to edit this so that I can get the track metadata posted to 
>> me elsewhere when the track changes in the playlist. I have found the 
>> on.track function which specifies that track meta data is used as argument.
>> 
>> A few questions:
>> 
>> - is on.track the right function to be using?
>> - how can i pass this argument of meta data outside of liquid soap?
>> - Ive seen theres http.get so I could call an external URL however Im 
>> unsure on how to expose the on.track argument to pass using http.get
>> - Am I missing something altogether that will allow me know know what 
>> track is playing when the track changes?
>> 
>> Any help is greatly appreciated, im so stuck!
>> 
>> Thank you
>> 
>> Dane
>> 
>> ------------------------------------------------------------------------------
>> Dive into the World of Parallel Programming! The Go Parallel Website,
>> sponsored by Intel and developed in partnership with Slashdot Media, is your
>> hub for all things parallel software development, from weekly thought
>> leadership blogs to news, videos, case studies, tutorials and more. Take a
>> look and join the conversation now. http://goparallel.sourceforge.net
>> _______________________________________________
>> Savonet-users mailing list
>> Savonet-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/savonet-users
> 
> ------------------------------------------------------------------------------
> Dive into the World of Parallel Programming! The Go Parallel Website,
> sponsored by Intel and developed in partnership with Slashdot Media, is your
> hub for all things parallel software development, from weekly thought
> leadership blogs to news, videos, case studies, tutorials and more. Take a
> look and join the conversation now. http://goparallel.sourceforge.net
> _______________________________________________
> Savonet-users mailing list
> Savonet-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/savonet-users


------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
_______________________________________________
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to