Skip to content

Instantly share code, notes, and snippets.

@Artanis
Created February 26, 2009 19:08
Show Gist options
  • Save Artanis/71037 to your computer and use it in GitHub Desktop.
Save Artanis/71037 to your computer and use it in GitHub Desktop.
Script to open radio streams in Totem Player.
#! /bin/bash
if [ "$1" = "" ]; then
echo "Opens selected station audio stream in totem-player"
echo "Available radio stations:"
echo " kfi KFI AM 640"
echo " kabc KABC AM 790"
fi
#KFI AM 640
if [ "$1" = "kfi" ]; then
MMS=$(wget -U "Sonos" http://www.kfi640.com/cc-common/streaming_new/?refreshed=yes -qO - |sed -r '/.*HREF="(.*?)".*/!d;s//\1/')
#echo $MMS
totem $MMS
fi
#KABC-AM 790
if [ "$1" = "kabc" ]; then
# http://citadelcc-KABC-AM.wm.llnwd.net/citadelcc_KABC_AM
#echo "http://citadelcc-KABC-AM.wm.llnwd.net/citadelcc_KABC_AM"
totem "http://citadelcc-KABC-AM.wm.llnwd.net/citadelcc_KABC_AM"
fi
@Artanis
Copy link
Author

Artanis commented Jul 23, 2010

This is now broken for both KFI and KABC.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment