2007-12-08, 18:13
No, mine's dead too. The developer of the script has stopped updating it, so unless someone else that knows what they're doing picks it up, we're done.
diff -ru XBMCsiriusCanada-1.2.orig/sirius/RunSirius.py XBMCsiriusCanada-1.2.new/sirius/RunSirius.py
--- XBMCsiriusCanada-1.2.orig/sirius/RunSirius.py 2007-02-10 14:27:07.000000000 -0500
+++ XBMCsiriusCanada-1.2.new/sirius/RunSirius.py 2008-01-07 21:34:33.000000000 -0500
@@ -325,12 +325,12 @@
dialog.ok("Set your Sirius Username / Password!",
"You must set your Sirius username / password in RunSirius.py before using this script!")
else:
- currentversion = urllib.urlopen( "http://www.sacknet.org/sirius/currentversion" ).read().strip()
- if( currentversion != CURRENT_VERSION ):
- dialog.ok( "New version available!", "A new version of XBMCsirius is available!\n" +
- "This probably fixes some bugs, so you\n" +
- "might want to download it. Go to\n" +
- "sacknet.org/sirius for more information." )
+ #currentversion = urllib.urlopen( "http://www.sacknet.org/sirius/currentversion" ).read().strip()
+ #if( currentversion != CURRENT_VERSION ):
+ # dialog.ok( "New version available!", "A new version of XBMCsirius is available!\n" +
+ # "This probably fixes some bugs, so you\n" +
+ # "might want to download it. Go to\n" +
+ # "sacknet.org/sirius for more information." )
if(not globSir.DoLogin()):
dialog = xbmcgui.Dialog()
diff -ru XBMCsiriusCanada-1.2.orig/sirius/SiriusLib/SiriusBase.py XBMCsiriusCanada-1.2.new/sirius/SiriusLib/SiriusBase.py
--- XBMCsiriusCanada-1.2.orig/sirius/SiriusLib/SiriusBase.py 2007-02-10 14:05:27.000000000 -0500
+++ XBMCsiriusCanada-1.2.new/sirius/SiriusLib/SiriusBase.py 2008-01-07 21:36:05.000000000 -0500
@@ -139,19 +139,26 @@
def getChannelURL(self):
- url = 'http://mp.siriuscanada.ca/sirius/ca/servlet/MediaPlayer?activity=selectBitrate&bitrate=high&stream='
+ # As far as I can tell, this complex URL isn't necessary.
+ # Changed to be more Sipie-like. - January 7, 2008
+ #url = 'http://mp.siriuscanada.ca/sirius/ca/servlet/MediaPlayer?activity=selectBitrate&bitrate=high&stream='
+ #url = url + self.channelData['channel']
+ #url = url + '&genre=' + self.genreName
+ #url = url + '&category=' + self.categoryName
+ #url = url + '&token=' + self.channelData['token']
+
+ url = 'http://mp.siriuscanada.ca/sirius/ca/servlet/MediaPlayer?activity=selectStream&stream='
url = url + self.channelData['channel']
- url = url + '&genre=' + self.genreName
- url = url + '&category=' + self.categoryName
url = url + '&token=' + self.channelData['token']
+
req = urllib2.Request(url, self.txdata, self.txheaders)
channelPage = ClientCookie.urlopen(req).read()
- urlPos = channelPage.find('SRC="')
+ urlPos = channelPage.find('PARAM NAME="FileName" VALUE="')
if urlPos == -1:
return -1
- url = channelPage[urlPos + 5 :]
+ url = channelPage[urlPos + 29 :]
url = url[:url.find('"')]
req = urllib2.Request(url, self.txdata, self.txheaders)
ed_m Wrote:None of the Sirius accessing third party stuff seems to work, my XBMC has not been working for a month or more; yahoo's widget no longer works.
Mine fail to sign in.
I can still use the browser version of player from sirius' website, so I assume they've changed the login process, I do notice they now require you to input one of those visual challenges.
Give it time, I'm hoping someone'll fix the login issues.
Jumpstile Wrote:Thanks Ed! Looking forward to trying your [CODE]modifications! I love this script and I really miss it.
- J*
ed_m Wrote:Got it working, but it still takes forever to cache. Might be something I missed.
Between the 4 char codes and the Canada URL modifications, the US version worked for me today.
RunSirius.py: (in XBMCSirius root)
http://www.digitalbucket.net/Public/Down...8f28103fd5
SiriusBase.py: (in SiriusLib dir)
http://www.digitalbucket.net/Public/Down...526ccca062
Long links, but give it a shot.
Ed