NIce. Here is my contribution.  It's a python script that I found once at
whatsup. There are a couple of other scripts there as well.


#!/usr/bin/python

"""
radio.py 0.1

A script that makes it easy to listen to online radio via mplayer

"""


###########################################################################
 #   Copyright (C) 2007 by Guy Rutenberg                                   #
 #   [EMAIL PROTECTED]                                                #
 #                                                                         #
 #   This program is free software; you can redistribute it and/or modify  #
 #   it under the terms of the GNU General Public License as published by  #
 #   the Free Software Foundation; either version 2 of the License, or     #
 #   (at your option) any later version.                                   #
 #                                                                         #
 #   This program is distributed in the hope that it will be useful,       #
 #   but WITHOUT ANY WARRANTY; without even the implied warranty of        #
 #   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         #
 #   GNU General Public License for more details.                          #
 #                                                                         #
 #   You should have received a copy of the GNU General Public License     #
 #   along with this program; if not, write to the                         #
 #   Free Software Foundation, Inc.,                                       #
 #   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             #
############################################################################

import sys,os

radiostations = {#name:(address,description),
        'Galgalatz':('http://gifs.msn.co.il/media/gglz.asx',''),
        'Radio Tel Aviv':('
http://switch3.castup.net/cunet/gm.asp?clipmediaid=30795',''),
        'Galatz':('http://gifs.msn.co.il/media/glz.asx',''),
    'RB':('http://switch3.castup.net/cunet/gm.asp?ai=31&ar=Reshet%5FBet
',''),
        'Reshet Gimel':('
http://switch3.castup.net/cunet/gm.asp?ai=31&ar=Gimel',''),
    'Seattle':('
http://spraydio.se/player/asx.jsp?room=seattle&spot=false',''),
     'Rock':('http://www.radio-directory.com/website.cfm?id=12020',''),
    '99ESC':('http://s18wm.castup.net/991791101-52.wmv',''),
        '103FM':('http://live.103.fm/103fm-low/',''),
    '103FM2nd':('mms://s18wm.castup.net/995460001-52.wmv',''),
        '100FM':('http://213.8.143.164/audiomedia',''),
        'Haifa':('mms://192.117.122.108/radio',''),
    '102fm':('http://212.179.112.29/102fm',''),
    'oldies':('http://67.159.5.44:8218',''),
    'oldies2':('http://67.159.44.120:8112','')
        }
if len(sys.argv)<1:
        print "you need to supply a station name"
        sys.exit(1)

try:
        radiostations[sys.argv[1]]
except KeyError:
        print "Didn't recognized this station name:",sys.argv[1]
        sys.exit(1)

args=['mplayer', '-softvol', '-playlist', radiostations[sys.argv[1]][0] ]
os.execvp(args[0],args)




On Fri, Oct 31, 2008 at 5:31 PM, Yuval Hager <[EMAIL PROTECTED]> wrote:

> On Friday 31 October 2008, Geoffrey S. Mendelson wrote:
> > Is there a Galalatz stream that can be heard from Linux?
> >
> > I'd prefer just a url I can feed into mplayer, but a URL that works with
> > FireFox would be ok?
> >
> > Thanks, Geoff.
>
> Here's my list:
>
> $ cat /usr/local/etc/medias
> glz mms://stream.msn.co.il/glz-stream
> gglz mms://stream.msn.co.il/gglz
> nostalgie mms://vipnrj.yacast.net/encodernostalgie
> 88fm <http://vipnrj.yacast.net/encodernostalgie88fm> mms://
> s67wm.castup.net/990310006-52.wmv
> 103fm <http://s67wm.castup.net/990310006-52.wmv103fm> mms://
> s18wm.castup.net/995460001-52.wmv
> fip http://mp3.live.tv-radio.com/fip/all/fiphautdebit.mp3
> channel2
>
> http://www.keshet-tv.com/Common/Castup.aspx?SourceID=34&CampaignID=0&Url=http%3a%2f%2fswitch3.castup.net%2fcunet%2fgm.asp%3fai%3d385%26ar%3dLiveTV%26dr%3d00%3a00%3a00&MediaID=5460
> channel10<http://www.keshet-tv.com/Common/Castup.aspx?SourceID=34&CampaignID=0&Url=http%3a%2f%2fswitch3.castup.net%2fcunet%2fgm.asp%3fai%3d385%26ar%3dLiveTV%26dr%3d00%3a00%3a00&MediaID=5460channel10>mms://
> sn2wm.castup.net/993860003-52.wmv
> channel1 <http://sn2wm.castup.net/993860003-52.wmvchannel1>
> http://switch3.castup.net/cunet/gm.asp?ai=31&ar=Channel_1
> aleph mms://s4bwm.castup.net/990310002-52.wmv
> bet mms://s4awm.castup.net/990310001-52.wmv
> gimel mms://s4awm.castup.net/990310004-52.wmv
>
> And I have in my .bashrc:
> myplay() { mplayer `awk '/^'"$1"' / {print $2}' /usr/local/etc/medias`;}
>
> so I just need to run:
> $ myplay gglz
>
> The other streams in the list should also work, but could be that some are
> not
> up to date.
>
> (fip and nostalgie are french radios - for the francophiles between you)
>
> --
> Yuval Hager
> [T] +972-77-341-4155
> [EMAIL PROTECTED] [EMAIL PROTECTED]
>

Reply via email to