Dear liquidsoaps :)
I am creating a stream from .pls playlists.
I would like to get into a variable the name and file from the track of
the playlist which is currently playing, so I could write into a file.
How could I go about doing this?
Thanks loads
Here is a piece of my code:
----
radio = fallback([ request.queue(id="request"),
switch([({ 0m-15m }, playlist_news),
({ 10m-13m }, playlist_weather),
({ 13m-30m }, playlist_science),
({ 30m-40m }, playlist_poker),
({ 40m-0m }, playlist_poems)
]), default
])
# Rewrite metadata
radio = rewrite_metadata([("comment","HERE GOES THE NAME")],radio)
-------
and my playlists follow this type of content
Title1=http://www.archive.org/details/DeadbeatByDice/
File1=http://www.archive.org/download/DeadbeatByDice/05Deadbeat.ogg
Title2=http://www.archive.org/details/SlipperyWhenWet/
File2=http://www.archive.org/download/SlipperyWhenWet/BillCosby.ogg
--
_
(` ).
http://www.andrecastro.info/
_( '`.
.=(`( . ) .--
(( (..__.:'-' .+( )
`( ) ( . )
` __.:' `-' '-
--..,___.--,--'-,---..-.--+--.,,-,,...
------------------------------------------------------------------------------
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