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.
As previously mentioned, the error in log is:


06:43:24 T:139730199734032 M:948727808 NOTICE: Error:
06:43:24 T:139730199734032 M:948727808 NOTICE: org.apache.xmlrpc.XmlRpcException: Content is not allowed in prolog.
06:43:24 T:139730199734032 M:948727808 NOTICE: Code:
06:43:24 T:139730199734032 M:948727808 NOTICE: 0
06:43:24 T:139730199734032 M:948727808 INFO: Loading skin file: DialogYesNo.xml
Looks like we need to fetch the new crypt keys (input, output). That then causes some parsing failure in pianoparser.py:


09:14:08 T:139730314204944 M:974127104 ERROR: Error Type: exceptions.ValueError
09:14:08 T:139730314204944 M:974127104 ERROR: Error Contents: invalid literal for long(): }
09:14:08 T:139730314204944 M:974151680 ERROR: Traceback (most recent call last):
File "/home/eric/.xbmc/addons/script.xbmc.pandora/default.py", line 9, in ?
from libpandora.pandora import Pandora
File "/home/eric/.xbmc/addons/script.xbmc.pandora/libpandora/pandora.py", line 5, in ?
import crypt
File "/home/eric/.xbmc/addons/script.xbmc.pandora/libpandora/crypt.py", line 2, in ?
import keys
File "/home/eric/.xbmc/addons/script.xbmc.pandora/libpandora/keys.py", line 14, in ?
key_out = KeyFile( "crypt_key_output.h" )
File "/home/eric/.xbmc/addons/script.xbmc.pandora/libpandora/keys.py", line 6, in __init__
( n, p, s ) = pianoparser.parse_file( fname )
File "/home/eric/.xbmc/addons/script.xbmc.pandora/libpandora/pianoparser.py", line 32, in parse_file
d = [ long( x, 0 ) for x in d ]
ValueError: invalid literal for long(): }
09:14:08 T:139730314204944 M:974151680 INFO: -->End of Python script error report<--

I guess a few more changes are required.
Okay.. I got it working.

3 things needed:

1) Upgrade the version to 28 as previously mentioned.
2) Copy in the newer crypt keys
3) Modify pianoparser.py and change line 28 from: b = a.split( "}, {" ) to b = a.split( "},{" ) Notice the removal of a space (due to removal of space in the new crypt keys).

Those three changes allows it to work again.

Enjoy.
Big Grin

Those changes worked for XBOX. THANKS!
tslayer Wrote:Okay.. I got it working.

3 things needed:

1) Upgrade the version to 28 as previously mentioned.
2) Copy in the newer crypt keys
3) Modify pianoparser.py and change line 28 from: b = a.split( "}, {" ) to b = a.split( "},{" ) Notice the removal of a space (due to removal of space in the new crypt keys).

Those three changes allows it to work again.

Enjoy.

Thanks for this. Your instructions got it working for me as well.
@tslayer
Thank you for taking the time to track that down Smile. I've pushed the parser change to gitorious.

@all
Don't have much time to spend on this currently, so if someone wants to step up and work on/maintain it feel free. If you make any changes and want me to merge them back into my main repo just send a merge request. I may grant commit access as well if changes look good. Wink
tslayer Wrote:Okay.. I got it working.

3 things needed:

1) Upgrade the version to 28 as previously mentioned.
2) Copy in the newer crypt keys
3) Modify pianoparser.py and change line 28 from: b = a.split( "}, {" ) to b = a.split( "},{" ) Notice the removal of a space (due to removal of space in the new crypt keys).

Those three changes allows it to work again.

Enjoy.


Huge thanks!!
I updated to the newest repo file and crypt keys. That gets me into the script, I can see the my stations, but I can't get anything to actually play. the sound effects for selection, play, skip, minimize etc. play but nothing happens.

Any ideas?
Works fine here. What does the xbmc.log tell you?
Code:
14:55:02 M: 57339904  NOTICE: -----------------------------------------------------------------------
14:55:02 M: 57319424  NOTICE: Starting XBMC4Xbox.  Built on Sep 16 2010 (SVN:30635, compiler 1310)
14:55:02 M: 57319424  NOTICE: special://xbmc/ is mapped to: Q:\
14:55:02 M: 57319424  NOTICE: special://masterprofile/ is mapped to: q:\UserData
14:55:02 M: 57319424  NOTICE: special://home/ is mapped to: Q:\
14:55:02 M: 57319424  NOTICE: special://temp/ is mapped to: Z:\
14:55:02 M: 57319424  NOTICE: The executable running is: E:\dash\default.xbe
14:55:02 M: 57319424  NOTICE: Log File is located: Q:\xbmc.log
14:55:02 M: 57319424  NOTICE: -----------------------------------------------------------------------

