aboutsummaryrefslogtreecommitdiff
path: root/addons/metadata.common.themoviedb.org/tmdb.xml
blob: 8390acfcaab6160827f3e8a0d99f51d149e62a9b (plain)
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
<scraperfunctions>

	<GetTMDBCertificationsByIdChain dest="4">
		<RegExp input="$$5" output="&lt;details&gt;\1&lt;/details&gt;" dest="4">
			<RegExp input="$$1" output="&lt;url function=&quot;ParseTMDBCertifications&quot; cache=&quot;tmdb-cert-\1.json&quot;&gt;http://api.themoviedb.org/3/movie/\1/releases?api_key=57983e31fb435df4df77afb854740ea9&lt;/url&gt;" dest="5">
				<expression />
			</RegExp>
			<expression noclean="1" />
		</RegExp>
	</GetTMDBCertificationsByIdChain>
	<ParseTMDBCertifications dest="5">
		<RegExp input="$$2" output="&lt;details&gt;\1&lt;/details&gt;" dest="5">
			<RegExp input="$$1" output="&lt;mpaa&gt;Rated \1&lt;/mpaa&gt;" dest="2">
				<expression fixchars="1">&quot;US&quot;,&quot;certification&quot;:&quot;([^&quot;]*)</expression>
			</RegExp>
			<expression noclean="1" />
		</RegExp>
	</ParseTMDBCertifications>

	<GetTMDBPlotByIdChain clearbuffers="no" dest="4">
		<RegExp input="$$5" output="&lt;details&gt;\1&lt;/details&gt;" dest="4">
			<RegExp input="$$1" output="\1" dest="8">
				<expression clear="yes" noclean="1" />
			</RegExp>
			<RegExp input="$$8" output="&lt;url function=&quot;ParseTMDBPlot&quot; cache=&quot;tmdb-$INFO[language]-\1.json&quot;&gt;http://api.themoviedb.org/3/movie/\1?api_key=57983e31fb435df4df77afb854740ea9&amp;language=$INFO[language]&lt;/url&gt;" dest="5">
				<expression />
			</RegExp>
			<expression noclean="1" />
		</RegExp>
	</GetTMDBPlotByIdChain>
	<ParseTMDBPlot dest="5">
		<RegExp input="$$2" output="&lt;details&gt;\1&lt;/details&gt;" dest="5">
			<RegExp input="$$1" output="\1" dest="9">
				<expression clear="yes" fixchars="1">&quot;overview&quot;:&quot;(.*?)&quot;,</expression>
			</RegExp>
			<RegExp input="$$9" output="&lt;url function=&quot;ParseFallbackTMDBPlot&quot; cache=&quot;tmdb-en-$$8.json&quot;&gt;http://api.themoviedb.org/3/movie/$$8?api_key=57983e31fb435df4df77afb854740ea9&amp;language=en&lt;/url&gt;" dest="2">
				<expression>^$</expression>
			</RegExp>
			<RegExp input="$$9" output="&lt;plot&gt;\1&lt;/plot&gt;" dest="2">
				<expression>(.+)</expression>
			</RegExp>
			<expression noclean="1" />
		</RegExp>
	</ParseTMDBPlot>
	<ParseFallbackTMDBPlot dest="5">
		<RegExp input="$$2" output="&lt;details&gt;\1&lt;/details&gt;" dest="5">
			<RegExp input="$$1" output="&lt;plot&gt;\1&lt;/plot&gt;" dest="2">
				<expression clear="yes" fixchars="1">&quot;overview&quot;:&quot;(.*?)&quot;,</expression>
			</RegExp>
			<expression noclean="1" />
		</RegExp>
	</ParseFallbackTMDBPlot>

	<GetTMDBSetByIdChain dest="4">
		<RegExp input="$$5" output="&lt;details&gt;\1&lt;/details&gt;" dest="4">
			<RegExp input="$$1" output="&lt;url function=&quot;ParseTMDBSet&quot; cache=&quot;tmdb-$INFO[language]-\1.json&quot;&gt;http://api.themoviedb.org/3/movie/\1?api_key=57983e31fb435df4df77afb854740ea9&amp;language=$INFO[language]&lt;/url&gt;" dest="5">
				<expression />
			</RegExp>
			<expression noclean="1" />
		</RegExp>
	</GetTMDBSetByIdChain>
	<ParseTMDBSet dest="5">
		<RegExp input="$$2" output="&lt;details&gt;\1&lt;/details&gt;" dest="5">
			<RegExp input="$$1" output="&lt;set&gt;\1&lt;/set&gt;" dest="2">
				<expression noclean="1">&quot;belongs_to_collection&quot;:{&quot;id&quot;:[0-9]+,&quot;name&quot;:&quot;([^&quot;]*)</expression>
			</RegExp>
			<expression noclean="1" />
		</RegExp>
	</ParseTMDBSet>

	<GetTMDBCastByIdChain dest="4">
		<RegExp input="$$5" output="&lt;details&gt;\1&lt;/details&gt;" dest="4">
			<RegExp input="$$1" output="&lt;url function=&quot;ParseTMDBCast&quot; cache=&quot;tmdb-cast-\1.json&quot;&gt;http://api.themoviedb.org/3/movie/\1/casts?api_key=57983e31fb435df4df77afb854740ea9&lt;/url&gt;" dest="5">
				<expression />
			</RegExp>
			<expression noclean="1" />
		</RegExp>
	</GetTMDBCastByIdChain>
	<ParseTMDBCast dest="5">
		<RegExp input="$$2" output="&lt;details&gt;\1&lt;/details&gt;" dest="5">
			<RegExp input="$$1" output="\1" dest="7">
				<expression clear="yes" noclean="1">&quot;cast&quot;:\[([^\]]*)</expression>
			</RegExp>
			<RegExp input="$$7" output="&lt;actor&gt;&lt;name&gt;\1&lt;/name&gt;&lt;role&gt;\2&lt;/role&gt;&lt;/actor&gt;" dest="2">
				<expression repeat="yes" fixchars="1">&quot;name&quot;:&quot;([^&quot;]*)&quot;,&quot;character&quot;:&quot;([^&quot;]*)</expression>
			</RegExp>
			<RegExp input="$$7" output="&lt;actor&gt;&lt;name&gt;\1&lt;/name&gt;&lt;role&gt;\2&lt;/role&gt;&lt;thumb&gt;http://cf2.imgobject.com/t/p/original\3&lt;/thumb&gt;&lt;/actor&gt;" dest="2+">
				<expression repeat="yes" fixchars="1">&quot;name&quot;:&quot;([^&quot;]*)&quot;,&quot;character&quot;:&quot;([^&quot;]*)&quot;,&quot;order&quot;:[0-9]*,&quot;profile_path&quot;:&quot;([^&quot;]*)&quot;</expression>
			</RegExp>
			<expression noclean="1" />
		</RegExp>
	</ParseTMDBCast>

	<GetTMDBDirectorsByIdChain dest="4">
		<RegExp input="$$5" output="&lt;details&gt;\1&lt;/details&gt;" dest="4">
			<RegExp input="$$1" output="&lt;url function=&quot;ParseTMDBDirectors&quot; cache=&quot;tmdb-cast-\1.json&quot;&gt;http://api.themoviedb.org/3/movie/\1/casts?api_key=57983e31fb435df4df77afb854740ea9&lt;/url&gt;" dest="5">
				<expression />
			</RegExp>
			<expression noclean="1" />
		</RegExp>
	</GetTMDBDirectorsByIdChain>
	<ParseTMDBDirectors dest="5">
		<RegExp input="$$2" output="&lt;details&gt;\1&lt;/details&gt;" dest="5">
			<RegExp input="$$1" output="\1" dest="7">
				<expression clear="yes" noclean="1">&quot;crew&quot;:\[([^\]]*)</expression>
			</RegExp>
			<RegExp input="$$7" output="&lt;director&gt;\1&lt;/director&gt;" dest="2">
				<expression repeat="yes" fixchars="1">&quot;name&quot;:&quot;([^&quot;]*)&quot;,&quot;department&quot;:&quot;Directing&quot;,&quot;job&quot;:&quot;Director&quot;</expression>
			</RegExp>
			<expression noclean="1" />
		</RegExp>
	</ParseTMDBDirectors>

	<GetTMDBWitersByIdChain dest="4">
		<RegExp input="$$5" output="&lt;details&gt;\1&lt;/details&gt;" dest="4">
			<RegExp input="$$1" output="&lt;url function=&quot;ParseTMDBWriters&quot; cache=&quot;tmdb-cast-\1.json&quot;&gt;http://api.themoviedb.org/3/movie/\1/casts?api_key=57983e31fb435df4df77afb854740ea9&lt;/url&gt;" dest="5">
				<expression />
			</RegExp>
			<expression noclean="1" />
		</RegExp>
	</GetTMDBWitersByIdChain>
	<ParseTMDBWriters dest="5">
		<RegExp input="$$2" output="&lt;details&gt;\1&lt;/details&gt;" dest="5">
			<RegExp input="$$1" output="\1" dest="7">
				<expression clear="yes" noclean="1">&quot;crew&quot;:\[([^\]]*)</expression>
			</RegExp>
			<RegExp input="$$7" output="&lt;credits&gt;\1&lt;/credits&gt;" dest="2">
				<expression repeat="yes" fixchars="1">&quot;name&quot;:&quot;([^&quot;]*)&quot;,&quot;department&quot;:&quot;Writing&quot;,</expression>
			</RegExp>
			<expression noclean="1" />
		</RegExp>
	</ParseTMDBWriters>

	<GetTMDBGenresByIdChain dest="4">
		<RegExp input="$$5" output="&lt;details&gt;\1&lt;/details&gt;" dest="4">
			<RegExp input="$$1" output="&lt;url function=&quot;ParseTMDBGenres&quot; cache=&quot;tmdb-$INFO[language]-\1.json&quot;&gt;http://api.themoviedb.org/3/movie/\1?api_key=57983e31fb435df4df77afb854740ea9&amp;language=$INFO[language]&lt;/url&gt;" dest="5">
				<expression />
			</RegExp>
			<expression noclean="1" />
		</RegExp>
	</GetTMDBGenresByIdChain>
	<ParseTMDBGenres dest="5">
		<RegExp input="$$2" output="&lt;details&gt;\1&lt;/details&gt;" dest="5">
			<RegExp input="$$1" output="\1" dest="7">
				<expression clear="yes" noclean="1">&quot;genres&quot;:\[([^\]]*)</expression>
			</RegExp>
			<RegExp input="$$7" output="&lt;genre&gt;\1&lt;/genre&gt;" dest="2">
				<expression repeat="yes" fixchars="1">&quot;name&quot;:&quot;([^&quot;]*)</expression>
			</RegExp>
			<expression noclean="1" />
		</RegExp>
	</ParseTMDBGenres>

	<GetTMDBRatingByIdChain dest="4">
		<RegExp input="$$5" output="&lt;details&gt;\1&lt;/details&gt;" dest="4">
			<RegExp input="$$1" output="&lt;url function=&quot;ParseTMDBRating&quot; cache=&quot;tmdb-$INFO[language]-\1.json&quot;&gt;http://api.themoviedb.org/3/movie/\1?api_key=57983e31fb435df4df77afb854740ea9&amp;language=$INFO[language]&lt;/url&gt;" dest="5">
				<expression />
			</RegExp>
			<expression noclean="1" />
		</RegExp>
	</GetTMDBRatingByIdChain>
	<ParseTMDBRating dest="5">
		<RegExp input="$$2" output="&lt;details&gt;\1&lt;/details&gt;" dest="5">
			<RegExp input="$$1" output="&lt;rating&gt;\1&lt;/rating&gt;" dest="2">
				<expression noclean="1">&quot;vote_average&quot;:([^,]*),&quot;</expression>
			</RegExp>
			<RegExp input="$$1" output="&lt;votes&gt;\1&lt;/votes&gt;" dest="2+">
				<expression noclean="1">&quot;vote_count&quot;:([0-9]+)</expression>
			</RegExp>
			<expression noclean="1" />
		</RegExp>
	</ParseTMDBRating>

	<GetTMDBTrailerByIdChain dest="4">
		<RegExp input="$$5" output="&lt;details&gt;\1&lt;/details&gt;" dest="4">
			<RegExp input="$$1" output="&lt;url function=&quot;ParseTMDBTrailer&quot; cache=&quot;tmdb-trailer-$INFO[language]-\1.json&quot;&gt;http://api.themoviedb.org/3/movie/\1/trailers?api_key=57983e31fb435df4df77afb854740ea9&lt;/url&gt;" dest="5">
				<expression>^([0-9]+)$</expression>
			</RegExp>
			<expression noclean="1" />
		</RegExp>
	</GetTMDBTrailerByIdChain>
	<ParseTMDBTrailer dest="5">
		<RegExp input="$$2" output="&lt;details&gt;\1&lt;/details&gt;" dest="5">
			<RegExp input="$$1" output="\1" dest="7">
				<expression clear="yes" noclean="1">&quot;youtube&quot;:\[{([^\]]*)</expression>
			</RegExp>
			<RegExp input="$$7" output="&lt;trailer&gt;plugin://plugin.video.youtube/?action=play_video&amp;videoid=\1&lt;/trailer&gt;" dest="2">
				<expression noclean="1">&quot;source&quot;:&quot;([^&quot;]*)</expression>
			</RegExp>
			<expression noclean="1">(.+)</expression>
		</RegExp>
	</ParseTMDBTrailer>

	<GetTMDBFanartByIdChain dest="4">
		<RegExp input="$$5" output="&lt;details&gt;\1&lt;/details&gt;" dest="4">
			<RegExp input="$$1" output="&lt;url function=&quot;ParseTMDBFanart&quot; cache=&quot;tmdb-images-\1.json&quot;&gt;http://api.themoviedb.org/3/movie/\1/images?api_key=57983e31fb435df4df77afb854740ea9&lt;/url&gt;" dest="5">
				<expression />
			</RegExp>
			<expression noclean="1" />
		</RegExp>
	</GetTMDBFanartByIdChain>
	<GetTMDBFanartById dest="4">
		<RegExp input="$$5" output="&lt;details&gt;\1&lt;/details&gt;" dest="4">
			<RegExp input="$$1" output="&lt;url function=&quot;ParseTMDBFanart&quot; cache=&quot;tmdb-images-\1.json&quot;&gt;http://api.themoviedb.org/3/movie/\1/images?api_key=57983e31fb435df4df77afb854740ea9&lt;/url&gt;" dest="5">
				<expression />
			</RegExp>
			<expression noclean="1" />
		</RegExp>
	</GetTMDBFanartById>
	<ParseTMDBFanart dest="5">
		<RegExp input="$$2" output="&lt;details&gt;&lt;fanart&gt;\1&lt;/fanart&gt;&lt;/details&gt;" dest="5">
			<RegExp input="$$1" output="\1" dest="7">
				<expression clear="yes" noclean="1">&quot;backdrops&quot;:\[{([^\]]*)</expression>
			</RegExp>
			<RegExp input="$$7" output="&lt;thumb preview=&quot;http://cf2.imgobject.com/t/p/w780\1&quot;&gt;http://cf2.imgobject.com/t/p/original\1&lt;/thumb&gt;" dest="2">
				<expression repeat="yes" noclean="1">&quot;file_path&quot;:&quot;([^&quot;]*)</expression>
			</RegExp>
			<expression noclean="1">(.+)</expression>
		</RegExp>
	</ParseTMDBFanart>

	<GetTMDBThumbsByIdChain dest="4">
		<RegExp input="$$5" output="&lt;details&gt;\1&lt;/details&gt;" dest="4">
			<RegExp input="$$1" output="&lt;url function=&quot;ParseTMDBThumbs&quot; cache=&quot;tmdb-images-$INFO[language]-\1.json&quot;&gt;http://api.themoviedb.org/3/movie/\1/images?api_key=57983e31fb435df4df77afb854740ea9&amp;language=$INFO[language]&lt;/url&gt;" dest="5">
				<expression />
			</RegExp>
			<expression noclean="1" />
		</RegExp>
	</GetTMDBThumbsByIdChain>
	<GetTMDBThumbsById dest="4">
		<RegExp input="$$5" output="&lt;details&gt;\1&lt;/details&gt;" dest="4">
			<RegExp input="$$1" output="&lt;url function=&quot;ParseTMDBThumbs&quot; cache=&quot;tmdb-images-$INFO[language]-\1.json&quot;&gt;http://api.themoviedb.org/3/movie/\1/images?api_key=57983e31fb435df4df77afb854740ea9&amp;language=$INFO[language]&lt;/url&gt;" dest="5">
				<expression />
			</RegExp>
			<expression noclean="1" />
		</RegExp>
	</GetTMDBThumbsById>
	<ParseTMDBThumbs dest="5">
		<RegExp input="$$2" output="&lt;details&gt;\1&lt;/details&gt;" dest="5">
			<RegExp input="$$1" output="&lt;url function=&quot;ParseTMDBAllThumbs&quot; cache=&quot;tmdb-images-\1.json&quot;&gt;http://api.themoviedb.org/3/movie/\1/images?api_key=57983e31fb435df4df77afb854740ea9&lt;/url&gt;" dest="2">
				<expression noclean="1">&quot;id&quot;:([0-9]*),</expression>
			</RegExp>
			<RegExp input="$$1" output="\1" dest="7">
				<expression clear="yes" noclean="1">&quot;posters&quot;:\[{([^\]]*)</expression>
			</RegExp>
			<RegExp input="$$7" output="&lt;thumb preview=&quot;http://cf2.imgobject.com/t/p/w500\1&quot;&gt;http://cf2.imgobject.com/t/p/original\1&lt;/thumb&gt;" dest="2+">
				<expression repeat="yes" noclean="1">&quot;file_path&quot;:&quot;([^&quot;]*)</expression>
			</RegExp>
			<expression noclean="1">(.+)</expression>
		</RegExp>
	</ParseTMDBThumbs>
	<ParseTMDBAllThumbs dest="5">
		<RegExp input="$$2" output="&lt;details&gt;\1&lt;/details&gt;" dest="5">
			<RegExp input="$$1" output="\1" dest="7">
				<expression clear="yes" noclean="1">&quot;posters&quot;:\[{([^\]]*)</expression>
			</RegExp>
			<RegExp input="$$7" output="&lt;thumb preview=&quot;http://cf2.imgobject.com/t/p/w500\1&quot;&gt;http://cf2.imgobject.com/t/p/original\1&lt;/thumb&gt;" dest="2">
				<expression repeat="yes" noclean="1">&quot;file_path&quot;:&quot;([^&quot;]*)</expression>
			</RegExp>
			<expression noclean="1">(.+)</expression>
		</RegExp>
	</ParseTMDBAllThumbs>

</scraperfunctions>