-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.txt
284 lines (228 loc) · 14.9 KB
/
README.txt
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
Parameters:
Simply add $INFO[ListItem.foo]
For example:
XBMC.RunScript(script.metadata.actors,$INFO[ListItem.foo])
Launch from Library MovieActors, MovieDirectors or TvShowActors.
Add button in DialogContextMenu.xml in main grouplist.
<control type="grouplist" id="996">
<description>grouplist for context buttons</description>
...
<control type="button" id="2001">
<description>actor/director info button (visible only container is MovieActors, MovieDirectors or TvShowActors)</description>
...
<label>$VAR[ContextMenuLabel2001]</label>
<onclick>RunScript(script.metadata.actors,$INFO[ListItem.Label])</onclick>
<visible>Container.Content(Actors) | Container.Content(Directors) | Container.Content(Artists)</visible>
<visible>System.HasAddon(script.metadata.actors) + !Window.IsVisible(script-Actors-DialogInfo.xml)</visible>
</control>
...
</control>
And in includes.xml
<includes>
<variable name="ContextMenuLabel2001">
<value condition="Container.Content(Artists) + Window.IsVisible(MusicLibrary)">Filmography</value>
<value condition="Container.Content(Actors)">Actor information</value>
<value condition="Container.Content(Directors)">Director information</value>
<value condition="Container.Content(Artists)">Artist information</value>
</variable>
</includes>
Launch from DialogVideoInfo.xml for actor infos: (create a new button and keep $INFO[Container(50).Listitem.Label] )
<control type="button" id="????">
<description>actor info button</description>
...
<onclick>RunScript(script.metadata.actors,$INFO[Container(50).Listitem.Label])</onclick>
<visible>Control.IsVisible(50) + System.HasAddon(script.metadata.actors)</visible>
</control>
Launch from DialogVideoInfo.xml for director/writer infos:
<onclick condition="System.HasAddon(script.metadata.actors)">RunScript(script.metadata.actors,$INFO[ListItem.Director])</onclick>
<onclick condition="System.HasAddon(script.metadata.actors)">RunScript(script.metadata.actors,$INFO[ListItem.Writer])</onclick>
Special Launch for Artists from DialogAlbumInfo.xml:
<control type="button" id="15">
<description>Filmography</description>
...
<label>Filmography</label>
<onclick>RunScript(script.metadata.actors,$INFO[Listitem.Artist])</onclick>
<visible>container.content(Artists) + System.HasAddon(script.metadata.actors)</visible>
</control>
Available Property for hide DialogVideoInfo.xml / DialogAlbumInfo.xml:
Window(Home).Property(script.metadata.actors.isactive): return 1 or empty
For example:
<onload>ClearProperty(script.metadata.actors.isactive,home)</onload>
<animation effect="slide" start="1100,0" end="0,0" time="400" condition="!StringCompare(Window(Home).Property(script.metadata.actors.isactive),1)">Conditional</animation>
<animation effect="slide" start="0,0" end="1100,0" time="400" condition="StringCompare(Window(Home).Property(script.metadata.actors.isactive),1)">Conditional</animation>
Additional new properties:
Window(Home).Property(script.metadata.actors.hasparent): return 1 or empty
Window(Home).Property(script.metadata.actors.push): return 1 or empty
hasparent property is 1 if the current dialog has still a parent which means that there are at least 2 items on the current stack
push property is 1 if there is currently pushed something on the stack and it's empty if an item gets removed from the stack.
It can be used to have different animations on push/pop, e.g. something slides in from left to right on push and from right to left on pop.
-------------------------------------------------------------------------------------------------------------------------------------------------------------------
List of Built In Controls Available In script-Actors-DialogInfo.xml:
5 ---> button ----> Toggle between Biography and Known Movies (Deprecated)
6 ---> button ----> Refresh actor information
8 ---> button ----> Browse your movies of the currently selected actor
10 --> button ----> Get actor thumbnail
11 --> button ----> edit (require tmdb account)
20 --> button ----> Get actor fanart
25 --> button ----> open add-on settings
50 --> container -> window actor info
150 -> container -> movies list (acting / directing / writing)
250 -> container -> thumbs list of actor
Labels Available In script-Actors-DialogInfo.xml:
Labels of the currently selected actor / director / writer / artist.
Container(50).Property(ParentDir) -> return true if parent dir exists or empty
Listitem.Title --------------------> Name
Listitem.Label --------------------> Same as Title
ListItem.Icon ---------------------> icon
ListItem.Plot ---------------------> Biography
ListItem.Property(Biography) ------> Same as Plot
ListItem.Property(Biooutline) -----> (currently not used)
ListItem.Property(TotalMovies) ----> Total of Known Movies (acting / directing / writing)
ListItem.Property(Birthday) -------> Date of Birthday
ListItem.Property(HappyBirthday) --> return true or empty
ListItem.Property(Age) ------------> Age (30)
ListItem.Property(AgeLong) --------> Age long format (age 30)
ListItem.Property(Deathday) -------> Date of Deathday
ListItem.Property(Deathage) -------> Age of dead (30)
ListItem.Property(DeathageLong) ---> Age of dead long format (age 30)
ListItem.Property(PlaceOfBirth) ---> Place of birth
ListItem.Property(AlsoKnownAs) ----> Also Known Name
ListItem.Property(Homepage) -------> Link of homepage, you can use onclick for open web browser directly on homepage: RunScript(script.metadata.actors,homepage=$INFO[ListItem.Property(Homepage)])
ListItem.Property(Adult) ----------> Is Adult Actor (no / yes)
ListItem.Property(Fanart_Image) ---> Fanart
ListItem.Property(extrafanart) ----> extrafanart (return empty if not exists)
ListItem.Property(extrathumb) -----> extrathumb (return empty if not exists)
Labels of Known Movies list
Container(150).ListItem.Label ---------------------> Title of movie
Container(150).ListItem.Title ---------------------> same as label
Container(150).ListItem.originaltitle -------------> originaltitle
Container(150).ListItem.Year ----------------------> year
Container(150).Listitem.Icon ----------------------> icon of movie
Container(150).ListItem.Property(role) ------------> role in currently slected movie
Container(150).ListItem.Property(job) -------------> job in currently slected movie (director / writer / etc)
Container(150).ListItem.Property(releasedate) -----> release date of movie
Container(150).ListItem.Property(year) ------------> same as year, but not return empty
Container(150).ListItem.Property(LibraryHasMovie) -> return 1 or empty, if movie exists in library
Container(150).ListItem.Property(Playcount) -------> Playcount of movie (default is 0)
Container(150).ListItem.Property(file) ------------> media to play
Labels of thumbs list
Container(250).ListItem.Label --------------------> Image résolution (512x720)
Container(250).Listitem.Icon ---------------------> Image
Container(250).ListItem.Property(aspect_ratio) ---> Aspect Ratio (0.66)
-------------------------------------------------------------------------------------------------------------------------------------------------------------------
List of Built In Controls Available In script-Actors-DialogVideoInfo.xml:
5 ---> button ----> (currently not used in python)
6 ---> button ----> Refresh movie information
8 ---> button ----> (currently not used in python)
10 --> button ----> (currently not used in python)
20 --> button ----> movie fanart
71 --> button ----> search for director
50 --> container -> window movie info
150 -> container -> actor / director / writer / artist listing
Labels Available In script-Actors-DialogVideoInfo.xml:
Labels of the currently selected movie.
Container(50).Property(ParentDir) -> return true if parent dir exists or empty
Listitem.Title --------------------> Name
Listitem.Label --------------------> Same as Title
ListItem.Icon ---------------------> icon
ListItem.Plot ---------------------> plot
ListItem.year ---------------------> year
ListItem.Date ---------------------> same as ListItem.Property(releasedate)
ListItem.originaltitle ------------> originaltitle
ListItem.director -----------------> director
ListItem.trailer ------------------> trailer
ListItem.genre --------------------> genre
ListItem.mpaa ---------------------> mpaa
ListItem.playcount ----------------> playcount
ListItem.plotoutline --------------> plotoutline
ListItem.rating -------------------> rating
ListItem.duration -----------------> duration
ListItem.studio -------------------> studio
ListItem.tagline ------------------> tagline
ListItem.top250 -------------------> top250
ListItem.votes --------------------> votes
ListItem.writer -------------------> writer
ListItem.lastplayed ---------------> lastplayed
ListItem.FilenameAndPath ----------> path of your movie
ListItem.Property(Fanart_Image) ---> fanart
ListItem.Property(set) ------------> Title of Movie Set (return empty if not exists)
ListItem.Property(country) --------> country
ListItem.Property(releasedate) ----> release date of movie
ListItem.Property(lastupdated) ----> last update info
ListItem.Property(Homepage) -------> Link of homepage, you can use onclick for open web browser directly on homepage: RunScript(script.metadata.actors,homepage=$INFO[ListItem.Property(Homepage)])
ListItem.Property(onlineinfo) -----> Link to visit movie on site, you can use onclick for open web browser directly on site: RunScript(script.metadata.actors,homepage=$INFO[ListItem.Property(onlineinfo)])
ListItem.Property(dbid) -----------> This can be used for the video language script or whatever else
Labels of the list actor / director / writer / artist.
Container(150).Listitem.Title -------------------> Name
Container(150).Listitem.Label -------------------> Same as Title
Container(150).Listitem.Label2-------------------> Role
Container(150).ListItem.Icon --------------------> icon
Container(150).ListItem.Plot --------------------> Biography
Container(150).ListItem.Property(Biography) -----> Same as Plot
Container(150).ListItem.Property(Biooutline) ----> (currently not used)
Container(150).ListItem.Property(TotalMovies) ---> Total of Known Movies (acting / directing / writing)
Container(150).ListItem.Property(Birthday) ------> Date of Birthday
Container(150).ListItem.Property(HappyBirthday) -> return true or empty
Container(150).ListItem.Property(Age) -----------> Age (30)
Container(150).ListItem.Property(AgeLong) -------> Age long format (age 30)
Container(150).ListItem.Property(Deathday) ------> Date of Deathday
Container(150).ListItem.Property(Deathage) ------> Age of dead (30)
Container(150).ListItem.Property(DeathageLong) --> Age of dead long format (age 30)
Container(150).ListItem.Property(PlaceOfBirth) --> Place of birth
Container(150).ListItem.Property(AlsoKnownAs) ---> Also Known Name
Container(150).ListItem.Property(Homepage) ------> Link of homepage, you can use onclick for open web browser directly on homepage: RunScript(script.metadata.actors,homepage=$INFO[ListItem.Property(Homepage)])
Container(150).ListItem.Property(Adult) ---------> Is Adult Actor (no / yes)
Container(150).ListItem.Property(Fanart_Image) --> Fanart
Container(150).ListItem.Property(extrafanart) ---> extrafanart (return empty if not exists)
Container(150).ListItem.Property(extrathumb) ----> extrathumb (return empty if not exists)
-------------------------------------------------------------------------------------------------------------------------------------------------------------------
** BACKEND AND DIALOG BACKEND**
For example from MyVideoNav.xml:
<window id="25">
<onload condition="System.HasAddon(script.metadata.actors)">RunScript(script.metadata.actors,backend)</onload>
For example from DialogVideoInfo.xml:
<window id="2003">
<onload condition="System.HasAddon(script.metadata.actors) + !IsEmpty(ListItem.Cast)">RunScript(script.metadata.actors,dialogbackend)</onload>
Labels Available from backend.
Window.Property(current.actor.name) ----------> Name
Window.Property(current.actor.biography) -----> Biography
Window.Property(current.actor.biooutline) ----> (currently not used)
Window.Property(current.actor.birthday) ------> Date of Birthday
Window.Property(current.actor.happybirthday) -> return true or empty
Window.Property(current.actor.age) -----------> Age (30)
Window.Property(current.actor.agelong) -------> Age long format (age 30)
Window.Property(current.actor.deathday) ------> Date of Deathday
Window.Property(current.actor.deathage) ------> Age of dead (30)
Window.Property(current.actor.deathagelong) --> Age of dead long format (age 30)
Window.Property(current.actor.placeofbirth) --> Place of birth
Window.Property(current.actor.alsoknownas) ---> Also Known Name
Window.Property(current.actor.homepage) ------> Link of homepage, you can use onclick for open web browser directly on homepage: RunScript(script.metadata.actors,homepage=$INFO[Window.Property(current.actor.homepage)])
Window.Property(current.actor.adult) ---------> Is Adult Actor (no / yes)
Window.Property(current.actor.icon) ----------> icon
Window.Property(current.actor.fanart_image) --> Fanart
Window.Property(current.actor.extrafanart) ---> extrafanart (return empty if not exists)
Window.Property(current.actor.extrathumb) ----> extrathumb (return empty if not exists)
Window.Property(current.actor.totalmovies) ---> (currently not used) Total of Known Movies (acting / directing / writing)
-------------------------------------------------------------------------------------------------------------------------------------------------------------------
** HOME WIDGET : Most Popular Artists Born Today **
Parameters:
RunScript(script.metadata.actors,borntoday[,limit,random])
limit : 1 - 100 max
random : random and choice limit in 100 peoples
For example:
<onload condition="System.HasAddon(script.metadata.actors)">RunScript(script.metadata.actors,borntoday,10,random)</onload>
Labels Available from borntoday in Home.
Window.Property(peopleborntoday.[1-100max].name) --------> Name
Window.Property(peopleborntoday.[1-100max].job) ---------> Actor / Actress / Other, and last notable movie
Window.Property(peopleborntoday.[1-100max].bio) ---------> Biography
Window.Property(peopleborntoday.[1-100max].icon) --------> icon
Window.Property(peopleborntoday.[1-100max].fanart) ------> Fanart
Window.Property(peopleborntoday.[1-100max].extrafanart) -> extrafanart (return empty if not exists)
Window.Property(peopleborntoday.[1-100max].extrathumb) --> extrathumb (return empty if not exists)
Window.Property(peopleborntoday.[1-100max].urlinfo) -----> used from python <onclick>RunScript(script.metadata.actors,urlinfo=$INFO[Window.Property(peopleborntoday.[1-10].urlinfo)])</onclick>
Window.Property(peopleborntoday.[1-100max].media.[1-25max].title) --> Title
Window.Property(peopleborntoday.[1-100max].media.[1-25max].icon) ---> Icon
Window.Property(peopleborntoday.[1-100max].media.[1-25max].fanart) -> Fanart
Window.Property(peopleborntoday.[1-100max].media.[1-25max].file) ---> media to play
Window.Property(peopleborntoday.[1-100max].media.[1-25max]1.type) --> movie / tvshow / music
-------------------------------------------------------------------------------------------------------------------------------------------------------------------