Hi,

I'm using David's 'fill-in(s)' function for missing ID3 tags. I managed
to set the titles for all mp3/oggs to their respective filenames.
Locally, it works just fine. However, with either Icecast (mp3 or ogg)
and Shoutcast online, the 'Now Playing' lists 'Unknown'.

I do not know why the ID3 tags are not passed to either server.

Have I forgotten to do something?


******


# 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/TOHS.mp3" then
                ("title", 
"Rural_Catholic_Radio_-_from_the_heartland,_with_love.mp3")

            elsif m["filename"] ==  
"/usr/local/www/rcr/mp3/announce/opener/opener-mfts.mp3" then
                ("title", "Welcome_to_Music_for_the_Soul_by_Eric_Genuis.mp3")
                                
            elsif m["filename"] ==  
"/usr/local/www/rcr/radio/current/mp3/today-mfts-mp3-32.pls" then
                ("title", "Music_for_the_Soul_by_Eric_Genuis.mp3")

            elsif m["filename"] == "/usr/local/www/rcr/mp3/announce/CLOSER.mp3" 
 
then
                ("title",  
"Thank_you_for_listening_to_Music_for_the_Soul_by_Eric_Genuis.mp3")

            elsif m["filename"] ==  
"/usr/local/www/rcr/mp3/music/Genuis/Timeless/odd/Eric_Genuis_-_Timeless_-_05_-_Tears_in_Silence.mp3"
  
then
                ("title", "Eric_Genuis_-_Timeless_-_05_-_Tears_in_Silence.mp3")

            else ("title",  
"Rural_Catholic_Radio_-_www.RuralCatholicRadio.com_-_from_the_heartland,_with_love.mp3")
        
   end

           else key_value end,
            m)

          end

           map_metadata(f,s)

end

                
                icmp3 = fill_in(mfts)


*******


Thanks,
Andre


-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to