If you're comfortable with using cvsweb, you could also generate a
diff if you look at the files mentioned below.

On Tue, Jun 24, 2003 at 02:27:33PM +0200, Paul Hampton wrote:
> Hi Tommy
> 
> I wrote and submitted the internet streaming part on 7th May and I'm 
> pretty sure its only in the cvs version and not in pre4 which came out 
> on 24th April.
> 
> So you can either use the cvs version or here are the modifications I 
> submitted at the time (Aubin cleaned them up for the cvs so this is more 
> a 'rougher' version but it works quickly if you want to use it - it is 
> just things like the labels are incorrect on the screen like it says 
> 'album'):
> 
> Go to src/audio
> 
> Add these two bits to audioitem.py (should be pretty obvious where to 
> put them):
> 
>           if re.match('.*[fF][xX][dD]$', self.filename):
>               if DEBUG > 1: print "Got fxd..."
>               self.set_info_radio(self.filename)
> 
> AND
> 
>   def set_info_radio(self, filename):
>       """
>       Sets the info variables with info from the mp3
> 
>       Arguments: filename
>         Returns: 1 if success
>       """
>       import xmllib
>       import xml
>       from xml.parsers import expat
>       sourcexml = open(filename, 'r')
>       xmlpp = sourcexml.read()
> 
>       def s_el(name, attrs):
>           global glob_name
>           glob_name = name
>       def e_el(name):
>           print "   (attribute", name, "ends)"
>       def c_data(data):
>           global glob_name
>           global glob_val
>           global glob_url
>           print glob_name, data
>           if data:
>               if glob_name == 'title':
>                   self.title = data
>                   glob_name = 0
>               if glob_name == 'genre':
>                   self.album = data
>                   glob_name = 0
>               if glob_name == 'desc':
>                   self.artist = data
>                   glob_name = 0
>               if glob_name == 'url':
>                   self.year = data
>                   print "URL:", self.year
>                   glob_name = 0
>       prs = xml.parsers.expat.ParserCreate()
>       prs.StartElementHandler = s_el
>       prs.EndElementHandler = e_el
>       prs.CharacterDataHandler = c_data
>       prs.returns_unicode = 0
>       prs.Parse(xmlpp)
>       return 1
> 
> and edit this part of the audio/mplayer.py
> 
>   def play(self, item):
>       """
>       play a audioitem with mplayer
>       """
>       if item.year:
>           filename = item.year
>       else:
>           filename = item.filename
> 
> You will also need to edit the freevo_config to recognise fxd files in 
> the audio bit. Sorry its so messy, I have never programmed python before.
> 
> Here is an example fxd file:
> 
> <?xml version="1.0" ?>
> <freevo>
>   <title>Ministry of Sound Radio</title>
>   <audio>
>     <mplayer_options></mplayer_options>
>       <url>http://www.ministryofsound.com/asx/radio/mosradio.asx</url>
>   </audio>
>   <info>
>     <genre>Dance</genre>
>     <desc>All the Biggest Names in Dance - Fatboy Slim, Sasha, Jazzy M, 
> Paul Van Dyk, DJ Wicksta, Peri Rollah, Ferry Corsten and many more live 
> on MoS Radio.</desc>
>   </info>
> </freevo>
> 
> If you need a hand adding this stuff then mail me or icq 4545353.
> 
> Regards,
> Paul
> 
> PS. as you probably noticed, the 'logo' part is unessecary in the .fxd 
> files, I just left that there when I was testing. If you call the image 
> the same name as the .fxd then it works (as I see you have done).
> 
> 
> Tommy Killander wrote:
> 
> >Hi,
> >
> >I'm having trouble getting Internet Radio to work. Sorry to bother you guys
> >but and I think I need some pointers in the right direction :)
> >
> >Freevo shows the Internet Radio directory in the Audio menu, but it says
> >that "The directory is empty" when I enter it. I use freevo-1.3.2-pre4 on
> >top of RH8.0
> >
> >I have created a directory where I want to put my server URLs called
> >"/mnt/iradio".
> >
> >[EMAIL PROTECTED] iradio]# pwd
> >/mnt/iradio
> >[EMAIL PROTECTED] iradio]# ls -la
> >total 52
> >drwxr-xr-x    2 root     root         4096 Jun 24 13:42 .
> >drwxr-xr-x    7 root     root         4096 Jun 24 12:04 ..
> >-rw-r--r--    1 root     root          404 Jun 24 13:42 Classic Techno.fxd
> >-rwxr-xr-x    1 root     root        10945 Jun 24 12:14 Classic Techno.png
> >-rw-r--r--    1 root     root          382 Jun 24 12:28 Groove Salad.fxd
> >-rwxr-xr-x    1 root     root        24053 Jun 24 13:23 Groove Salad.png
> >[EMAIL PROTECTED] iradio]#
> >
> >My local_conf.py contains:
> >
> >DIR_AUDIO = [ ('My Audio Files', '/mnt/common/Music'),
> >             ('Internet Radio', '/mnt/iradio') ]
> >
> >One of my .fxd files look like:
> >
> >[EMAIL PROTECTED] iradio]# cat Classic\ Techno.fxd
> ><?xml version="1.0" ?>
> ><freevo>
> >   <title>Classic Techno</title>
> >   <logo source="/mnt/iradio/"></logo>
> >   <audio>
> >       <mplayer_options></mplayer_options>
> >       <url>http://205.188.234.65:8020</url>
> >   </audio>
> >   <info>
> >       <genre>Techno</genre>
> >       <desc>D I G I T A L L Y - I M P O R T E D - Classic Techno &
> >Trance - old school techno, trance & rave!</desc>
> >   </info>
> ></freevo>
> >
> >
> >/Tommy Killander
> >
> > 
> >
> >>-----Original Message-----
> >>From: [EMAIL PROTECTED]
> >>[mailto:[EMAIL PROTECTED] Behalf Of Aubin Paul
> >>Sent: den 23 juni 2003 16:23
> >>To: [EMAIL PROTECTED]
> >>Subject: Re: [Freevo-users] Streaming Internet Radio
> >>
> >>
> >>All you need to do is add a fxd file like this example to your Music
> >>directories.
> >>
> >><?xml version="1.0" ?>
> >><freevo>
> >>   <title>Mostly Classical</title>
> >>   <logo source="testfiles/Music/"></logo>
> >>   <audio>
> >>       <mplayer_options></mplayer_options>
> >>       <url>http://205.188.209.193:80/stream/1006</url>
> >>   </audio>
> >>   <info>
> >>       <genre>Classical</genre>
> >>       <desc></desc>
> >>   </info>
> >></freevo>
> >>
> >>
> >>On Mon, Jun 23, 2003 at 06:50:28AM -0700, Jay Herrick wrote:
> >>   
> >>
> >>>Hello List,
> >>>
> >>>I'm sure I've seen this at least mentioned before on this list, but I
> >>>can't find it in the archives.  Is there any way to have Freevo play
> >>>streaming internet radio, or any icecast style stream.  I can play them
> >>>through mplayer by providing a URL on the command line.  So how can I
> >>>automate this through Freevo.  There's got to be an XML tag
> >>>     
> >>>
> >>somewhere! ;)
> >>   
> >>
> >>>Thanks for any help,
> >>>
> >>>-Jay Herrick
> >>>
> >>>
> >>>
> >>>
> >>>-------------------------------------------------------
> >>>This SF.Net email is sponsored by: INetU
> >>>Attention Web Developers & Consultants: Become An INetU Hosting Partner.
> >>>Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
> >>>INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
> >>>_______________________________________________
> >>>Freevo-users mailing list
> >>>[EMAIL PROTECTED]
> >>>https://lists.sourceforge.net/lists/listinfo/freevo-users
> >>>     
> >>>
> >>-------------------------------------------------------
> >>This SF.Net email is sponsored by: INetU
> >>Attention Web Developers & Consultants: Become An INetU Hosting Partner.
> >>Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
> >>INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
> >>_______________________________________________
> >>Freevo-users mailing list
> >>[EMAIL PROTECTED]
> >>https://lists.sourceforge.net/lists/listinfo/freevo-users
> >>
> >>   
> >>
> >
> >
> >
> >-------------------------------------------------------
> >This SF.Net email is sponsored by: INetU
> >Attention Web Developers & Consultants: Become An INetU Hosting Partner.
> >Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
> >INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
> >_______________________________________________
> >Freevo-users mailing list
> >[EMAIL PROTECTED]
> >https://lists.sourceforge.net/lists/listinfo/freevo-users
> > 
> >
> 
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by: INetU
> Attention Web Developers & Consultants: Become An INetU Hosting Partner.
> Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
> INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
> _______________________________________________
> Freevo-users mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/freevo-users


-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
_______________________________________________
Freevo-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-users

Reply via email to