[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
|
- garbear - 2011-08-31 success - garbear - 2011-08-31 Got a new one for you. This release works perfect but breaks for everyone trying to upgrade. The ASCII keys can't be loaded as binary data by pickle. - spbogie - 2011-08-31 Yes, unfortunately due to the changes a forced key re-fetch will be required when updating, though I may be able to yet detect that situation and do so automatically. Do you happen to have the error it throws when trying to update from the old text based format? I'll dig into that a bit after work and push a new version asap. - htpc guy - 2011-09-01 spbogie Wrote:Yes, unfortunately due to the changes a forced key re-fetch will be required when updating, though I may be able to yet detect that situation and do so automatically. Do you happen to have the error it throws when trying to update from the old text based format? I'll dig into that a bit after work and push a new version asap. Just pulled the latest git. Tried to enter the addon and it failed. I refreshed the keys and now I can open and close it as many times as I like Fortunately I red your post (quoted above) and expected that. I turned on debug logging prior to opening the addon after pulling from git so you could see the error. Thanks for your work. log - garbear - 2011-09-01 Uh oh, pastebin nom nom nommed on that last debug log. Here's mine Code: PANDORA: Loading key from file "C:\Users\Garrett\AppData\Roaming\XBMC\userdata\addon_data\script.xbmc.pandora\key_in" Control via Android or Harmony remotes? - Ippie - 2011-09-01 I would love to be able to use my harmony remote to power on the receiver and send a command to XBMC while the TV is off to start up pandora and play a particular station/ Is there a way I can edit the keymap file so that pressing a button on my harmony would execute a command in XMBC to load the pandora app and select a station? If not with my Harmony remote, could I do it through the Android XBMC remote? Thanks - garbear - 2011-09-02 Ippie Wrote:Is there a way I can edit the keymap file so that pressing a button on my harmony would execute a command in XBMC to load the pandora app and select a station? Yes, XBMC makes it easy to do this kind of stuff fortunately. The articles you want on the wiki are Keymap.xml and List of Built In Functions. The general strategy is to add an entry into keymap.xml like this: RunAddon(script.xbmc.pandora). The wiki has more information on the subject. Keep in mind, some information might be out of date as the keymap handling has been revamped for XBMC's upcoming release (including the nightlies). - rufusmaster - 2011-09-02 Just installed v1.2.5. Running on ATV1 with the 8/28 XBMC nightly installed. I'm getting Error: "Unable to load keys." when I launch the add-on in XBMC. Here's the xbmc.log entry. It seems there's an SSL issue here. Any ideas? Code: 19:08:00 T:60226048 NOTICE: PANDORA: Loading key from file "/Users/frontrow/Library/Application Support/XBMC/userdata/addon_data/script.xbmc.pandora/key_in" Thanks, Devin Keymap command to select station? - Ippie - 2011-09-02 garbear Wrote:Yes, XBMC makes it easy to do this kind of stuff fortunately. The articles you want on the wiki are Keymap.xml and List of Built In Functions. The general strategy is to add an entry into keymap.xml like this: RunAddon(script.xbmc.pandora). Thanks Garbear, this is helpful. I saw a plex forum you can send a command to select a station by doing: <F8>Plex.ActivateWindow(10501,plex://localhost/music/pandora/stations^USERNAME||Your Stations/,return)</F8> Do you know if something like this is possible for XBMC? - garbear - 2011-09-03 Ippie Wrote:Thanks Garbear, this is helpful. I saw a plex forum you can send a command to select a station by doing: <F8>Plex.ActivateWindow(10501,plex://localhost/music/pandora/stations^USERNAME||Your Stations/,return)</F8> I don't know enough about the python API and its inter-script communications to answer that. I suspect if Pandora were implemented as a plugin, versus a script, then this would be possible. Ultimately the author, spbogie, is the one to ask. - dallasnights - 2011-09-04 Darn it now pandora does not work on ATV2 again see below, can someone provide a fix please Thanks all 10:33:35 T:146137088 M: 91021312 NOTICE: -->Python Interpreter Initialized<-- 10:33:35 T:146137088 M: 91021312 DEBUG: Process - The source file to load is /var/mobile/Library/Preferences/XBMC/addons/script.xbmc.pandora/default.py 10:33:35 T:146137088 M: 91021312 DEBUG: Process - Setting the Python path to /var/mobile/Library/Preferences/XBMC/addons/script.xbmc.pandora:/var/mobile/Library/Preferences/XBMC/addons/script.module.cryptopy/lib:/var/mobile/Library/Preferences/XBMC/addons/script.module.demjson/lib:/var/mobile/Library/Preferences/XBMC/addons/script.module.simplejson/lib:/var/mobile/Library/Preferences/XBMC/addons/script.module.beautifulsoup/lib:/private/var/stash/Applications/XBMC.frappliance/XBMCData/XBMCHome/addons/script.module.pil/lib:/private/var/stash/Applications/XBMC.frappliance/XBMCData/XBMCHome/addons/script.module.pysqlite/lib:/var/stash/Applications/XBMC.frappliance/Frameworks:/var/stash/Applications/XBMC.frappliance/Frameworks/lib/python26.zip:/var/stash/Applications/XBMC.frappliance/Frameworks/lib/python2.6:/var/stash/Applications/XBMC.frappliance/Frameworks/lib/python2.6/plat-darwin:/var/stash/Applications/XBMC.frappliance/Frameworks/lib/python2.6/plat-mac:/var/stash/Applications/XBMC.frappliance/Frameworks/lib/python2.6/plat-mac/lib-scriptpackages:/var/stash/Applications/XBMC.frappliance/Frameworks/lib/python2.6/lib-tk:/var/stash/Applications/XBMC.frappliance/Frameworks/lib/python2.6/lib-old:/var/stash/Applications/XBMC.frappliance/Frameworks/lib/python2.6/lib-dynload:/var/stash/Applications/XBMC.frappliance/Frameworks/lib/python2.6/site-packages: 10:33:35 T:146137088 M: 91021312 DEBUG: Process - Entering source directory /var/mobile/Library/Preferences/XBMC/addons/script.xbmc.pandora 10:33:35 T:146137088 M: 91021312 DEBUG: Instantiating addon using automatically obtained id of "script.xbmc.pandora" dependent on version 1.0 of the xbmc.python api 10:33:35 T:146137088 M: 91373568 NOTICE: PANDORA: Initializing v1.2.5 10:33:35 T:146137088 M: 91373568 NOTICE: PANDORA: sys.platform = darwin 10:33:35 T:146137088 M: 91373568 INFO: Loading skin file: DialogProgress.xml 10:33:35 T:146137088 M: 91373568 DEBUG: DialogProgress::StartModal called 10:33:35 T:146137088 M: 91373568 DEBUG: ------ Window Init (DialogProgress.xml) ------ 10:33:38 T:146137088 M: 90742784 NOTICE: PANDORA: Loading key from file "/var/mobile/Library/Preferences/XBMC/userdata/addon_data/script.xbmc.pandora/key_in" 10:33:39 T:146137088 M: 90730496 NOTICE: PANDORA: Unexpected error:<type 'exceptions.KeyError'>:'proto' 10:33:39 T:146137088 M: 90730496 INFO: -->Python script returned the following error<-- 10:33:39 T:146137088 M: 90730496 ERROR: Error Type: <type 'exceptions.KeyError'> 10:33:39 T:146137088 M: 90730496 ERROR: Error Contents: 'proto' 10:33:39 T:146137088 M: 90730496 ERROR: Traceback (most recent call last): File "/var/mobile/Library/Preferences/XBMC/addons/script.xbmc.pandora/default.py", line 235, in <module> panda = Panda() File "/var/mobile/Library/Preferences/XBMC/addons/script.xbmc.pandora/default.py", line 60, in __init__ self.pandora = Pandora( dataDir, fmt ) File "/var/mobile/Library/Preferences/XBMC/addons/script.xbmc.pandora/libpandora/pandora.py", line 33, in __init__ if not self.keys.loadKeys(): File "/var/mobile/Library/Preferences/XBMC/addons/script.xbmc.pandora/libpandora/keys.py", line 39, in loadKeys "key_in" ) ) File "/var/mobile/Library/Preferences/XBMC/addons/script.xbmc.pandora/libpandora/keys.py", line 104, in _loadKeyFromFile key = Key( tmp['proto'], tmp['key'] ) File "/var/mobile/Library/Preferences/XBMC/addons/script.xbmc.pandora/libpandora/keys.py", line 19, in __getitem__ return self._key[key] KeyError: 'proto' 10:33:39 T:146137088 M: 90730496 INFO: -->End of Python script error report<-- 10:33:39 T:133476352 M: 90730496 DEBUG: ------ Window Init (DialogKaiToast.xml) ------ 10:33:39 T:146137088 M: 90083328 INFO: Python script stopped 10:33:39 T:146137088 M: 90083328 DEBUG: Thread Python Thread 146137088 terminating 10:33:39 T:133476352 M: 90083328 DEBUG: waiting for python thread 8 to stop 10:33:39 T:133476352 M: 90091520 DEBUG: python thread 8 destructed 10:33:39 T:133476352 M: 90091520 DEBUG: ------ Window Deinit (DialogProgress.xml) ------ 10:33:44 T:133476352 M: 90677248 DEBUG: ------ Window Deinit (DialogKaiToast.xml) ------ 10:33:49 T:133476352 M: 91152384 INFO: Python, unloading python shared library because no scripts are running anymore 10:33:52 T:133476352 M: 91152384 DEBUG: SECTION:UnloadDelayed(DLL: special://xbmcbin/system/players/dvdplayer/avutil-50-arm-osx.so) 10:33:52 T:133476352 M: 91152384 DEBUG: Unloading: avutil-50-arm-osx.so 10:33:52 T:133476352 M: 91152384 INFO: CheckIdle - Closing session to http://stream57-he.grooveshark.com (easy=0x54ec000, multi=0x223dd370) 10:33:53 T:133476352 M: 91136000 DEBUG: SECTION:UnloadDelayed(DLL: special://xbmcbin/system/players/dvdplayer/avcore-0-arm-osx.so) 10:33:53 T:133476352 M: 91136000 DEBUG: Unloading: avcore-0-arm-osx.so 10:33:53 T:133476352 M: 91136000 DEBUG: SECTION:UnloadDelayed(DLL: special://xbmcbin/system/players/dvdplayer/avcodec-52-arm-osx.so) 10:33:53 T:133476352 M: 91136000 DEBUG: Unloading: avcodec-52-arm-osx.so 10:33:54 T:133476352 M: 91136000 DEBUG: SECTION:UnloadDelayed(DLL: special://xbmcbin/system/players/dvdplayer/avformat-52-arm-osx.so) 10:33:54 T:133476352 M: 91136000 DEBUG: Unloading: avformat-52-arm-osx.so - elmerohueso - 2011-09-05 dallasnights Wrote:Darn it now pandora does not work on ATV2 again see below, can someone provide a fix please Works fine on mine. I deleted userdata/addon_data/xbmc.script.pandora before upgrading to 1.2.5. - dallasnights - 2011-09-05 thanks that worked on my ATV2 appreciate it! - Shalun - 2011-09-06 I have 1.2.5 working! Wasn't there a 1.2.6 in git? How to I obtain a compiled? A deletion of C:\Users\avfanatic\AppData\Roaming\XBMC\addons\script.xbmc.pandora and reinstalling the zip seemed to do the trick. As stated in my earlier post, deletion of \AppData\Roaming\XBMC\userdata\addon_data\script.xbmc.pandora--htpc guy or garbears observation--did allow me to connect, once, but I was required to delete it prior to using the Pandora plugin every time. OS: Windows 7 64 bit. Thank you, elmerohueso! - Livin - 2011-09-06 How do you actually run the script? I install it just fine & ran the config to enter my acct info. No problem BUT it is not showing under Programs? Do I need to manually do something - I thought the Install would add it? |