On Thu, 20 Dec 2012 12:56:06 -0500, Romain Beauxis <[email protected]> wrote:
> Hi, > > 2012/12/17 <[email protected]>: >> Thanks Romain, >> >> Is there any workaround? My IP has only FreeBSD's LS 1.0.0.2 available. >> >> Btw, the bug also seems to affect oggs as well. > > If the bug also affects oggs then we're not talking of the same thing. > >> The code that I'm using: >> >> >> <snip . . .> >> >> # Fill-in Title for ID3 Tag >> >> def fill_in(s) >> >> # the function f takes a list of pairs m >> representing the metadata >> # and it maps an anonymous function on each pair >> # replacing empty title definitions by >> title=filename >> >> def f(m) >> >> print("\n\nFor metadata: #{m}\n\n") >> list.map(fun (key_value) -> >> >> if key_value==("title","") then >> >> >> if m["filename"] == >> "/usr/local/www/rcr/mp3/announce/SOD.mp3" then >> ("title", "Good Morning") >> >> elsif m["filename"] == >> "/usr/local/www/rcr/mp3/announce/opener/opener-moap.mp3" then >> ("title", "Welcome to the Morning >> Offering and Prayers") >> >> elsif m["filename"] == >> "/usr/local/www/rcr/mp3/motths/Morning_Offering_to_the_Holy_Spirit.mp3" >> then >> ("title", "Morning Offering to the >> Holy Spirit") >> >> elsif m["filename"] == >> "/usr/local/www/rcr/mp3/announce/opener/opener-litanies.mp3" then >> ("title", "Welcome to Classic >> Litanies") >> >> elsif m["filename"] == >> "/usr/local/www/rcr/radio/current/mp3/today-litanies-mp3.pls" then >> ("title", "Classic Litanies") >> >> elsif m["filename"] == >> "/usr/local/www/rcr/radio/current/mp3/today-moap-mp3.pls" then >> ("title", "Morning Offering and >> Prayers - see www.RuralCatholicRadio.com for details") >> >> elsif m["filename"] == >> "/usr/local/www/rcr/mp3/announce/opener/opener-tioc.mp3" then >> ("title", "Welcome to Morning >> Meditation with the Imitation of Christ by Thomas a Kempis") >> >> elsif m["filename"] == >> "/usr/local/www/rcr/mp3/announce/opener/opener-tioc.mp3" then >> ("title", "Morning Meditation >> with the >> Imitation of Christ by Thomas a Kempis") >> >> elsif m["filename"] == >> "/usr/local/www/rcr/mp3/gofr/Divine_Mercy_-_The_Gift_OF_Final_Repentance.mp3" >> then >> ("title", "Divine Mercy - The >> Gift of >> Final Repentance") >> >> elsif m["filename"] == >> "/usr/local/www/rcr/mp3/announce/CLOSER.mp3" then >> ("title", "Thank you for praying >> the >> Morning Offering and Prayers") >> >> elsif m["filename"] == >> "/usr/local/www/rcr/radio/current/mp3/moap-mp3-end.pls" then >> ("title", "Morning Offering and >> Prayers - see www.RuralCatholicRadio.com for details") >> >> else ("title", "Morning Offering and >> Prayers - see www.RuralCatholicRadio.com for details") >> >> end >> >> else key_value end, >> m) >> >> end >> >> map_metadata(f,s) >> >> end >> >> >> moap = fill_in(moap) > > Not sure what's wrong. Have you tried to print out values received by > the function? > > Romain I have a little problem with synchronization: my local copy is LS 0.92, production is LS 1.0.0.2. So, to test the function - I'm not sure how to print it out (production); (local) would give the correct 'Current Song: blah, blah, blah' if I was able to fire it up locally - I can't because all the internal code stuff is set for production. So, the question is how to fool LS in production to print out the value of the function. If I add printf or print, it'll probably barf on me, and I'm no wiser what is happening. Any ideas on how to insert it so that it might show up in Icecast's YP page, or failing that, somewhere I could see the output? I've looked at the liquidsoap log, and the old value (this is from my sketchy memory of it) does not appear Example snippet output from LS 1.0.0.2 (production) log: For metadata: [("filename","/usr/local/www/rcr/mp3/announce/opener/opener-atdp.mp3"), ("status","playing"), ("source","atdp-mp3-top(dot)pls"), ( "initial_uri","/usr/local/www/rcr/mp3/announce/opener/opener-atdp.mp3"), ("on_air","2012/12/20 13:30:32"), ("rid","358"), ("kind","{audio=1+;video=0;midi=0}"), ("decoder","MP3 "), ("temporary","false")] If I recall correctly, the last time I had attempted an upgrade from LS 0.92 to LS 1.0.0, the function stopped working. As soon as I put LS 0.92 back in production, no problems. If this problem is not resolved, then the Current Song data is not displayed in YP, and forces a potential listener to check the website (good luck, eh? - click . . . goodbye) Blessings, Andre ------------------------------------------------------------------------------ LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial Remotely access PCs and mobile devices and provide instant support Improve your efficiency, and focus on delivering more value-add services Discover what IT Professionals Know. Rescue delivers http://p.sf.net/sfu/logmein_12329d2d _______________________________________________ Savonet-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/savonet-users