##################################
# lots of mounting and such..... #
##################################

14:55:10 M: 27086848   ERROR: PICTURE: Error loading image special://skin/backgrounds/scripts.jpg
14:55:12 M: 21413888  NOTICE: -->Python Initialized<--
14:55:13 M: 20574208   ERROR: Error Type: exceptions.ImportError
14:55:13 M: 24948736   ERROR: Error Contents: No module named xbmcaddon
14:55:13 M: 24399872   ERROR: Traceback (most recent call last):
                                              File "Q:\scripts\script.xbmc.pandora\default.py", line 6, in ?
                                                import xbmcaddon
                                            ImportError: No module named xbmcaddon

So how do I go about fixing this one? Or am I just screwed?

Thanks!
- Greg C.
gcurtis79 Wrote:
Code:
14:55:02 M: 57339904  NOTICE: -----------------------------------------------------------------------
14:55:02 M: 57319424  NOTICE: Starting XBMC4Xbox.  Built on Sep 16 2010 (SVN:30635, compiler 1310)
14:55:02 M: 57319424  NOTICE: special://xbmc/ is mapped to: Q:\
14:55:02 M: 57319424  NOTICE: special://masterprofile/ is mapped to: q:\UserData
14:55:02 M: 57319424  NOTICE: special://home/ is mapped to: Q:\
14:55:02 M: 57319424  NOTICE: special://temp/ is mapped to: Z:\
14:55:02 M: 57319424  NOTICE: The executable running is: E:\dash\default.xbe
14:55:02 M: 57319424  NOTICE: Log File is located: Q:\xbmc.log
14:55:02 M: 57319424  NOTICE: -----------------------------------------------------------------------

##################################
# lots of mounting and such..... #
##################################

14:55:10 M: 27086848   ERROR: PICTURE: Error loading image special://skin/backgrounds/scripts.jpg
14:55:12 M: 21413888  NOTICE: -->Python Initialized<--
14:55:13 M: 20574208   ERROR: Error Type: exceptions.ImportError
14:55:13 M: 24948736   ERROR: Error Contents: No module named xbmcaddon
14:55:13 M: 24399872   ERROR: Traceback (most recent call last):
                                              File "Q:\scripts\script.xbmc.pandora\default.py", line 6, in ?
                                                import xbmcaddon
                                            ImportError: No module named xbmcaddon

So how do I go about fixing this one? Or am I just screwed?

Thanks!
- Greg C.

I am having the same problem, is there any solution? I saw a similar problem on page 16 with no result.
You are putting it in scripts. It is an addon.

Though, not sure whether/how this works on xbox. We don't support Xbox here. Please goto the proper forums.
No, I also put it in Programs, Music Plugins, and even for a shot in the dark; Video Plugins. I am running Ubuntu 10 (not an Xbox) and I have other Plugins working, just not Pandora
Ok, sorry about that, I was just reading the end of his log. I am getting this:
Code:
13:05:50 T:2839473008 M:1641517056  NOTICE:   File "/home/xbmc/.xbmc/plugins/music/SCRIPT.XBMC.PANDORA/default.py", line 6, in ?
13:05:50 T:2839473008 M:1641517056  NOTICE: import xbmcaddon
13:05:50 T:2839473008 M:1641517056  NOTICE: ImportError
13:05:50 T:2839473008 M:1641517056  NOTICE: :
13:05:50 T:2839473008 M:1641517056  NOTICE: No module named xbmcaddon
13:05:50 T:2839473008 M:1641517056   ERROR: Scriptresult: Error
13:05:50 T:3079358352 M:1641701376   ERROR: GetDirectory - Error getting plugin://music/SCRIPT.XBMC.PANDORA/
13:05:50 T:3079358352 M:1641701376   ERROR: CGUIMediaWindow::GetDirectory(plugin://music/SCRIPT.XBMC.PANDORA/) failed
I keep getting the "No module named xbmcaddon"

It is there, I don't know why it wont work....
It is not a plugin!! It is an addon!

Upgrade XBMC to Dharma and install as an addon.