Kodi Community Forum

Full Version: [OBSOLETE] Pandora Radio (Script) Music Addon
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
They have made a fix to piano.c, but I can't find where that file is in "script.xbmc.pandora". I'd love to make the change locally and see if that fixes it, if only I could find the file...
Somethings wrong. I am able to load the script. I get to the interface, I choose a station, but nothing happens.

I'm getting the error on 2 different systems.
adamomg Wrote:Somethings wrong. I am able to load the script. I get to the interface, I choose a station, but nothing happens.

I'm getting the error on 2 different systems.

Seriously...have you not read the last 3 post? Huh
I have tried this on two different computers. One running Dharma and one running eden. On both stations will not play. I used the zip script. I have no idea how the git is supposed to work.
Super easy fix.

Edit "addons/script.xbmc.pandora/libpandora/pandora.py" and change (on or about line 112) from:
Code:
reqUrl = BASE_URL_LID %( self.rid, self.lid, "getFragment" )
to:
Code:
reqUrl = BASE_URL_LID.replace("https", "http") %( self.rid, self.lid, "getFragment" )

It may be a bit of a hack, but it works fine for me until spbogie makes a fix.

Thanks for the addon spbogie, I love it!
atlanta800 Wrote:Super easy fix.

Edit "addons/script.xbmc.pandora/libpandora/pandora.py" and change (on or about line 112) from:
Code:
reqUrl = BASE_URL_LID %( self.rid, self.lid, "getFragment" )
to:
Code:
reqUrl = BASE_URL_LID.replace("https", "http") %( self.rid, self.lid, "getFragment" )

It may be a bit of a hack, but it works fine for me until spbogie makes a fix.

Thanks for the addon spbogie, I love it!

You, my good man, are AMAZING-Thanks!
Awesome Work Altanta800...!

Appreciate everyone's help to get this working..!
atlanta800 Wrote:Super easy fix.

Edit "addons/script.xbmc.pandora/libpandora/pandora.py" and change (on or about line 112) from:
Code:
reqUrl = BASE_URL_LID %( self.rid, self.lid, "getFragment" )
to:
Code:
reqUrl = BASE_URL_LID.replace("https", "http") %( self.rid, self.lid, "getFragment" )

It may be a bit of a hack, but it works fine for me until spbogie makes a fix.

Thanks for the addon spbogie, I love it!

And Thank you, atlanta800! Both of these are awesome! Glad to have pandora back on my new XBMC!
Super easy fix.

Edit "addons/script.xbmc.pandora/libpandora/pandora.py" and change (on or about line 112) from:
Code:
reqUrl = BASE_URL_LID %( self.rid, self.lid, "getFragment" )
to:
Code:
reqUrl = BASE_URL_LID.replace("https", "http") %( self.rid, self.lid, "getFragment" )
It may be a bit of a hack, but it works fine for me until spbogie makes a fix.

Thanks for the addon spbogie, I love it!


Sorry if this question seems basic, but how would I go about editing the file on an apple tv 2?
atlanta800 Wrote:Super easy fix.

Edit "addons/script.xbmc.pandora/libpandora/pandora.py" and change (on or about line 112) from:
Code:
reqUrl = BASE_URL_LID %( self.rid, self.lid, "getFragment" )
to:
Code:
reqUrl = BASE_URL_LID.replace("https", "http") %( self.rid, self.lid, "getFragment" )

It may be a bit of a hack, but it works fine for me until spbogie makes a fix.

Thanks for the addon spbogie, I love it!
Any hack that works is fine by me. Thanks for the info Atlanta800
I've tried changing this code as suggested but it doesn't work for me
I think my first question is where do I access this? I see the path begins with addon/ but where is this? Are you SSHing into the aTV to do this or into the zip file and then reinserting it to then be reinstalled? Please help clarify this, Pandora isn't that big a deal, but I prefer my plugins to work. Thanks!
swapface Wrote:Any hack that works is fine by me. Thanks for the info Atlanta800

I can confirm this fix works.
I have ssh'd into the zip file located in the atv, and opened pandora.py with Dashcode, is this the correct procedure? It doesn't seem to save it though i saved it. I tried re-downloading the zip editing it the same way while not IN the atv and then compressed it into a new zip file...either way i get an incorrect structure error when I try to install from zip file in xbmc...what gives? Can you be clearer where to edit this exactly?
johnalanmichael,
What you want to do is use cyberduck (mac) or putty (pc) to ssh into the apple tv. Then, go to the first directory (/). Open "Applications", then "XBMC.frappliance", then "XBMCdata", then "XBMCHome", then "addons", then "script.xbmc.pandora", then "libpandora", then right-click on "pandora.py" and select "edit with -> text edit". Here, you'll be able to change the .py to what it needs to be. Hope this helps, and I understand your frustration. This is my first time dealing with jail breaking, sshing, etc., and and sometimes these "simple" instructions are like reading a foreign language.
turley97,

Hey thank you! I got into it that far but without knowing what path to take its nearly impossible to take what he suggested so easily. I'll try it out when I get back home, YOU my friend are amazing! Thank you for much better relayed information.