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 - User 224999 - 2015-09-11 (2015-09-11, 09:43)jurialmunkey Wrote:(2015-09-11, 09:32)marcelveldt Wrote:No can't see it being set in there.(2015-09-11, 03:06)jurialmunkey Wrote: I'm not sure if I'm doing something wrong? It doesn't seem to be working (on Isengard if that matters). Here's my button in skinshortcuts: Working fine in my setup. I copied your exact button code and see this in my script-skinshortcuts-includes.xml: <property name="tilecolor">ff008000</property> <property name="tilecolor.name">office green</property> You are sure you went back to home so it would build the menu ? RE: skin helper service - Jayz2K - 2015-09-11 (2015-09-11, 01:51)marcelveldt Wrote: Both requests are now added to the code, available on Git. Thanks Marcel Well, made some quick tests. Don't know if that's me or some tunes in the script but I get none of the new backup options to work. I tried this with import : Code: <onclick>RunScript(script.skin.helper.service,action=restore,silent=extras\ColorShemes\KOver_ColorScheme_Default.zip)</onclick> Returns this in log : Code: 09:32:01 T:7528 NOTICE: Skin Helper Service --> ERROR while restoring backup ! --> [Errno 2] No such file or directory: u'C:\\Users\\jerome.MTLSA\\AppData\\Roaming\\Kodi\\cache\\KOVER_COLORSCHEME_DEFAULT.ZIP' DialogBusy.xml is stuck there and the log stops here I tried export the same way : Code: <onclick condition="StringCompare(Container(9400).ListItem.Property(NumTemp),MODEL1)">RunScript(script.skin.helper.service, action=backup, filter=MODEL1, silent=C:\test\test.zip)</onclick> Returns this Code: 09:56:41 T:8332 ERROR: XFILE::CDirectory::GetDirectory - Error getting zip://C%3a%5cTEST%5cTEST.ZIP/ And for export name entry prompt, It backups the normal way without the DialogKeyboard.xml opening for prompt. I also activated the DebugInfo and I don't see it opening during all the process. Here's the code : Code: <onclick condition="StringCompare(Container(9400).ListItem.Property(NumTemp),MODEL1)">RunScript(script.skin.helper.service, action=backup, filter=MODEL1, promptfilename=true)</onclick> Hope that helps RE: skin helper service - User 224999 - 2015-09-11 (2015-09-11, 10:06)Jayz2K Wrote: Well, made some quick tests. Don't know if that's me or some tunes in the script but I get none of the new backup options to work. Thanks for testing. Can you try with latest Git ? I fixed some stuff. Also note that you must provide the VFS path... So special://skin/extras/ColorShemes/KOver_ColorScheme_Default.zip RE: skin helper service - Jayz2K - 2015-09-11 Erm, yeah, sry for the VFS path. Here's my new attempts : Code: <onclick>RunScript(script.skin.helper.service,action=restore,silent=special://skin/extras/colorschemes/kover_colorccheme_default.zip)</onclick> Code: <onclick condition="StringCompare(Container(9400).ListItem.Property(NumTemp),MODEL1)">RunScript(script.skin.helper.service,action=backup,filter=MODEL1,silent=special://skin/extras/test.zip))</onclick> Returns invalid path in Log (tried it several times with renaming the zip mybackup.zip, moving it straight in extras/ ... no luck) Code: 11:17:06 T:5492 NOTICE: Skin Helper Service --> ERROR while creating backup ! --> Path invalid. Make sure you provide the FULL path, for example special://skin/extras/mybackup.zip Also tried again for export with name entry prompt, same result as before with the same command. RE: skin helper service - jurialmunkey - 2015-09-11 (2015-09-11, 10:01)marcelveldt Wrote:Figured out the problem. I was using a window close fade out animation in the colour picker that was interfering with the script setting the property properly.(2015-09-11, 09:43)jurialmunkey Wrote:(2015-09-11, 09:32)marcelveldt Wrote: Your code is just fine. Actually your log even indicates it has set the property.No can't see it being set in there. RE: skin helper service - User 224999 - 2015-09-11 (2015-09-11, 12:04)jurialmunkey Wrote: Figured out the problem. I was using a window close fade out animation in the colour picker that was interfering with the script setting the property properly.Aha! Yeah, in that case I think the previous window will be kept longer active in memory. Good catch. Do you want me to fix something for it or did you add a condition in the animation ? RE: skin helper service - tomer953 - 2015-09-11 Marcel, sorry for asking again, but I have to find a way to arrange my widgets, and assign defaults. currently I can't make it, and i'm almost sure its just a syntax error or somthing, but what I did is to copy your overrides.xml from the git, and try to add my custom widgets. ill show you an example of one widget (Recent Movies) and I need your help to assign it correctly. http://pastebin.com/ybBGXMb6 see line 61 please. the purpose is to assign it to the movies menu as default. after ill do it, I will add by myself all the rest... The code above is actually add the Recent Movies to the dialog, but when clicked, nothing is set. I added a label with: Code: <label>widgetType: $INFO[Container(9000).ListItem.Property(widgetType)] [CR]widgetTarget: $INFO[Container(9000).ListItem.Property(widgetTarget)] [CR]Path: $INFO[Container(9000).ListItem.Property(widgetPath)] [CR]Widget: $INFO[Container(9000).ListItem.Property(Widget)] [CR]Type: $INFO[Container(9000).ListItem.Property(widgetType)]</label> I need Property(widget) to be assigned, and the Property(widgetPath) to fill with the content, (as your saw before I use the widgetPath in the "content" tag.) 10x Again... RE: skin helper service - User 224999 - 2015-09-11 (2015-09-11, 12:13)tomer953 Wrote: Marcel, sorry for asking again, but I have to find a way to arrange my widgets, and assign defaults. Use this (adjust to your needs): PHP Code: <widgetdefaultnode defaultID="movies" group="mainmenu" label="$ADDON[script.skin.helper.service 32003]" type="movies" path="plugin://script.skin.helper.service/?action=RECOMMENDEDMOVIES&reload=$INFO[Window(Home).Property(widgetreload)]" target="video">recommendedmovies</widgetdefaultnode> RE: skin helper service - tomer953 - 2015-09-11 (2015-09-11, 12:17)marcelveldt Wrote:10x for the quick reply. I take the first line and(2015-09-11, 12:13)tomer953 Wrote: Marcel, sorry for asking again, but I have to find a way to arrange my widgets, and assign defaults. I added it inside the "</widget-groupings>" and nothing happened (not appear in the dialog picker, and not set the default when reset) when I put it out from that tag, It still not availble in the picker, but when reset It worked perfect.. (assigned all the properties) how do I add it to the dialog? Code: </widget-groupings> RE: skin helper service - im85288 - 2015-09-11 Marcel, out of interest what is your plan for submittal to the Kodi repo of this script? RE: skin helper service - BobCratchett - 2015-09-11 (2015-09-11, 12:40)tomer953 Wrote: 10x for the quick reply. I take the first line and <widgetdefaultnode > has nothing to do with the widgets that are shown to the user. It's only used to set the default widget for a menu item. To customise the widgets that are shown, either use <widget /> elements (outside of the widget-groupings, which will show up in the <content>widgets</content> group and can be set as menu default with the simpler <widgetdefault /> elements, or with a <shortcut /> element within the widget-groupings (which requires a widgetdefaultnode element if you also want to set it as default.) Details of syntax for all of these (actually, possibly not for <shortcut />'s) are in the documentation included with Skin Shortcuts - Advanced Usage.txt, section "Overrides.xml", part 4 (widgets). RE: skin helper service - tomer953 - 2015-09-11 oh, I think I get it now... so I can play with the <content>widgets</content> location, and use my old method [widget and widgetdefault tags] with with the <widget-groupings> and nodes combined.. for a quick test, it seems to be working well! thanks. Marcel, Always wondered if it will be possible to backup\restore shortcuts ? RE: skin helper service - User 224999 - 2015-09-11 (2015-09-11, 13:58)tomer953 Wrote: oh, I think I get it now... so I can play with the <content>widgets</content> location, and use my old method [widget and widgetdefault tags] with with the <widget-groupings> and nodes combined.. The backup function of this script will also backup/restore skin shortcuts RE: skin helper service - tomer953 - 2015-09-11 yes I know, which is great, but no way to filter just to skinshortcuts? want to pass my menus to other machine using different skin\same skin diff theme... possible ? Edit: forgot to mention that there are unicode errors while restore http://pastebin.com/1nh9zK8y RE: skin helper service - tomer953 - 2015-09-11 also the Restore Theme dialog is not find .theme files Code: RunScript(script.skin.helper.service,action=restorecolortheme) |