Hi, Romain...

Thanks for this - exactly what I was hoping for.

I would use the AutoDJ callback as that is the only place this feature is needed - with live sources we do it from the source end.

# callback to modify autoDJ stream; accepts and must return a source
centovacast.callback_autodj = ref fun(s) -> s

Can you (or anyone) tell me why the "fun(s) -> .... s" bit /doesn't/ come into this? I am still trying to grasp how this scripting language works.

Many thanks!
--Richard E

On 28-Jul-17 15:44, Romain Beauxis wrote:

I did not know there was such a nice wrapper from Centova. Looks nice!

To me, it looks like you could try the following in custom.liq:

def add_album_metadata_to_title(m) =
  title = m["title"]
  artist = m["artist"]
  album = m["album"]
[("artist","Artist:#{artist}"),("title","Song:#{title} - Album:#{album}")]
end

centovacast.callback_all := map_metadata(add_album_metadata_to_title)

------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to