Kodi Community Forum
[RELEASE] Pandora Radio (Script) Music Addon (Updated 2011-11-13 : V1.2.8) - Printable Version

+- Kodi Community Forum (http://forum.kodi.tv)
+-- Forum: Help and Support (/forumdisplay.php?fid=33)
+--- Forum: Add-ons Help and Support (/forumdisplay.php?fid=27)
+---- Forum: Music Add-ons (/forumdisplay.php?fid=148)
+---- Thread: [RELEASE] Pandora Radio (Script) Music Addon (Updated 2011-11-13 : V1.2.8) (/showthread.php?tid=70471)



- Natolx - 2011-03-22 17:38

Natolx Wrote:Login seems to be failing for me. I'm on Windows 7 with Build 29. I'm new to the XBMC scene FYI

"Failed to authenticate listener. Check username/password and try again.
Show Settings?" I of course triple checked my username and password(no special characters or anything)

Error Log(I think i did this right)http://pastebin.com/ftxY1G5x

Update: apparently my pianobar decrypt files were corrupted somehow... just re-extracted them into the folder and all is well.


- tocheeba - 2011-03-29 08:36

Ok so I must be doing something wrong. Just tried this:

wget http://gitorious.org/xbmc-pandora/xbmc-pandora/archive-tarball/master
tar xvf master
mv xbmc-pandora-xbmc-pandora/ /private/var/mobile/Library/Preferences/XBMC/addons/

It's not working. Any ideas? Why cant I just download it as a ZIP and install add-on as ZIP just like every other addon? Or am I missing something here?


- tocheeba - 2011-04-03 08:58

I've successfully gotten Pandora to work. However, I'm having the same issue as another member - the artist/song info while playing is just a string of random numbers and letters. It sucks since I can't see the song info.

Any way to fix this?


- Agin - 2011-04-05 00:48

Thanks for this script!


borked on new git. - gsgleason - 2011-04-10 17:03

I just tried a fresh compile from git (been doing so for a while, now), and now pandora script fails. I don't keep old git versions so I went all the way back to the release on the team xbmc stable ppa and it works fine. I tried one other add-on (icefilms) on the new compile and it worked. I have no idea whose issue it is, but I just wanted to let it be known. If wanting any detailed data from me, please let me know.

Thanks for making awesome things to enhance others' lives. You and all contributors are truly swell.

[edit] Well, i just pulled and re-compiled and all is well. Nevermind. Something must have been broken in the Git version at the time.


- gsgleason - 2011-04-12 19:18

Looks like artist and album names aren't working any more with current GIT version of xbmc.


- imthebrain - 2011-04-15 09:11

tocheeba Wrote:Ok so I must be doing something wrong. Just tried this:

wget http://gitorious.org/xbmc-pandora/xbmc-pandora/archive-tarball/master
tar xvf master
mv xbmc-pandora-xbmc-pandora/ /private/var/mobile/Library/Preferences/XBMC/addons/

It's not working. Any ideas? Why cant I just download it as a ZIP and install add-on as ZIP just like every other addon? Or am I missing something here?

How did you install the pandora plug inConfused download the file in the link


- zivagolee - 2011-04-18 07:09

spbogie Wrote:@Uuaww
ls -lR is a command which would give a recursive directory listing, but regardless, I don't think that's really the issue you're having. Message me on IRC and I'll try to debug the issue for you. (You should be able to find me idling in #xbmc and/or #xbmc-scripting most of the time.)

Edit: Note to self, XML File missing error was result of NTSC folder having improper case. Correct in git repo so unsure of cause.

Hmm.. I seem to be getting this error with the latest git:

22:03:44 T:2701093744 M:2552238080 INFO: -->Python script returned the follow
ing error<--
22:03:44 T:2701093744 M:2552238080 ERROR: Error Type: <type 'exceptions.TypeEr
ror'>
22:03:44 T:2701093744 M:2552238080 ERROR: Error Contents: XML File for Window
is missing
22:03:44 T:2701093744 M:2552238080 ERROR: Traceback (most recent call last):
File "/home/user/.xbmc/addons/script.xbmc.pandora/default.py", line 146, in <module>
panda = Panda()
File "/home/user/.xbmc/addons/script.xbmc.pandora/default.py", line 57, in __init__
"Default", "NTSC", panda = self )
TypeError: XML File for Window is missing

The file and case seems to be correct?

~/.xbmc/addons/script.xbmc.pandora/resources/skins/Default/NTSC$ ls
script-pandora.xml

Anybody have some clues on what needs to be corrected?


- Vandetta - 2011-04-20 02:23

Finally got this thing running. I got hung up on that raw key step.

Anyway one thing that has been bugging me- is there no way to get this script to run in the background like grooveshark? I usually will set pictures to run on a slideshow with pandora in the background on boxee.


- zekeb - 2011-04-22 19:06

I am able to login and see my stations, but when I try to play one, I get the 'working' grind, then nothing.

I have tried to change the stream type from aacplus to mp3. Other mp3 files play fine on my system.

ASRock ION330BD
Mandriva 2010.2
XBMC 10.1


- Vandetta - 2011-04-26 19:11

Anyone know how to modify this script so it can run in the background like Grooveshark or like any other music which would play in the background as your navigate xbmc.


- tocheeba - 2011-04-27 09:14

I'm having problems logging in. I transferred over the keys just fine I believe, but it's saying my user/pass is incorrect...which it's not.

http://pastebin.com/dLAhaT5a

Any ideas? Also, I had it working on a different machine a month ago, and it seems that the artist/song info is all garbage.


- durzo - 2011-04-27 18:24

UPDATE: pianobar has been updated, hooray.

Pandora changed the protocol version & encryption keys on us yesterday.

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

Pandora plugin now works.


protocol change - fritzboyle - 2011-04-27 19:11

Quote:UPDATE: pianobar has been updated, hooray.

Pandora changed the protocol version & encryption keys on us yesterday.

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/pianoba...pt_key_input.h

Step 3: download the new crypt_key_output.h from https://github.com/PromyLOPh/pianoba...t_key_output.h

Pandora plugin now works.

can you be a bit more specific on how to do this? Does this require ssh into the atv2?
will I then have to start over (enter my credentials again)?
thanks and sorry for not understanding exactly how to do the downloads and ensure they are in the right place so the script can be updated.


- durzo - 2011-04-27 19:47

Yes you will need to ssh into your xbmc machine or use ftp to transfer the files

You will not have to re-enter anything (account details etc.)

The path depends on where xbmc is installed, but for me (on ubuntu, following the xbmc guide) it was /home/xbmc/.xbmc/addons/script.xbmc.pandora and from there all paths are relative. the crypt_key files are in the root of that directory and should already exist (you overwrite them).

The original author needs to update the code in his repository for it to be a seamless update from within xbmc - I cannot control that so i posted the instructions above.