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 - 2016-02-10 (2016-02-10, 10:58)Angelinas Wrote: Script build wall images but they are colorful, not black&white.... Can you test with latest Git ? Please allow the script some time to recreate the wall images. After that you should have both colored and bw wall images provided... Window(Home).Property(SkinHelper.AllMoviesBackground.Wall) --> color Window(Home).Property(SkinHelper.AllMoviesBackground.Wall.BW) --> B&W RE: skin helper service - bsoriano - 2016-02-10 (2016-02-10, 13:30)marcelveldt Wrote:(2016-02-08, 17:41)bsoriano Wrote: Hello Marcel, Marcel, BobCratchett was kind enough to help me in showing the episode info in the widget info panel for MadNox, but I noticed something strange. The widget is listing yesterday's shows, not today's, and the episode info is for the episode from two weeks ago, not for the next episode. I have the latest version of the TV Show Next Aired addon, and the information is updated. Could this be perhaps because I have the addon configured to show the tv guide starting today and not the regular week? Thanks for your help. Regards, Bart RE: skin helper service - Jayz2K - 2016-02-10 Hey Marcel ! Request inside You know I'm habituated to ask for weird things, so please sit down and take a breath You know that $VAR[] is not universal in KODI as for infolabels. That's something all of us had to face to at a moment. My most needed cases are width / height / idletime, etc... However, you also know that constants are working, so... Is there a way (probably not but if I don't ask, I won't know) to launch a skin.helper action to set a value (like Skin.SetString) for a constant as SkinHelper.SetConstant and write / override it in a file (this is where you say no ?) having an <includes> structure ? This way, we should include this file and use the constants set by user. Let me know, cheers. RE: skin helper service - Angelinas - 2016-02-10 (2016-02-10, 19:43)marcelveldt Wrote: Can you test with latest Git ?Just tested and of course you done miricle code again ..... TNX Working like charm...And you have good idea to create both wall images with number of creating images. RE: skin helper service - User 224999 - 2016-02-10 (2016-02-10, 20:15)bsoriano Wrote: Marcel, BobCratchett was kind enough to help me in showing the episode info in the widget info panel for MadNox, but I noticed something strange. The widget is listing yesterday's shows, not today's, and the episode info is for the episode from two weeks ago, not for the next episode. I have the latest version of the TV Show Next Aired addon, and the information is updated. Could this be perhaps because I have the addon configured to show the tv guide starting today and not the regular week? Thanks for your help. I guess you got a version from the cache. Make sure that you add the reload command to the plugin path: plugin://script.skin.helper.service/?action=nextairedtvshows&reload=$INFO[Window(Home).Property(widgetreload2)] RE: skin helper service - User 224999 - 2016-02-10 (2016-02-10, 20:16)Jayz2K Wrote: Is there a way (probably not but if I don't ask, I won't know) to launch a skin.helper action to set a value (like Skin.SetString) for a constant as SkinHelper.SetConstant and write / override it in a file (this is where you say no ?) having an <includes> structure ? Great idea... but... Python scripts are actually not supposed to write to skin xml files. Skin shortcuts is the one big exception addon that may do this while still beiing in the official Kodi repo. I'm open to this suggestion to have one more "generated" include XML file in which skinhelper may write includes but only if ronie agrees with it. That said. I'm not sure this will actually work because you'll need a reloadskin if the xml is updated dynamically by the script. Or maybe, just maybe it will work with the new conditional include for files that was added in Isengard or Jarvis. Maybe just test by adding a condition file include in one your windows (not in the generic includes.xml), update the file, not reload the skin and see what happens ? RE: skin helper service - Jayz2K - 2016-02-10 (2016-02-10, 20:30)marcelveldt Wrote: Great idea... but... I knew you'd tell me about skinshortcuts exception so what I didn't try is to call a file outside the skin's folder (meaning giving it a path), so using your addon_datas folder ? Regarding the reloadskin, I don't think it's really an issue. IMO this has to be used in skinsettings.xml or custom windows, so applying a reloadskin at onunload is pretty easy. I can test the include trick and let you know. EDIT : Just thought that the xml file could be written at script installation but remain empty of constants (only <includes> tags). That could avoid having to check if it's there or not. RE: skin helper service - Hustler1337 - 2016-02-10 Hi, Does anyone know how I can insert a condition to check if an information is not available? From what I understand, the addon returns a value of "N/A" when something is not available. This is the visibility condition I have used in the context of Rotten Tomatoes Critics Consensus: PHP Code: <visible>StringCompare($INFO[Window(Home).Property(SkinHelper.RottenTomatoesConsensus)], N/A)</visible> But that doesn't seem to work. I'm guessing I've made a mistake somewhere in that line and would appreciate if someone can tell me where I've gone wrong. Thanks! RE: skin helper service - Angelinas - 2016-02-10 (2016-02-10, 21:53)Hustler1337 Wrote: But that doesn't seem to work. I'm guessing I've made a mistake somewhere in that line and would appreciate if someone can tell me where I've gone wrong.this will work,visible condition.. Code: <item> RE: skin helper service - Jayz2K - 2016-02-10 @Hustler1337 : Is it a copy / paste ? You have a space before N/A ... ? RE: skin helper service - Mike_Doc - 2016-02-10 Anyone got an example of Cast Details working and the code to do so? Just can't seem to get my dumb head around it and integrate it? TIA, Mike. RE: skin helper service - Angelinas - 2016-02-10 (2016-02-10, 22:14)Jayz2K Wrote: @Hustler1337 :space is not importent $INFO[ ] is wrong ======================================================================= @Mike_Doc I integrate in MOD SkinAeonMQ6...Cast Details see on my Github... Have on Home menu,and in Dialog for PVR , both working excelent,only this things avaliable Label = Name of the actor Label2 = Role Icon Icon = Thumb of the actor RE: skin helper service - User 224999 - 2016-02-10 (2016-02-10, 21:53)Hustler1337 Wrote: Does anyone know how I can insert a condition to check if an information is not available? From what I understand, the addon returns a value of "N/A" when something is not available. This is the visibility condition I have used in the context of Rotten Tomatoes Critics Consensus: No, the window properties will be cleared (empty) is no info is available. The N/A description for the rotten tomatoes comes from Rotten tomatoes (omdb) itself. RE: skin helper service - Mike_Doc - 2016-02-11 (2016-01-27, 17:56)marcelveldt Wrote:(2016-01-27, 17:03)Mike_Doc Wrote: But I don't get any images, I attempted adding a fallback as per the readme to the end but I still didn't get the fallback? Hi Marcel, Sorry for not getting back earlier, this does indeed work now. Thanks Angelinas, figured it out in the end after checking your work and seeing what was wrong. Thanks RE: skin helper service - Hustler1337 - 2016-02-12 (2016-02-10, 22:09)Angelinas Wrote:(2016-02-10, 21:53)Hustler1337 Wrote: But that doesn't seem to work. I'm guessing I've made a mistake somewhere in that line and would appreciate if someone can tell me where I've gone wrong.this will work,visible condition.. Thanks Angelinas, that worked perfectly. Now, I have another question: Is it possible to use StringCompare (or another bool condition) to find out whether the returned value is greater, less than or equal to another value? So in the context of Rotten Tomatoes Rating, I'd like to set a visibility condition by finding out whether the rating is greater than "60". How can I achieve this? I thought I'd try: PHP Code: <visible>StringCompare(Window(Home).Property(SkinHelper.RottenTomatoesRating), >60)</visible> Would appreciate any help. Thanks EDIT: Didn't notice IntegerGreaterThan bool in the wiki. Ignore the above. |