I couldn't attend the lesson, and I would like to post a script that I have
for playing radio stations in Israel.

On Thu, Feb 21, 2008 at 1:26 PM, Hai Zaar <[EMAIL PROTECTED]> wrote:

> On Thu, Feb 21, 2008 at 1:30 AM, Orr Dunkelman <[EMAIL PROTECTED]>
> wrote:
> > Hai shalom (and all the rest),
> >
> > If you want to organize a lightening talk session (or a mud fight) over
> > VCS/CVS/BitKeepers/Git (and any other esteemed solution which I might
> have
> > forgot) - be my guest!
> May be that should not be VCS specific talk. On crawlers lightening
> talk you've mentioned that next lightening talk will probably be not
> specific to any particular subject.
> For example, I have another topic:
>  * libbash (libbash.sf.net) - easing bash scripts writing
>
>
> >
> > So - if there is a demand for such a lightening session - email now, or
> > forever hold your ALT+F4 pressed!
> >
> > Orr.
> >
> >
> >
> > On Tue, Feb 19, 2008 at 7:54 PM, Hai Zaar <[EMAIL PROTECTED]> wrote:
> > >
> > >
> > >
> > > Good day!
> > > Is there any other "Lightening day" planned?
> > > Git lecture mentioned interesting topic of recording VCS Id
> > > information in binaries.
> > > I tried to use it and it turned out that there are at least several
> > > ways to do it.
> > > I think it would be worth 15 minutes to hear about how it can be done.
> > >
> > > --
> > > Zaar
> > > _______________________________________________
> > > Haifux mailing list
> > > Haifux@haifux.org
> > > http://hamakor.org.il/cgi-bin/mailman/listinfo/haifux
> > >
> >
> >
> >
> > --
> > Orr Dunkelman,
> > [EMAIL PROTECTED]
> >
> > "Any human thing supposed to be complete, must for that reason
> infallibly
> >  be faulty" -- Herman Melville, Moby Dick.
> >
> > GPG fingerprint: C2D5 C6D6 9A24 9A95 C5B3 2023 6CAB 4A7C B73F D0AA
> > (This key will never sign Emails, only other PGP keys. The key
> corresponds
> > to [EMAIL PROTECTED])
>
>
>
> --
> Zaar
> _______________________________________________
> Haifux mailing list
> Haifux@haifux.org
> http://hamakor.org.il/cgi-bin/mailman/listinfo/haifux
>
#!/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 Bet':('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&amp;spot=false',''),
	'99ESC':('http://s18wm.castup.net/991791101-52.wmv',''),
        '103FM':('http://live.103.fm/103fm-low/',''),
        '100FM':('http://213.8.143.164/audiomedia',''),
        'Haifa':('mms://192.117.122.35/radio','')
        }

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)

_______________________________________________
Haifux mailing list
Haifux@haifux.org
http://hamakor.org.il/cgi-bin/mailman/listinfo/haifux

Reply via email to