Topic: Stream Launcher for Linux

I wrote a little script to select a stream and then start playing it with vlc with a little dialog-box in linux. I really think its usefull, maybe someone else is interested. The script needs bash and Xdialog:


http://people.physik.hu-berlin.de/~herenz/radiosh/radio_sh.png


#!/bin/bash                                                                                                 
      Xdialog               \                                                                               
          --no-tags         \                                                                               
          --buttons-style icon      \                                                                       
          --title 'Select Stream'      \                                                                    
          --menu            \                                                                               
  '' 17 33 15         \                                                                                     
  'http://s8.viastreaming.net:7870/listen.pls' 'U B E R M E N S C H '  \                                    
  'http://77.250.148.210:8000/listen.m3u' 'roRbot FM'    \                                                  
  'http://pitchounet.serverroom.us:4360/live.ogg' 'Pitchounet Radio'  \                                     
  'http://radio1972.serverroom.us:7352/' 'Radio 1972 '    \                                                 
  'http://209.9.238.150:8000/R4R.m3u' 'ROBOTDJ.net radio' \                                                 
  'http://kybernetisk.dyndns.org:8000/listen.pls' 'Kybernetisk Kringkasting' \                              
  'http://kapow.skew.org:7778/' 'PKPN' \                                                                    
  'http://www.punainen.org/~biotek/radio_free_robotron/robot.m3u'  'Radio Free Robotron' \                  
  'http://85.214.71.142:3454/listen.pls' 'MSat Robot Radio' 2> /tmp/station                                 
                                                                                                            
retval=$?                                                                                                   
case $retval in                                                                                             
  0)                                                                                                        
        station=`cat /tmp/station`                                                                          
        vlc $station      ;;                                                                                
  1)                                                                                                        
    : ;;                                                                                                    
esac

Re: Stream Launcher for Linux

thanks for the effort

Re: Stream Launcher for Linux

Hey Knusper,
nice to see some bash scripting over here! big_smile