![]() |
Release script.skinshortcuts - 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 script.skinshortcuts (/showthread.php?tid=178294) 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
|
RE: script.skinshortcuts - Mr. V - 2016-01-24 (2016-01-24, 17:25)BobCratchett Wrote: @Mr. V - an attempt to combine variables where appropriate (and so not have profile conditions in those instances) is now on git. I don't know if you use profiles or not - if not, I'll have to do more testing before I'll be happy to commit it Thanks Bob. I'll do some testing. It was me who requested a while back. Thanks for considering this one. ![]() RE: script.skinshortcuts - Guilouz - 2016-01-24 (2016-01-24, 21:35)BobCratchett Wrote: Feature request here Thanks. RE: script.skinshortcuts - bigbadrabbit - 2016-01-25 I tried creating a direct shortcut to one of my youtube subscriptions but after creating it never updates the content and is stuck to the time of adding the shortcut. The same happens with iTunes Movie Trailers addon. They only update in widget mode but not on opening the shortcut itself. Is this a problem with the skin.shortcuts-script or the skin itself (currently Arctic Zephyr)? Thanks. RE: script.skinshortcuts - BobCratchett - 2016-01-25 It's likely to be the known problem with some add-ons including YouTube which seems to be caused by the way they pass variables through the uri. For whatever reason, when they do it in the way that YouTube does it, Kodi uses a cached version when opening a link directly to it. To know whether it is this issue or not, look at the path for the shortcut - if it doesn't have a ?[variable]=[value] part at the end, it most likely is. You can try and fool Kodi into not using a cached version by changing the action - 'Change Action' > 'Custom Shortcut >' (the last one in the list) and add a property to the path. So, YouTube's Popular Right Now would change from:- Code: ActivateWindow(10025,"plugin://plugin.video.youtube/special/popular_right_now/",return) to something like:- Code: ActivateWindow(10025,"plugin://plugin.video.youtube/special/popular_right_now/?variable=$INFO[System.TotalUptime]",return) (The name of the variable, nor the value, actually matter - though I like $INFO[System.TotalUptime] as it will always be different each time the shortcut is accessed, guaranteeing Kodi sees it as a fresh path each time and therefore can't use a cached version. But just ?a=1 should be enough for Kodi to not always use the cached version...) RE: script.skinshortcuts - BobCratchett - 2016-01-25 @Mr. V - conditional matching for custom property fallbacks has just been added to the templates branch. For various reasons, it can only match against <property name="[name]">[value]</property>'s (unlike template matching, which can match against any element of the menu item) so its syntax is:- Code: <propertyfallback property="[property you are setting]" attribute="the attribute you're matching against" value="the value you're matching against">The final value</propertyfallback> So to match against:- Code: <property name="widgetStyle">List</property> you'd use:- Code: <propertyfallback property="widgetArt" attribute="widgetStyle" value="List">Poster</propertyfallback> As always, let me know how you get on ![]() RE: script.skinshortcuts - Mr. V - 2016-01-26 (2016-01-25, 22:19)BobCratchett Wrote: @Mr. V - conditional matching for custom property fallbacks has just been added to the templates branch. For various reasons, it can only match against <property name="[name]">[value]</property>'s (unlike template matching, which can match against any element of the menu item) so its syntax is:- Cheers Man. ![]() BTW: Thanks. Variables are working perfect. (Haven't tried different user profiles though) RE: script.skinshortcuts - tomer953 - 2016-01-26 Hey Bob, I have some user which using my skin which getting script error: http://pastebin.com/HTtv2EtW any idea why is that? RE: script.skinshortcuts - mikeSiLVO - 2016-01-26 (2016-01-26, 11:14)tomer953 Wrote: Hey Bob, I have some user which using my skin which getting script error: Missing required unidecode dependency? RE: script.skinshortcuts - tomer953 - 2016-01-26 (2016-01-26, 11:20)mikesilvo164 Wrote:(2016-01-26, 11:14)tomer953 Wrote: Hey Bob, I have some user which using my skin which getting script error: 10x. what addon he is missing ? RE: script.skinshortcuts - mikeSiLVO - 2016-01-26 (2016-01-26, 11:33)tomer953 Wrote:I see an import error with unidecode so I am assuming the user installed manually and does not have the required module.(2016-01-26, 11:20)mikesilvo164 Wrote:(2016-01-26, 11:14)tomer953 Wrote: Hey Bob, I have some user which using my skin which getting script error: <import addon="script.module.unidecode" version="0.4.14"/> RE: script.skinshortcuts - tomer953 - 2016-01-26 Actually no way that he installed it manually, but let me check and test if the missing script.module.unidecode (or not missing) - solve it. 10x RE: script.skinshortcuts - mikeSiLVO - 2016-01-26 (2016-01-26, 11:50)tomer953 Wrote: Actually no way that he installed it manually, but let me check and test if the missing script.module.unidecode (or not missing) - solve it.If that is not the problem then this might be one of those cases why a full debug log is preferred. What repos the user installed and how they installed skinshortcuts can be very helpful. BTW, What is 10x? Feelin' old and like I should already know this ![]() RE: script.skinshortcuts - tomer953 - 2016-01-26 (2016-01-26, 12:02)mikesilvo164 Wrote:(2016-01-26, 11:50)tomer953 Wrote: Actually no way that he installed it manually, but let me check and test if the missing script.module.unidecode (or not missing) - solve it.If that is not the problem then this might be one of those cases why a full debug log is preferred. What repos the user installed and how they installed skinshortcuts can be very helpful. script.module.unidecode was missing and installing it solved the problem. 10x, is an internet slang for "Thanks", as combination of "Ten" (10) and "X" - 10x. (10Q is also possible, "Thank You") L8R = Later, T2UL = talk to you later, m8 = mate, 2moro = tomorrow, 2b = to be, 4u = for you RE: script.skinshortcuts - mikeSiLVO - 2016-01-26 (2016-01-26, 14:32)tomer953 Wrote: script.module.unidecode was missing and installing it solved the problem.Ha. I knew it would be obvious after you told me... I guess I am getting old ![]() ![]() RE: script.skinshortcuts - Mr. V - 2016-01-29 @Bob Any way you can think of that I can avoid skin shortcuts writing a localized string? Code: <control type="button" id="1021"> I am trying to use the numeric dialog to write a number to a menu property. I replaced $INFO with $NUMBER and no joy either. Starting to think this is not possible. |