[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) Pages:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
|
- grypho - 2011-07-09 ATV2 not working yet with that change... - Quicksilver2002 - 2011-07-09 Updated to 31 and changed the Default.py back to default, and it now works for me also! Thanks for help! - grypho - 2011-07-10 Donwloaded again the one from morloc and changed for 31 but it doesn't works yet on ATV2. anyone on atv2 has succeeded? - mrfatboy - 2011-07-10 Can anybody comment how stable this Pandora script is? After making the "31" change it worked fine. I ran it for about 4 hours than it just stops. It gets a "script error". I noticed this 2 weeks ago also. I thought it was just a fluke. Is this typical for long usages? Or is it something else? Maybe I'm getting a data error. My internet can be slow. - gsgleason - 2011-07-11 jsgrif Wrote:Tried your fixes but still nothing. Here's my error log... Me too. Using current git 20110710-a2f411f How do I do this - csmnwb2 - 2011-07-11 uschxc Wrote:I had to update the PROTOCOL_VERSION varialbe in libpandora/pandora.py to 31 for this to work. I just started using the plugin today, july 9th, so pandora might have recently updated as I don't see any updates here pertaining to PROTOCOL_VERSION 31, but that fixed the login failure issue for me. How do i open libpandora/pandora.py and change PROTOCOL_VERSION to 31 via ssh? I am very new to this.. Thank you, - csmnwb2 - 2011-07-11 uschxc Wrote:I had to update the PROTOCOL_VERSION varialbe in libpandora/pandora.py to 31 for this to work. I just started using the plugin today, july 9th, so pandora might have recently updated as I don't see any updates here pertaining to PROTOCOL_VERSION 31, but that fixed the login failure issue for me. I tried to find the directory the file is in then enter the file name but it said permission denied. Not sure if I am doing this correctly. here is the terminal text Apple-TV:~ root# cd /private/var/stash/Applications/XBMC.frappliance/XBMCData/XBMCHome/addons/script.xbmc.pandora Apple-TV:/private/var/stash/Applications/XBMC.frappliance/XBMCData/XBMCHome/addons/script.xbmc.pandora root# libpandora/pandora.py -sh: libpandora/pandora.py: Permission denied please help. thanks - csmnwb2 - 2011-07-11 Think I figured out how to gain access.. here is were I am at so far Apple-TV:/private/var/stash/Applications/XBMC.frappliance/XBMCData/XBMCHome/addons/script.xbmc.pandora root# libpandora/pandora.py libpandora/pandora.py: line 1: import: command not found libpandora/pandora.py: line 2: from: command not found libpandora/pandora.py: line 3: import: command not found libpandora/pandora.py: line 5: import: command not found libpandora/pandora.py: line 8: BASE_URL: command not found libpandora/pandora.py: line 9: BASE_URL_RID: command not found libpandora/pandora.py: line 10: BASE_URL_LID: command not found libpandora/pandora.py: line 12: syntax error near unexpected token `(' libpandora/pandora.py: line 12: `def _inttime():' - dallasnights - 2011-07-11 not working on ATV XBMC 10.09 anyone get a fix yet, thanks all here is my log 01:22:19 T:169930752 M: 81825792 DEBUG: ExecuteXBMCAction : Translating RunScript("script.xbmc.pandora") 01:22:19 T:169930752 M: 81825792 DEBUG: ExecuteXBMCAction : To RunScript("script.xbmc.pandora") 01:22:19 T:169930752 M: 81825792 INFO: initializing python engine. 01:22:19 T:169930752 M: 81825792 DEBUG: PYTHONHOME -> /Applications/XBMC.frappliance/Frameworks/ 01:22:19 T:169930752 M: 81825792 DEBUG: PYTHONPATH -> /Applications/XBMC.frappliance/Frameworks/ 01:22:20 T:169930752 M: 81797120 DEBUG: new python thread created. id=3 01:22:20 T:169930752 M: 81797120 DEBUG: Error: Requested setting (pvrmanager.enabled) was not found. It must be case-sensitive 01:22:20 T:197058560 M: 81793024 DEBUG: Thread XBPyThread start, auto delete: 0 01:22:20 T:197058560 M: 81793024 DEBUG: Python thread: start processing 01:22:20 T:169930752 M: 81772544 DEBUG: Error: Requested setting (pvrmanager.enabled) was not found. It must be case-sensitive 01:22:20 T:169930752 M: 81772544 DEBUG: ------ Window Deinit (DialogFavourites.xml) ------ 01:22:20 T:169930752 M: 83238912 DEBUG: Error: Requested setting (pvrmanager.enabled) was not found. It must be case-sensitive 01:22:20 T:197058560 M: 83173376 DEBUG: Previous line repeats 6 times. 01:22:20 T:197058560 M: 83173376 NOTICE: -->Python Interpreter Initialized<-- 01:22:20 T:197058560 M: 83173376 DEBUG: Process - The source file to load is /var/mobile/Library/Preferences/XBMC/addons/script.xbmc.pandora/default.py 01:22:20 T:197058560 M: 83173376 DEBUG: Process - Setting the Python path to /var/mobile/Library/Preferences/XBMC/addons/script.xbmc.pandora:/var/mobile/Library/Preferences/XBMC/addons/script.module.beautifulsoup/lib:/var/mobile/Library/Preferences/XBMC/addons/script.module.mechanize/lib:/var/mobile/Library/Preferences/XBMC/addons/script.module.cryptopy/lib:/var/mobile/Library/Preferences/XBMC/addons/script.module.simplejson/lib:/Applications/XBMC.frappliance/XBMCData/XBMCHome/addons/script.module.pil/lib:/var/mobile/Library/Preferences/XBMC/addons/script.web.viewer/lib:/var/mobile/Library/Preferences/XBMC/addons/script.module.elementtree/lib:/Applications/XBMC.frappliance/XBMCData/XBMCHome/addons/script.module.pysqlite/lib:/Applications/XBMC.frappliance/Frameworks:/Applications/XBMC.frappliance/Frameworks/lib/python26.zip:/Applications/XBMC.frappliance/Frameworks/lib/python2.6:/Applications/XBMC.frappliance/Frameworks/lib/python2.6/plat-darwin:/Applications/XBMC.frappliance/Frameworks/lib/python2.6/plat-mac:/Applications/XBMC.frappliance/Frameworks/lib/python2.6/plat-mac/lib-scriptpackages:/Applications/XBMC.frappliance/Frameworks/lib/python2.6/lib-tk:/Applications/XBMC.frappliance/Frameworks/lib/python2.6/lib-old:/Applications/XBMC.frappliance/Frameworks/lib/python2.6/lib-dynload:/Applications/XBMC.frappliance/Frameworks/lib/python2.6/site-packages: 01:22:20 T:197058560 M: 83173376 DEBUG: Process - Entering source directory /var/mobile/Library/Preferences/XBMC/addons/script.xbmc.pandora 01:22:20 T:197058560 M: 83173376 DEBUG: Instantiating addon using automatically obtained id of "script.xbmc.pandora" dependent on version 1.0 of the xbmc.python api 01:22:20 T:169930752 M: 83173376 DEBUG: Error: Requested setting (pvrmanager.enabled) was not found. It must be case-sensitive 01:22:20 T:197058560 M: 83173376 DEBUG: Previous line repeats 1 times. 01:22:20 T:197058560 M: 83173376 INFO: Loading skin file: DialogProgress.xml 01:22:20 T:169930752 M: 83173376 DEBUG: Error: Requested setting (pvrmanager.enabled) was not found. It must be case-sensitive 01:22:20 T:197058560 M: 83169280 DEBUG: DialogProgress::StartModal called 01:22:20 T:197058560 M: 83169280 DEBUG: ------ Window Init (DialogProgress.xml) ------ 01:22:20 T:169930752 M: 83169280 DEBUG: Error: Requested setting (pvrmanager.enabled) was not found. It must be case-sensitive 01:22:22 T:197058560 M: 81682432 DEBUG: Previous line repeats 46 times. 01:22:22 T:197058560 M: 81682432 ERROR: /var/mobile/Library/Preferences/XBMC/addons/script.xbmc.pandora/libpandora/pianoparser.py:6: DeprecationWarning: os.getcwd() currently lies to you so please use addon.getAddonInfo('path') to find the script's root directory and DO NOT make relative path accesses based on the results of 'os.getcwd.' f = open( os.path.join( os.getcwd(), fname ), 'r' ) 01:22:22 T:169930752 M: 81682432 DEBUG: Error: Requested setting (pvrmanager.enabled) was not found. It must be case-sensitive 01:22:23 T:197058560 M: 81760256 DEBUG: Previous line repeats 15 times. 01:22:23 T:197058560 M: 81760256 DEBUG: DialogProgress::StartModal called (already running)! 01:22:23 T:197058560 M: 81760256 DEBUG: ------ Window Init (DialogProgress.xml) ------ 01:22:23 T:169930752 M: 81760256 DEBUG: Error: Requested setting (pvrmanager.enabled) was not found. It must be case-sensitive 01:22:24 T:197058560 M: 81756160 DEBUG: Previous line repeats 13 times. 01:22:24 T:197058560 M: 81756160 ERROR: /var/mobile/Library/Preferences/XBMC/addons/script.xbmc.pandora/pandaplayer.py:7: DeprecationWarning: object.__init__() takes no parameters xbmc.Player.__init__( self, xbmc.PLAYER_CORE_MPLAYER ) 01:22:24 T:197058560 M: 81747968 INFO: Loading skin includes from /var/mobile/Library/Preferences/XBMC/addons/script.xbmc.pandora/resources/skins/Android/NTSC/includes.xml 01:22:24 T:197058560 M: 81747968 INFO: Error loading includes.xml file (/var/mobile/Library/Preferences/XBMC/addons/script.xbmc.pandora/resources/skins/Android/NTSC/includes.xml): Failed to open file (row=0, col=0) 01:22:24 T:197058560 M: 81747968 INFO: -->Python script returned the following error<-- 01:22:24 T:197058560 M: 81747968 ERROR: Error Type: <type 'exceptions.TypeError'> 01:22:24 T:197058560 M: 81747968 ERROR: Error Contents: XML File for Window is missing 01:22:24 T:197058560 M: 81739776 ERROR: Traceback (most recent call last): File "/var/mobile/Library/Preferences/XBMC/addons/script.xbmc.pandora/default.py", line 214, in <module> panda = Panda() File "/var/mobile/Library/Preferences/XBMC/addons/script.xbmc.pandora/default.py", line 68, in __init__ skin, "NTSC", panda = self ) TypeError: XML File for Window is missing 01:22:24 T:197058560 M: 81739776 INFO: -->End of Python script error report<-- 01:22:24 T:169930752 M: 81739776 DEBUG: Error: Requested setting (pvrmanager.enabled) was not found. It must be case-sensitive 01:22:24 T:169930752 M: 81739776 DEBUG: ------ Window Init (DialogKaiToast.xml) ------ 01:22:24 T:197058560 M: 81522688 INFO: Python script stopped 01:22:24 T:197058560 M: 81522688 DEBUG: Thread Python Thread 197058560 terminating 01:22:24 T:169930752 M: 81518592 DEBUG: Error: Requested setting (pvrmanager.enabled) was not found. It must be case-sensitive 01:22:24 T:169930752 M: 77651968 DEBUG: waiting for python thread 3 to stop 01:22:24 T:169930752 M: 77664256 DEBUG: python thread 3 destructed 01:22:24 T:169930752 M: 82587648 DEBUG: Error: Requested setting (pvrmanager.enabled) was not found. It must be case-sensitive 01:22:24 T:169930752 M: 82550784 DEBUG: ------ Window Deinit (DialogProgress.xml) ------ 01:22:24 T:169930752 M: 75587584 DEBUG: Error: Requested setting (pvrmanager.enabled) was not found. It must be case-sensitive 01:22:30 T:169930752 M: 79261696 DEBUG: Previous line repeats 91 times. 01:22:30 T:169930752 M: 79261696 DEBUG: ------ Window Deinit (DialogKaiToast.xml) ------ 01:22:30 T:169930752 M: 79286272 DEBUG: Error: Requested setting (pvrmanager.enabled) was not found. It must be case-sensitive 01:22:34 T:169930752 M: 83365888 DEBUG: Previous line repeats 87 times. 01:22:34 T:169930752 M: 83365888 INFO: Python, unloading python shared library because no scripts are running anymore 01:22:34 T:169930752 M: 83337216 DEBUG: Error: Requested setting (pvrmanager.enabled) was not found. It must be case-sensitive 01:22:43 T:191799296 M: 81072128 DEBUG: Previous line repeats 169 times. 01:22:43 T:191799296 M: 81072128 DEBUG: Thread Jobworker 191799296 terminating (autodelete) 01:22:43 T:169930752 M: 81076224 DEBUG: Error: Requested setting (pvrmanager.enabled) was not found. It must be case-sensitive 01:22:43 T:195411968 M: 81076224 DEBUG: Previous line repeats 3 times. 01:22:43 T:195411968 M: 81076224 DEBUG: Thread Jobworker 195411968 terminating (autodelete) 01:22:43 T:169930752 M: 81080320 DEBUG: Error: Requested setting (pvrmanager.enabled) was not found. It must be case-sensitive Xbmc pandora login failure - tkarns24 - 2011-07-12 Hey I am still running Pandora 1.1.2 on ATV , i know that i have the right version and crypt keys , but i still get the Failure to authenticate message and i also know that my username and password are correct because all my other pieces that have Pandora on them are running well. Can anybody help or advise on what to do next. - spbogie - 2011-07-12 Put quite a bit of time into this tonight (Is it really already 5AM?) Changes in brief:
Now time for me to sleep. Here's hoping for good reports in the morning - dallasnights - 2011-07-12 Thanks for update but still not working on xbmc 10.09 on ATV2 take a look at my debug, hope you can fix 11:26:43 T:164323328 M:108707840 INFO: initializing python engine. 11:26:43 T:164323328 M:108707840 DEBUG: PYTHONHOME -> /Applications/XBMC.frappliance/Frameworks/ 11:26:43 T:164323328 M:108707840 DEBUG: PYTHONPATH -> /Applications/XBMC.frappliance/Frameworks/ 11:26:43 T:164323328 M:108679168 DEBUG: new python thread created. id=3 11:26:43 T:200855552 M:108675072 DEBUG: Thread XBPyThread start, auto delete: 0 11:26:43 T:200855552 M:108675072 DEBUG: Python thread: start processing 11:26:44 T:200855552 M:108556288 NOTICE: -->Python Interpreter Initialized<-- 11:26:44 T:200855552 M:108556288 DEBUG: Process - The source file to load is /var/mobile/Library/Preferences/XBMC/addons/script.xbmc.pandora/default.py 11:26:44 T:200855552 M:108556288 DEBUG: Process - Setting the Python path to /var/mobile/Library/Preferences/XBMC/addons/script.xbmc.pandora:/var/mobile/Library/Preferences/XBMC/addons/script.module.beautifulsoup/lib:/var/mobile/Library/Preferences/XBMC/addons/script.module.mechanize/lib:/var/mobile/Library/Preferences/XBMC/addons/script.module.cryptopy/lib:/var/mobile/Library/Preferences/XBMC/addons/script.module.simplejson/lib:/Applications/XBMC.frappliance/XBMCData/XBMCHome/addons/script.module.pil/lib:/var/mobile/Library/Preferences/XBMC/addons/script.web.viewer/lib:/var/mobile/Library/Preferences/XBMC/addons/script.module.elementtree/lib:/Applications/XBMC.frappliance/XBMCData/XBMCHome/addons/script.module.pysqlite/lib:/Applications/XBMC.frappliance/Frameworks:/Applications/XBMC.frappliance/Frameworks/lib/python26.zip:/Applications/XBMC.frappliance/Frameworks/lib/python2.6:/Applications/XBMC.frappliance/Frameworks/lib/python2.6/plat-darwin:/Applications/XBMC.frappliance/Frameworks/lib/python2.6/plat-mac:/Applications/XBMC.frappliance/Frameworks/lib/python2.6/plat-mac/lib-scriptpackages:/Applications/XBMC.frappliance/Frameworks/lib/python2.6/lib-tk:/Applications/XBMC.frappliance/Frameworks/lib/python2.6/lib-old:/Applications/XBMC.frappliance/Frameworks/lib/python2.6/lib-dynload:/Applications/XBMC.frappliance/Frameworks/lib/python2.6/site-packages: 11:26:44 T:200855552 M:108556288 DEBUG: Process - Entering source directory /var/mobile/Library/Preferences/XBMC/addons/script.xbmc.pandora 11:26:44 T:200855552 M:108556288 DEBUG: Instantiating addon using automatically obtained id of "script.xbmc.pandora" dependent on version 1.0 of the xbmc.python api 11:26:44 T:200855552 M:108548096 INFO: Loading skin file: DialogProgress.xml 11:26:44 T:200855552 M:108548096 DEBUG: DialogProgress::StartModal called 11:26:44 T:200855552 M:108548096 DEBUG: ------ Window Init (DialogProgress.xml) ------ 11:26:49 T:200855552 M:106991616 NOTICE: PANDORA: Loading key from file "special://profile/addon_data/script.xbmc.pandora/key_in" 11:26:49 T:200855552 M:106991616 NOTICE: PANDORA: Downloading key from url "https://raw.github.com/PromyLOPh/pianobar/master/src/libpiano/crypt_key_input.h" 11:26:52 T:200855552 M:106991616 NOTICE: PANDORA: Loading key from file "special://profile/addon_data/script.xbmc.pandora/key_out" 11:26:52 T:200855552 M:106991616 NOTICE: PANDORA: Downloading key from url "https://raw.github.com/PromyLOPh/pianobar/master/src/libpiano/crypt_key_output.h" 11:26:53 T:200855552 M:106991616 NOTICE: PANDORA: Saving keys 11:26:53 T:200855552 M:106991616 INFO: -->Python script returned the following error<-- 11:26:53 T:200855552 M:106991616 ERROR: Error Type: <type 'exceptions.IOError'> 11:26:53 T:200855552 M:106991616 ERROR: Error Contents: (2, 'No such file or directory', 'special://profile/addon_data/script.xbmc.pandora/key_in') 11:26:53 T:200855552 M:106987520 ERROR: Traceback (most recent call last): File "/var/mobile/Library/Preferences/XBMC/addons/script.xbmc.pandora/default.py", line 213, in <module> panda = Panda() File "/var/mobile/Library/Preferences/XBMC/addons/script.xbmc.pandora/default.py", line 43, in __init__ self.pandora = Pandora( dataDir, fmt ) File "/var/mobile/Library/Preferences/XBMC/addons/script.xbmc.pandora/libpandora/pandora.py", line 27, in __init__ self.keys.loadKeys() File "/var/mobile/Library/Preferences/XBMC/addons/script.xbmc.pandora/libpandora/keys.py", line 60, in loadKeys self.saveKeys() File "/var/mobile/Library/Preferences/XBMC/addons/script.xbmc.pandora/libpandora/keys.py", line 67, in saveKeys f = open( os.path.join( self._dataDir, "key_in" ), "w" ) IOError: (2, 'No such file or directory', 'special://profile/addon_data/script.xbmc.pandora/key_in') 11:26:53 T:200855552 M:106987520 INFO: -->End of Python script error report<-- 11:26:53 T:164323328 M:106987520 DEBUG: ------ Window Init (DialogKaiToast.xml) ------ 11:26:53 T:200855552 M:106987520 INFO: Python script stopped 11:26:53 T:200855552 M:106987520 DEBUG: Thread Python Thread 200855552 terminating 11:26:53 T:164323328 M:106954752 DEBUG: waiting for python thread 3 to stop 11:26:53 T:164323328 M:106962944 DEBUG: python thread 3 destructed 11:26:54 T:164323328 M:106962944 DEBUG: ------ Window Deinit (DialogProgress.xml) ------ 11:26:59 T:164323328 M:108519424 DEBUG: ------ Window Deinit (DialogKaiToast.xml) ------ 11:27:03 T:164323328 M:108544000 INFO: Python, unloading python shared library because no scripts are running anymore - Fni0x - 2011-07-12 Hi, I just installed version 1.2.0 of your script. However, I get an error when I try to run it. I'm on Windows 7, x64 with Dharma 10.1 and I've configured a proxy in the add-on settings. I'm getting the following error: 13:29:51 T:2628 M:2143604736 NOTICE: PANDORA: Forcing key ReDownload 13:29:51 T:2628 M:2143604736 NOTICE: PANDORA: Loading key from file "special://profile/addon_data/script.xbmc.pandora\key_in" 13:29:51 T:2628 M:2143604736 NOTICE: PANDORA: Downloading key from url "https://raw.github.com/PromyLOPh/pianobar/master/src/libpiano/crypt_key_input.h" 13:29:54 T:2140 M:2145075200 WARNING: XFILE::CMusicDatabaseDirectory::GetLabel - Unknown nodetype requested 0 13:29:55 T:4116 M:2162040832 NOTICE: -->Python Interpreter Initialized<-- 13:29:55 T:4116 M:2161168384 NOTICE: PANDORA: Loading key from file "special://profile/addon_data/script.xbmc.pandora/key_in" 13:29:55 T:4116 M:2161168384 NOTICE: PANDORA: Downloading key from url "https://raw.github.com/PromyLOPh/pianobar/master/src/libpiano/crypt_key_input.h" 13:29:55 T:4116 M:2162114560 ERROR: Error Type: exceptions.KeyError 13:29:55 T:4116 M:2162110464 ERROR: Error Contents: out 13:29:55 T:4116 M:2162098176 ERROR: Traceback (most recent call last): File "C:\Users\B0X\AppData\Roaming\XBMC\addons\xbmc-pandora-xbmc-pandora\default.py", line 213, in ? panda = Panda() File "C:\Users\B0X\AppData\Roaming\XBMC\addons\xbmc-pandora-xbmc-pandora\default.py", line 55, in __init__ self.pandora.sync() File "C:\Users\B0X\AppData\Roaming\XBMC\addons\xbmc-pandora-xbmc-pandora\libpandora\pandora.py", line 46, in sync enc = crypt.encryptString( req, self.keys['out'] ) File "C:\Users\B0X\AppData\Roaming\XBMC\addons\xbmc-pandora-xbmc-pandora\libpandora\keys.py", line 29, in __getitem__ return self._keys[key] KeyError: out Any clue to what causes this? - spbogie - 2011-07-12 dallasnights, Looks like the data directory doesn't exist. This might be caused by not opening settings before running the addon. I've pushed changes to automatically open the settings dialog on first run. Hopefully this fixes the issue, otherwise I'm going to need to spend some more time figuring out the quirks of xbmc on iOS devices (difficult when I don't have one). Fni0x, It seems to be having some issue downloading the keys. I've added additional debug output to the key fetching process. Please grab the latest version and try again. If you could enable debug logging (System -> Settings -> Debugging) while testing it may give some additional useful information as well. Both of these changes are included in v1.2.1 (zip linked in first post) Real-time communication makes debugging a lot easier, you should be able to find me on IRC. - dallasnights - 2011-07-12 Thank you I will test when I get home in about 7 hours, appreciate it ! BTW I had no problems on the old XBMC 10.07 not sure if that help you but its only happening on 10.09 the new official build |