[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
|
- tslayer - 2010-10-10 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 - tslayer - 2010-10-10 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. - tslayer - 2010-10-10 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. Awesome! - Jopplehead - 2010-10-10 Those changes worked for XBOX. THANKS! - Runaround - 2010-10-11 tslayer Wrote:Okay.. I got it working. Thanks for this. Your instructions got it working for me as well. - spbogie - 2010-10-12 @tslayer Thank you for taking the time to track that down . 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. - lowflow - 2010-10-12 tslayer Wrote:Okay.. I got it working. Huge thanks!! - Susurrus - 2010-10-13 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? - tslayer - 2010-10-13 Works fine here. What does the xbmc.log tell you? Can't make it go... - gcurtis79 - 2010-10-13 Code: 14:55:02 M: 57339904 NOTICE: ----------------------------------------------------------------------- So how do I go about fixing this one? Or am I just screwed? Thanks! - Greg C. Also can't make it go... - S1naps1s - 2010-10-15 gcurtis79 Wrote: I am having the same problem, is there any solution? I saw a similar problem on page 16 with no result. - tslayer - 2010-10-15 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. - S1naps1s - 2010-10-16 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 - S1naps1s - 2010-10-16 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 ? It is there, I don't know why it wont work.... - tslayer - 2010-10-16 It is not a plugin!! It is an addon! Upgrade XBMC to Dharma and install as an addon. |