View Single Post
combatdoc's Avatar
Posts: 204 | Thanked: 29 times | Joined on May 2008
#21
If I knew GTK I would have genn'ed up a user interface, but alas I am no programmer.
Anyway, my suggeston would be to have the GUI read a text file/conf file for the channel list (Maybe all parameters in a .conf?)

That way when the channels change around its a simple user edit to get the channels right again.

BTW, I tried a couple different script combos, but it never errored out and was unusable. Who knows?

Anyway, you can change the script as follows. The line that was giving you problems is nothing but a failsafe I put in. As long as you give it a channel to play, the script runs just fine.

Code:
#!/bin/sh

USER=user@email.account
PASS=password

echo "XM Radio Player Script (^C Exits)"
echo "XM Radio Favorites"
echo "42 - XM Liquid Metal"
echo "43 - XMU"
echo "44 - Fred"
echo "45 - Starbucks Cafe"
echo "47 - Ethel"
echo "48 - Squizz"
echo "52 - The Verge"
echo "53 - Fungus"
echo "54 - Lucy"
echo  "XM Radio Channel?"
read REPLY

echo "Speed/Quality? <low, high>"
read SPEED
                                
mplayer -vo null -cache 256 -playlist "http://www.xstreamxm.com/mobile/stream.asx?email=$USER&pass=$PASS&chan=$REPLY&speed=$SPEED"

exit
__________________
Doc, 68W3P, AAS, NREMT-P
Far From Perfect
Mobile Version (Under Dev, Please Comment)
Nokia n810 Diablo
(After many years of Palm and Windows PDAs)
"So Shut Up, Live, Travel, Adventure, Bless, And Don't Be Sorry." - Jack Kerouac

Last edited by combatdoc; 2008-07-10 at 21:46.