Release skin helper service - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Skinning (https://forum.kodi.tv/forumdisplay.php?fid=12) +---- Forum: Skin helper addons (https://forum.kodi.tv/forumdisplay.php?fid=300) +---- Thread: Release skin helper service (/showthread.php?tid=235676) 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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
|
RE: skin helper service - Jayz2K - 2015-08-31 Hi Marcel, I just noticed that using backup / export function returns empty guisettings.txt in zip when launching just after a KODI startup. The second one and others following are OK. RE: skin helper service - User 224999 - 2015-09-01 (2015-08-31, 09:21)Jayz2K Wrote: Hi Marcel, You mean on the first launch (fresh install) of Kodi ? Or just if you have just launched Kodi ? RE: skin helper service - im85288 - 2015-09-02 Hi Marcel, would it be possible to cache the Cast information so that subsequent requests for the data return instantly? RE: skin helper service - Jayz2K - 2015-09-02 (2015-09-01, 21:13)marcelveldt Wrote:(2015-08-31, 09:21)Jayz2K Wrote: Hi Marcel, Well, I'm not really sure now how it happens. It's finally not at each launch. Maybe after a KODI update or skin.helper update. It acts like an init param you don't get at first time that returns an empty backup "[]" or incomplete one (1 or 2 strings instead of more than 20). Happened 2 or 3 times. I have another issue now with the colorschemes backup. I'm using this : Code: <onclick>RunScript(script.skin.helper.service, action=backup, filter=Color)</onclick> I'm asking myself if there's not a conflict with your theme feature. I can modify my colors using the color picker tool wihout problems but when exporting the scheme with the above command, it returns the previous unmodded scheme like if there was a memory setting. If I mod my theme, quit KODI, restart KODI and then export, it's fine (like memory clear ?). RE: skin helper service - User 224999 - 2015-09-02 (2015-08-29, 01:53)nessus Wrote: Now, with your dynamic list (using these) the 'TVShowTitle' is empty and the AirTime it shows only the long day of the week (i don't mind if is short or long) Two ways to resolve this: 1) I can add all the properties from the script to the listitem object. That way you can do wathever you want with the data in your skin. Downside is that you still need custom code in your skin for this widget. 2) I can "convert" the nextaired values into default listitem props, for example set the nextairing details in the plot, fill in the listitem.tvshowtitle etc. That way you can treat the widget's content like any other tvshow content and no special code required in your skin. Tell me which one you'd like. I can also go for the hybrid approach and have a combination of 1 and 2. RE: skin helper service - User 224999 - 2015-09-02 (2015-09-02, 13:17)Jayz2K Wrote: Well, I'm not really sure now how it happens. It's finally not at each launch. Hmmm, are you testing this on on Isengard or Jarvis ? From Jarvis something has changed in Kodi. the skinsettings are no longer stored in the guisettings.xml file in the userdata root but are now stored as a settings.xml in the addon_data\skin folder which is off course a way better implementation but I wonder if they've also changed the way when settings are written. Maybe the changes are only written at Kodi shutdown and not instantly... That would explain your issue. The main problem is that the only way to retrieve all skin settings is to read the guisettings.xml (or in Jarvis the settings.xml) because there's no method to read the skin settings in the Kodi API. EDIT: problem confirmed.. as of Kodi Jarvis, the settings are written to the xml file only at shutdown which makes the backupfunction pretty useless RE: skin helper service - Jayz2K - 2015-09-02 (2015-09-02, 18:57)marcelveldt Wrote:(2015-09-02, 13:17)Jayz2K Wrote: Well, I'm not really sure now how it happens. It's finally not at each launch. I'm only using Jarvis builds. I can try to build something and look at the xml file in the addon_data if it changes on the fly. Will report ... RE: skin helper service - User 224999 - 2015-09-02 (2015-09-02, 19:04)Jayz2K Wrote: I'm only using Jarvis builds. I can try to build something and look at the xml file in the addon_data if it changes on the fly. Will report ... Sorry, I've just edited my post above... Problem confirmed while testing with Jarvis. The skinsettings are only written at Kodi shutdown. http://forum.kodi.tv/showthread.php?tid=237583 RE: skin helper service - Jayz2K - 2015-09-02 (2015-09-02, 19:04)Jayz2K Wrote:Damn you're right ... settings.xml is updated at KODI closing. Then I'm stuck with my backup feature :/(2015-09-02, 18:57)marcelveldt Wrote:(2015-09-02, 13:17)Jayz2K Wrote: Well, I'm not really sure now how it happens. It's finally not at each launch. RE: skin helper service - User 224999 - 2015-09-02 (2015-09-02, 19:16)Jayz2K Wrote: Damn you're right ... settings.xml is updated at KODI closing. Then I'm stuck with my backup feature :/ http://forum.kodi.tv/showthread.php?tid=237583 RE: skin helper service - Jayz2K - 2015-09-02 (2015-09-02, 19:19)marcelveldt Wrote:Just saw it after my post. Thanks for the request.(2015-09-02, 19:16)Jayz2K Wrote: Damn you're right ... settings.xml is updated at KODI closing. Then I'm stuck with my backup feature :/ RE: skin helper service - User 224999 - 2015-09-02 (2015-08-29, 14:21)im85288 Wrote: Would you be able to add a few more listitems for displaying the formatted Studios, Genres and Cast? Done, see latest Git + readme. RE: skin helper service - User 224999 - 2015-09-02 (2015-09-02, 10:04)im85288 Wrote: Hi Marcel, would it be possible to cache the Cast information so that subsequent requests for the data return instantly? Just fixed this on Git although I didn't test it. Please test to see if it works for you RE: skin helper service - User 224999 - 2015-09-02 (2015-09-02, 19:21)Jayz2K Wrote: Just saw it after my post. Thanks for the request. In the meanwhile I implemented a little workaround which reloads the skin just before retirving the skin settings... I discovered that that triggers the write to the xml file. So, the backup now works with Jarvis but you'll notice a quick flash of the screen while it's performing the backup Please check the latest Git. RE: skin helper service - Jayz2K - 2015-09-02 (2015-09-02, 20:23)marcelveldt Wrote:Thanks Marcel, backup works, however it crashes my skin (clears properties I use to process the dialogs and I get my strings init startup.xml looping).(2015-09-02, 19:21)Jayz2K Wrote: Just saw it after my post. Thanks for the request. |