Kodi Community Forum
[OBSOLETE] Pandora Radio (Script) Music Addon - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Music Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=148)
+---- Thread: [OBSOLETE] Pandora Radio (Script) Music Addon (/showthread.php?tid=70471)



No longer working - gregms - 2011-05-05

Pandora v1.0.0 had been working for me just fine but now when I try to run it, I get an error message "Failed to authenticate listener. Check username/password and try again.

My username and password are correct. Did Pandora pull the plug on the way this was connecting?


- bac522 - 2011-05-05

gregms Wrote:Pandora v1.0.0 had been working for me just fine but now when I try to run it, I get an error message "Failed to authenticate listener. Check username/password and try again.

My username and password are correct. Did Pandora pull the plug on the way this was connecting?

Please read a page or 2 back, it's discussed along with the fix.


- gregms - 2011-05-05

bac522 Wrote:Please read a page or 2 back, it's discussed along with the fix.

Doh, sorry. That fixed it, thanks. Quick repost on the fix.

Step 1: open libpandora/pandora.py and change PROTOCOL_VERSION to equal 30 (PROTOCOL_VERSION=30)

Step 2: download the new crypt_key_input.h from https://github.com/PromyLOPh/pianobar/raw/master/src/libpiano/crypt_key_input.h

Step 3: download the new crypt_key_output.h from https://github.com/PromyLOPh/pianobar/raw/master/src/libpiano/crypt_key_output.h


- fkhan27 - 2011-05-10

I am new to this jailbreak, ssh thing.
I was able to jailbreak my ATV2 install XBMC, nitotv, and install a script for pandora. I was enjoying pandora for a few months until:

I have the failed to authenticate listener problem,

I see the instructions above but how exactly do you do that. If someone could give step by step instructions for those of that who do not know code it would help.
Would it be just easier to erase the original scipt and install the new script, if so I would need to know how to erase the old script.

I primarily use my apple tV for pandora so any help would be appreciated.

thanks


- spbogie - 2011-05-11

Sorry for the delay. Protocol Bump pushed to gitorious, make sure to fetch the new keys.

If I miss an update in the future feel free to shoot me a PM/email and I'll get it up asap.


- mdnola504 - 2011-05-13

I get this same error now as gsgleason above using same version.


- zpanderson - 2011-05-15

I'm just curious about what key press will skip to the next song? I couldn't figure it out. Thanks.


pandora fails again!!!! - srinib4u - 2011-05-16

Angry

I updated my files and followed the instructions in the forum and got my pandora working. This lasted until today and it started failing again!!!! I can log on to my account and the stations are displayed, but cannot play any song. When I go back to the Music add ons acreen, then it says " script. xbmc.pandora failed". Someone help me here!!!!!

Thanks!

srini


Button to skip to next song.... - srinib4u - 2011-05-16

zpanderson Wrote:I'm just curious about what key press will skip to the next song? I couldn't figure it out. Thanks.


Theres no button on the remote, to skip songs....


- eTip - 2011-05-16

srinib4u Wrote:Theres no button on the remote, to skip songs....

He said KEY as in KEYboard, not button. Wink While the answer may ultimately be the same - I am curious about this as well.


- srinib4u - 2011-05-16

eTip Wrote:He said KEY as in KEYboard, not button. Wink While the answer may ultimately be the same - I am curious about this as well.

As for the apple remote, there is no "button" to skip songs. No idea on "key" on a keyboard.....Big Grin


- Rayor - 2011-05-16

First of all, thanks spbogie for this add-on. Having Pandora on the HTPC is amazing. Now to my question:
spbogie Wrote:Song rating and info buttons don't do anything yet, but everything else should work.
So what all needs to be done before these can be implemented? I'm a CS major with some spare time since it's summer, so if it looks like I can help I would love to.


- spbogie - 2011-05-17

RE: Key/Button for next song,
It should work with the Skip button on the remote, and whatever the equivalent key is (ACTION_NEXT_ITEM). At least it used to... though tbh I haven't actually used it in quite a while so it may have broken along the way.

@srinib4u,
Without relevant logs, there's not much anyone can do to help you. See http://wiki.xbmc.org/index.php?title=Log_File

@Rayor,
To get song rating and info buttons working requires implementing more calls to Pandora's rpc. Unfortunately, none of the rpc methods are documented so everything has to be reversed from the flash client. I have these methods partially documented somewhere, but I couldn't tell you where right now. I had planned to re-write a nicer library around the RPC(the current code is a rather ugly hack), and implement them when I did that, but school has kinda gotten in the way Wink. I'd be happy to take any help you want to give. The code is all on gitorious, feel free to clone it and play. You could take a look at the pianobar project to see if he's possibly documented/implemented the ratings functions yet. School is finishing up here soon and I should hopefully have some time to dive back into it then. If you catch me on IRC I may be able to give you a quick crash course on the protocol. I'm almost always idling in #xbmc{-linux,-scripting} but may not actually be at my PC, so shoot me with a /msg and I'll get back to you when I see it.


- coynea84 - 2011-05-18

Before you all beat me up, this is a long thread. I have searched and tried the relevant fixes for my problem, however, please forgive me if I overlooked something.

- I have checked out the latest master from http://gitorious.org/xbmc-pandora

- I put it in ~/.xbmc/addons/ and renamed the folder script.xbmc.pandora

- I downloaded the raw versions of crypt_key_output.h and crypt_key_input.h and put them in the script.xbmc.pandora folder.

- I checked to ensure libpandora/pandora.py has PROTOCOL_VERSION=30


XBMC is telling me it cannot log me in. I have tried and verified my normal account information, then I even created another one. Both logins work from my phone and through the web browser on my laptop, but I get login failures from the XBMC plugin.

Here is a copy of my ~/.xbmc/temp/xbmc.log file:


- spbogie - 2011-05-18

@coynea84
Quote:com.savagebeast.radio.api.protocol.xmlrpc.RadioXmlRpcException: 192.168.160.58|1305683365203|OUT_OF_SYNC|You have no chance to survive make your time.
It appears pandora isn't liking the time it's being sent for sync. This is unfortunately one area where my current implementation of the library is a rather dirty hack. My best suggestion right now is to check your system clock and ensure it is accurate, as this could be a potential source of the syncing issue.