|
2008-07-07
, 02:34
|
Posts: 12 |
Thanked: 2 times |
Joined on Apr 2008
|
#12
|
The Following User Says Thank You to grydrgn For This Useful Post: | ||
|
2008-07-07
, 03:31
|
|
Posts: 204 |
Thanked: 29 times |
Joined on May 2008
|
#13
|
#!/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 if ["$REPLY" ==""]; then echo "I need a Channel to listen to." exit else mplayer -vo null -cache 256 -playlist "http://www.xstreamxm.com/mobile/stream.asx?email=$USER&pass=$PASS&chan=$REPLY&speed=$SPEED" fi exit
The Following 3 Users Say Thank You to combatdoc For This Useful Post: | ||
|
2008-07-08
, 19:21
|
|
Posts: 89 |
Thanked: 21 times |
Joined on Feb 2008
|
#14
|
|
2008-07-10
, 03:06
|
|
Posts: 89 |
Thanked: 21 times |
Joined on Feb 2008
|
#15
|
Hummm not sure what would be different. It's the first thing I did after I flashed to Diablo. Once you were logged in and picked the station did you click on the musical note in the upper right hand corner? When I do that it launches mplayer and starts streaming. Previous to Diablo this timed out for me 99% of the time.
|
2008-07-10
, 04:59
|
Posts: 5 |
Thanked: 1 time |
Joined on Jun 2008
|
#16
|
#!/bin/python from subprocess import Popen,PIPE import string USER = "username" PASS = "password" print "XM Radio Player Script (^C Exits)" print "XM Radio Favorites" print "202 - The Virus XL" print "48 - Squizz" print "83 - Chrome" print "150 - XM Comedy XL" REPLY = raw_input("XM Radio Channel? ") SPEED = raw_input("Speed/Quality? (low or high): ") if REPLY == "": print "I need a Channel to listen to." else: cmd = 'mplayer ' cmd = cmd + '-vo null ' cmd = cmd + '-cache 256 ' cmd = cmd + '-playlist "http://www.xstreamxm.com/mobile/stream.asx?' cmd = cmd + 'email=' + USER + '&' cmd = cmd + 'pass=' + PASS + '&' cmd = cmd + 'chan=' + REPLY + '&' cmd = cmd + 'speed=' + SPEED + '"' print "Opening channel " + REPLY p = Popen(cmd, shell=True, stdout=PIPE, stderr=PIPE) out = string.join(p.stdout.readlines()) outerr = string.join(p.stderr.readlines()) print out print outerr
The Following User Says Thank You to jhdeval For This Useful Post: | ||
|
2008-07-10
, 16:52
|
|
Posts: 204 |
Thanked: 29 times |
Joined on May 2008
|
#17
|
|
2008-07-10
, 19:06
|
Posts: 5 |
Thanked: 1 time |
Joined on Jun 2008
|
#18
|
if ["$REPLY" ==""]; then
|
2008-07-10
, 19:11
|
|
Posts: 89 |
Thanked: 21 times |
Joined on Feb 2008
|
#19
|
|
2008-07-10
, 21:33
|
Posts: 5 |
Thanked: 1 time |
Joined on Jun 2008
|
#20
|
and save the $9.95/month.