Hi Yoann, You can rewrite the metadata using rewrite_metadata() (or map_metadata()) and you may also find it useful to use on_metadata() to control (using print() or log()) the metadata packets that are actually produced by a source.
You can find more info about all these functions on the reference page, and liquidsoap -h <function>. If needed you can also find examples by searching the cookbook and mailing list using these keywords. Hope this helps, David On Sat, Jul 20, 2013 at 1:55 PM, Yoann Ferret <[email protected]> wrote: > Hi all, > > I'm using Liquidsoap for a few months now and I have to say it's stable and > great overall. Nice job you did there. > > But I'm having some kind of an issue — not being able to display the album > name in the radio metadata (Icecast output). > By default, Liquidsoap seems to return a simple "Artist - Title" information > to Icecast. > I'm trying to get the album metadata to show in there as well, as in "Artist > - Title (Album)". It seems quite simple, since all my tracks are properly > tagged (lots of MP3s and AACs and a few FLACs). But no matter how hard I > tried, I can't seem to be able to use rewrite_metadata or map_metadata > functions properly, thanks to my poor coding skills. > > Any help on how to do this would be very appreciated. > > For reference, please find my .liq file below ; it's pretty straightforward. > >> # Print log messages to the console >> set("log.stdout",true) >> >> # Setting playlist files >> completeselec = >> playlist(reload_mode="watch","~/radio/playlists/completeselec.txt") >> vghits = playlist(reload_mode="watch","~/radio/playlists/vghits.txt") >> pophits = playlist(reload_mode="watch","~/radio/playlists/pophits.txt") >> remixes = playlist(reload_mode="watch","~/radio/playlists/remixes.txt") >> chiptune = playlist(reload_mode="watch","~/radio/playlists/chiptune.txt") >> sega = playlist(reload_mode="watch","~/radio/playlists/segaselection.txt") >> >> # Setting jingle >> jingles = single("~/radio/jingles/jinglecg.flac") >> # Setting security fallback >> security = single("~/radio/jingles/somethingwentwrong.mp3") >> >> # Cooking randomly generated popular playlist as default (about 1 out of 5 >> songs is a VG hit) >> default = random(weights = [1,4], [vghits, completeselec]) >> >> # Feeding radio with schedules >> radio = fallback([ switch([ >> ({ (1w or 2w or 3w or 4w or 5w) and (11h-12h or 18h-19h) }, pophits), >> ({ (6w or 7w) and 9h-12h }, pophits), >> ({ (1w or 2w or 3w or 4w or 7w) and 23h-1h }, chiptune), >> ({ (5w or 6w) and 23h-4h }, chiptune), >> ({ 1w and 12h-18h }, sega), >> ({ 2w and 12h-18h }, chiptune), >> ({ 5w and 12h-18h }, remixes), >> ]), default]) >> >> # Feeding a jingle every 5 tracks >> radio = rotate(weights = [1,5],[jingles, radio]) >> # Feeding security fallback >> radio = fallback(track_sensitive = false, [radio, security]) >> >> # Normalize sound >> radio = normalize( radio ) >> >> # Add the ability to relay live shows >> radio = >> fallback(track_sensitive=true,[input.http("http://localhost:8000/live.mp3"), >> radio]) >> >> # Streams out to icecast both MP3 192 and eAAC+ 32 >> output.icecast (%mp3 (bitrate=192, samplerate=44100), host = "localhost", >> port = 8000, >> password = "hackme", mount = "default.mp3", radio) >> output.icecast (%fdkaac (bitrate=32, samplerate=44100, >> aot="mpeg4_he_aac_v2"), host = "localhost", port = 8000, >> password = "hackme", mount = "mobile.aac", radio) > > -- > Yoann Ferret > ------------------------------------------------------------------------------ > See everything from the browser to the database with AppDynamics > Get end-to-end visibility with application monitoring from AppDynamics > Isolate bottlenecks and diagnose root cause in seconds. > Start your free trial of AppDynamics Pro today! > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk > _______________________________________________ > Savonet-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/savonet-users -- David ------------------------------------------------------------------------------ See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk _______________________________________________ Savonet-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/savonet-users
