2012-05-03, 06:47
I am pretty new to the scripting for XBMC but have had some experience with AutoCAD lisp and scripts. I took a look at the debug report and noticed that the file at github for pianobar is no longer present (crypt_key_input.h and output.h) and replaced the url lookup to crypt.h for both key input and outputs to recieve the correct keys, or from my understanding of this script. Now I have a newer issue with a range problem from the crypt.h file within the pandora pluggin and am not sure how to correct this. I have pasted the debug report below.
23:36:18 T:1312 NOTICE: PANDORA: Initializing v1.2.10
23:36:18 T:1312 NOTICE: PANDORA: sys.platform = win32
23:36:18 T:1312 NOTICE: PANDORA: Loading key from file "C:\Users\Entertain\AppData\Roaming\XBMC\userdata\addon_data\script.xbmc.pandora\key_in"
23:36:18 T:1312 NOTICE: PANDORA: Downloading key from url "https://raw.github.com/PromyLOPh/pianobar/master/src/libpiano/crypt.h"
23:36:20 T:1312 NOTICE: PANDORA: Loading key from file "C:\Users\Entertain\AppData\Roaming\XBMC\userdata\addon_data\script.xbmc.pandora\key_out"
23:36:20 T:1312 NOTICE: PANDORA: Downloading key from url "https://raw.github.com/PromyLOPh/pianobar/master/src/libpiano/crypt.h"
23:36:20 T:1312 NOTICE: PANDORA: Saving keys
23:36:20 T:1312 NOTICE: PANDORA: dataDir = "C:\Users\Entertain\AppData\Roaming\XBMC\userdata\addon_data\script.xbmc.pandora\"
23:36:20 T:1312 NOTICE: PANDORA: dataDir.isDir? True
23:36:20 T:1312 ERROR: Error Type: <type 'exceptions.IndexError'>
23:36:20 T:1312 ERROR: Error Contents: list index out of range
23:36:20 T:1312 ERROR: Traceback (most recent call last):
File "C:\Users\Entertain\AppData\Roaming\XBMC\addons\script.xbmc.pandora\default.py", line 248, in <module>
panda = Panda()
File "C:\Users\Entertain\AppData\Roaming\XBMC\addons\script.xbmc.pandora\default.py", line 82, in __init__
while not self.auth():
File "C:\Users\Entertain\AppData\Roaming\XBMC\addons\script.xbmc.pandora\default.py", line 112, in auth
ret = self.pandora.authListener( user, pwd )
File "C:\Users\Entertain\AppData\Roaming\XBMC\addons\script.xbmc.pandora\libpandora\pandora.py", line 80, in authListener
enc = crypt.encryptString( req, self.keys['out'] )
File "C:\Users\Entertain\AppData\Roaming\XBMC\addons\script.xbmc.pandora\libpandora\crypt.py", line 97, in encryptString
r ^= key["p"][ key["n"] ]
IndexError: list index out of range
23:36:37 T:6492 WARNING: Failed to find previously selected audio sink
23:36:39 T:6492 NOTICE: Log level changed to 2
23:36:39 T:6492 NOTICE: Enabled debug logging due to GUI setting. Level 2.
23:36:18 T:1312 NOTICE: PANDORA: Initializing v1.2.10
23:36:18 T:1312 NOTICE: PANDORA: sys.platform = win32
23:36:18 T:1312 NOTICE: PANDORA: Loading key from file "C:\Users\Entertain\AppData\Roaming\XBMC\userdata\addon_data\script.xbmc.pandora\key_in"
23:36:18 T:1312 NOTICE: PANDORA: Downloading key from url "https://raw.github.com/PromyLOPh/pianobar/master/src/libpiano/crypt.h"
23:36:20 T:1312 NOTICE: PANDORA: Loading key from file "C:\Users\Entertain\AppData\Roaming\XBMC\userdata\addon_data\script.xbmc.pandora\key_out"
23:36:20 T:1312 NOTICE: PANDORA: Downloading key from url "https://raw.github.com/PromyLOPh/pianobar/master/src/libpiano/crypt.h"
23:36:20 T:1312 NOTICE: PANDORA: Saving keys
23:36:20 T:1312 NOTICE: PANDORA: dataDir = "C:\Users\Entertain\AppData\Roaming\XBMC\userdata\addon_data\script.xbmc.pandora\"
23:36:20 T:1312 NOTICE: PANDORA: dataDir.isDir? True
23:36:20 T:1312 ERROR: Error Type: <type 'exceptions.IndexError'>
23:36:20 T:1312 ERROR: Error Contents: list index out of range
23:36:20 T:1312 ERROR: Traceback (most recent call last):
File "C:\Users\Entertain\AppData\Roaming\XBMC\addons\script.xbmc.pandora\default.py", line 248, in <module>
panda = Panda()
File "C:\Users\Entertain\AppData\Roaming\XBMC\addons\script.xbmc.pandora\default.py", line 82, in __init__
while not self.auth():
File "C:\Users\Entertain\AppData\Roaming\XBMC\addons\script.xbmc.pandora\default.py", line 112, in auth
ret = self.pandora.authListener( user, pwd )
File "C:\Users\Entertain\AppData\Roaming\XBMC\addons\script.xbmc.pandora\libpandora\pandora.py", line 80, in authListener
enc = crypt.encryptString( req, self.keys['out'] )
File "C:\Users\Entertain\AppData\Roaming\XBMC\addons\script.xbmc.pandora\libpandora\crypt.py", line 97, in encryptString
r ^= key["p"][ key["n"] ]
IndexError: list index out of range
23:36:37 T:6492 WARNING: Failed to find previously selected audio sink
23:36:39 T:6492 NOTICE: Log level changed to 2
23:36:39 T:6492 NOTICE: Enabled debug logging due to GUI setting. Level 2.