[REQUEST] Sirius Script or Plugin? - Satellite internet radio streams online player?

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
LakersFan Offline
Senior Member
Posts: 184
Joined: Jan 2008
Reputation: 0
Post: #41
You've lost me... I downloaded the file above and opened it in Word Pad. From there, I'm lost. Attached is what I see when I open it. Also, when I'm done, do I need anything else? (what files actually get FTP'ed to the xbox?)
Thanks, sorry for the newb questions.:confused2:
Code:
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)
find quote
ed_m Offline
Junior Member
Posts: 10
Joined: Dec 2007
Reputation: 0
Post: #42
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.

Got a bit further. I'm using US Sirius, but this thread seems to be on top of things.

The old US version had 6 character captcha codes in SiriusBase.py - they now use 4 digit codes.

I took the 4 digit updated codes from the Canada script and inserted them into the US version. Its logging in now, but freezes at loading.

Back to work. Smile
find quote
Jumpstile Offline
Junior Member
Posts: 3
Joined: Jan 2008
Reputation: 0
Post: #43
Thanks Ed! Looking forward to trying your modifications! I love this script and I really miss it.

- J*
find quote
ed_m Offline
Junior Member
Posts: 10
Joined: Dec 2007
Reputation: 0
Post: #44
Jumpstile Wrote:Thanks Ed! Looking forward to trying your [CODE]modifications! I love this script and I really miss it.

- J*

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
find quote
ed_m Offline
Junior Member
Posts: 10
Joined: Dec 2007
Reputation: 0
Post: #45
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

Oh, and don't forget to put your username and pw in the runsirius.py file.
find quote
bronco28 Offline
Junior Member
Posts: 42
Joined: Dec 2006
Reputation: 0
Post: #46
Thanks Ed.... I took a look at the substition solution provided above and was completely lost when I started looking at it. I have dl your files and will try out today - I am in the US so I will post back and give you feedback.

Thanks again.
find quote
bronco28 Offline
Junior Member
Posts: 42
Joined: Dec 2006
Reputation: 0
Post: #47
No luck here. I used your files and it just stays at the loading screen for 15 - 20 minutes without anything else.....

Using the following Siriuss script - U.S. version 1.2.1

Any other suggestionsConfused I really miss this script.
find quote
ed_m Offline
Junior Member
Posts: 10
Joined: Dec 2007
Reputation: 0
Sad    Post: #48
Hm, not sure. I've got 1.2 on my XBOX, wonder if that makes a difference?

I'm not really a programmer, I think I got lucky with mine.

Dumb questions:

Changed un and pw in runsirius.py?
Copied siriusbase.py into the proper directory (SiriusLib)?
Waved magic chicken bones over XBOX?

Seriously, I've not the background to troubleshoot... Perhaps someone with real skills will get the script working properly.
find quote
ed_m Offline
Junior Member
Posts: 10
Joined: Dec 2007
Reputation: 0
Post: #49
A bit more info.

I'm working with someone else who is getting an error.

I licked the taking forever to cache by setting the cache setting for "Internet" in XBMC from 4M to 256K. If you remember, way back, we had to change the cache for "Unknown" to make it cache quicker.

My guess is at some point, Sirius changed stream types too.

His error is:

Quote:Apparently XBMC has problems playing this type of URL. Hopefully this will work in the future.

Look familiar?

Hes got a copy of my entire sirius directory off the XBOX, we'll see if we can narrow things down a bit.
find quote
ed_m Offline
Junior Member
Posts: 10
Joined: Dec 2007
Reputation: 0
Post: #50
Oh, BTW, mines still working - the guy I'm working with is checking XBMC version now.
find quote
Post Reply