-
Notifications
You must be signed in to change notification settings - Fork 1
/
filmweb.xml
455 lines (417 loc) · 25.5 KB
/
filmweb.xml
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
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
<?xml version="1.0" encoding="UTF-8"?>
<!--
GLOBALNE:
$$20 - Filmweb ID
$$18 - TMDb ID
$$17 - Tytuł polski
$$16 - Tytuł oryginalny z przedrostkiem z przodu.
$$15 - Rok
$$11 - URL do filmu
!-->
<scraper framework="1.1" date="2020-02-11">
<!-- Sprawdza plik NFO !-->
<NfoUrl dest="3">
<RegExp conditional="NFOUrl" input="$$1" output="<url>http://www.filmweb.pl/\1</url>" dest="3">
<expression>filmweb.pl/((film/)?([-a-zA-Z0-9@:%\._\+~#=\?]+))</expression>
</RegExp>
<RegExp conditional="NFOUrl" input="$$1" output="<url cache="filmweb-\1">http://www.filmweb.pl/Film?id=\1</url>" dest="3">
<expression>^([0-9]+)$</expression>
</RegExp>
</NfoUrl>
<!-- Tworzy adres URL wyszukiwania !-->
<CreateSearchUrl dest="3">
<RegExp conditional="!SearchAlt" input="$$1" output="<url>http://www.filmweb.pl/films/search?endYear=$$2&q=\1&startYear=$$2&startCount=10</url>" dest="3">
<expression />
</RegExp>
<!-- Alternatywna wyszukiwarka !-->
<RegExp conditional="SearchAlt" input="$$1" output="<url>http://www.filmweb.pl/search/live?q=%22\1%22%20$$2</url>" dest="3">
<expression />
</RegExp>
</CreateSearchUrl>
<!-- Tworzy adresy URL dla znalezionych pozycji !-->
<GetSearchResults dest="8">
<RegExp input="$$5" output="<results sorted="yes">\1</results>" dest="8">
<RegExp conditional="!SearchAlt" input="$$1" output="<entity><title>\2\6\5\6\4</title><year>\7\8</year><url>https://www.filmweb.pl\1</url></entity>" dest="5">
<expression fixchars="2,4" noclean="2,4,6" repeat="yes">preview__link" href="([^";]+)">([^<]+)(.*?preview__originalTitle">([^<]+)<([^*])div><div([^*])class="preview__year".*?>([0-9]+)<|.*?preview__year".*?>([0-9]+))</expression>
</RegExp>
<!-- Alternatywna wyszukiwarka !-->
<RegExp conditional="SearchAlt" input="$$1" output="<entity><title>\3 / \2</title><year>\4</year><url>http://www.filmweb.pl/Film?id=\1</url></entity>" dest="5">
<expression repeat="yes" fixchars="2,3" trim="2,3">f\\c([0-9]+)\\[^\\]+\\c([^\\]+)\\c([^\\]+)\\c[^\\]+\\c([0-9]+)\\c</expression>
</RegExp>
<expression noclean="1" />
</RegExp>
</GetSearchResults>
<!-- Pobiera podstawowe informacje !-->
<GetDetails clearbuffers="no" dest="3">
<RegExp input="$$5" output="<details>\1</details>" dest="3">
<!-- FILMWEB ID !-->
<RegExp input="$$20" output="<id_filmweb>\1</id_filmweb>" dest="5">
<RegExp input="$$1" output="\1" dest="20">
<expression>data-film-id="([0-9]*)"</expression>
</RegExp>
<expression />
</RegExp>
<!-- FILMWEB URL !-->
<RegExp input="$$1" output="\1" dest="11">
<expression>og:url" content="([^"]+)"</expression>
</RegExp>
<!-- TITLE !-->
<RegExp input="$$6" output="\1" dest="5+">
<RegExp input="$$1" output="\1" dest="17">
<expression fixchars="1">filmCoverSection__title--large" itemprop="name">([^<]+)<</expression>
</RegExp>
<RegExp input="$$1" output="\1" dest="17">
<expression fixchars="1">filmCoverSection__title " itemprop="name">([^<]+)<</expression>
</RegExp>
<RegExp conditional="!UseOriginalTitle" input="$$17" output="<title>\1</title>" dest="6">
<expression />
</RegExp>
<RegExp conditional="UseOriginalTitle" input="$$17" output="<originaltitle>\1</originaltitle>" dest="6">
<expression />
</RegExp>
<expression noclean="1" />
</RegExp>
<!-- ORIGINALTITLE !-->
<RegExp input="$$6" output="\1" dest="5+">
<RegExp input="$$17" output="\1" dest="16">
<expression />
</RegExp>
<RegExp input="$$1" output="\1" dest="16">
<expression fixchars="1">filmCoverSection__originalTitle">([^<]+)<</expression>
</RegExp>
<RegExp conditional="!UseOriginalTitle" input="$$16" output="<originaltitle>\1</originaltitle>" dest="6">
<expression />
</RegExp>
<RegExp conditional="UseOriginalTitle" input="$$16" output="<title>\1</title>" dest="6">
<expression />
</RegExp>
<expression noclean="1" />
</RegExp>
<!-- YEAR !-->
<RegExp input="$$15" output="<year>\1</year>" dest="5+">
<RegExp input="$$1" output="\1" dest="15">
<expression>filmCoverSection__year">([0-9]+)<</expression>
</RegExp>
<expression />
</RegExp>
<!-- TMDbSearch - Wyszukuje TMDbID !-->
<RegExp input="$$16" output="<url function="TMDbSearchByOriginalTitle">http://api.themoviedb.org/3/search/movie?api_key=1009b5cde25c7b0692d51a7db6e49cbd&query=\1&year=$$15</url>" dest="5+">
<expression encode="1" />
</RegExp>
<expression noclean="1" />
</RegExp>
</GetDetails>
<!-- Wyszukuje TMDb ID po oryginalnym tytule !-->
<TMDbSearchByOriginalTitle clearbuffers="no" dest="3">
<!-- Zapisuje TMDb ID do $$18 !-->
<RegExp input="$$5" output="<details>\1</details>" dest="3">
<!-- Wyszukuje TMDb ID po polskim tytule jeśli nie znaleziono po oryginalnym !-->
<RegExp input="$$17" output="<url function="TMDbSearchByPolishTitle">http://api.themoviedb.org/3/search/movie?api_key=1009b5cde25c7b0692d51a7db6e49cbd&query=\1&year=$$15</url>" dest="5">
<expression encode="1" />
</RegExp>
<RegExp input="$$18" output="<url cache="filmweb-$$20" function="GetDetailsExtended">http://www.filmweb.pl/Film?id=$$20</url>" dest="5">
<!-- Zapisuje TMDb ID do $$18 !-->
<RegExp input="$$1" output="\1" dest="18">
<expression clear="yes">"id":([0-9]+),"</expression>
</RegExp>
<expression>(.+)</expression>
</RegExp>
<expression noclean="1" />
</RegExp>
</TMDbSearchByOriginalTitle>
<!-- Wyszukuje TMDb ID po polskim tytule !-->
<TMDbSearchByPolishTitle clearbuffers="no" dest="3">
<!-- Zapisuje TMDb ID do $$18 !-->
<RegExp input="$$1" output="\1" dest="18">
<expression clear="yes">"id":([0-9]+),"</expression>
</RegExp>
<RegExp input="" output="<details><url cache="filmweb-$$20" function="GetDetailsExtended">http://www.filmweb.pl/Film?id=$$20</url></details>" dest="3">
<expression />
</RegExp>
</TMDbSearchByPolishTitle>
<!-- Pobiera pozostałe informacje !-->
<GetDetailsExtended clearbuffers="no" dest="3">
<RegExp input="$$5" output="<details>\1</details>" dest="3">
<!-- Szukaj IMDb ID !-->
<RegExp input="$$18" output="<url cache="tmdb-$INFO[language]-\1.json" function="TMDbIDtoIMDbID">http://api.themoviedb.org/3/movie/\1?api_key=1009b5cde25c7b0692d51a7db6e49cbd&language=$INFO[language]</url>" dest="5">
<expression clear="yes">(.+)</expression>
</RegExp>
<!-- TRAILER -->
<RegExp conditional="GetTrailer" input="$$6" output="\1" dest="5+">
<!-- TMDB TRAILER !-->
<RegExp input="$$18" output="<chain function="GetTMDBTrailerByIdChain">\1::$INFO[language]</chain>" dest="6">
<expression clear="yes">(.+)</expression>
</RegExp>
<!-- FILMWEB TRAILER !-->
<RegExp input="$$1" output="<url function="TRAILER">http://www.filmweb.pl\1</url>" dest="6">
<expression>itemprop="trailer"?.+itemprop="url" href="([^"]+)</expression>
</RegExp>
<expression noclean="1" />
</RegExp>
<!-- DIRECTOR !-->
<RegExp input="$$6" output="\1" dest="5+">
<!-- TMDB DIRECTOR !-->
<RegExp input="$$18" output="<chain function="GetTMDBDirectorsByIdChain">\1</chain>" dest="6">
<expression clear="yes">(.+)</expression>
</RegExp>
<!-- FILMWEB DIRECTOR !-->
<RegExp input="$$1" output="<director>\1</director>" dest="6">
<expression repeat="yes" fixchars="1">title="([^"]+)" itemprop="director"</expression>
</RegExp>
<expression noclean="1">(.+)</expression>
</RegExp>
<!-- WRITER (CREDITS) !-->
<RegExp input="$$6" output="\1" dest="5+">
<!-- TMDB WRITER !-->
<RegExp input="$$18" output="<chain function="GetTMDBWitersByIdChain">\1</chain>" dest="6">
<expression clear="yes">(.+)</expression>
</RegExp>
<!-- FILMWEB WRITER !-->
<RegExp input="$$1" output="<credits>\1</credits>" dest="6">
<expression repeat="yes" fixchars="1">title="([^"]+)" itemprop="creator"</expression>
</RegExp>
<expression noclean="1">(.+)</expression>
</RegExp>
<!-- GENRES !-->
<RegExp input="$$6" output="\1" dest="5+">
<!-- TMDB GENRES !-->
<RegExp input="$$18" output="<chain function="GetTMDBGenresByIdChain">\1::$INFO[language]</chain>" dest="6">
<expression clear="yes">(.+)</expression>
</RegExp>
<!-- FILMWEB GENRES !-->
<RegExp conditional="!GetAlwaysTMDbGenre" input="$$1"output="<genre>\1</genre>" dest="6">
<expression repeat="yes" fixchars="1">itemprop="genre">([^<]+)</expression>
</RegExp>
<expression noclean="1">(.+)</expression>
</RegExp>
<!-- TAGLINE !-->
<RegExp input="$$6" output="\1" dest="5+">
<!-- TMDB TAGLINE !-->
<RegExp input="$$18" output="<chain function="GetTMDBTaglineByIdChain">\1::$INFO[language]</chain>" dest="6">
<expression clear="yes">(.+)</expression>
</RegExp>
<!-- FILMWEB TAGLINE !-->
<RegExp input="$$7" output="<tagline>\1</tagline>" dest="6">
<RegExp input="$$1" output="\1" dest="7">
<expression clear="yes" fixchars="1">reviewBox__title[^>]+> <span>([^<]+)<\/span</expression>
</RegExp>
<expression>(.+)</expression>
</RegExp>
<expression noclean="1">(.+)</expression>
</RegExp>
<!-- RATING !-->
<RegExp input="$$6" output="\1" dest="5+">
<!-- TMDB RATING !-->
<RegExp input="$$18" output="<chain function="GetTMDBRatingByIdChain">\1::$INFO[language]</chain>" dest="6">
<expression clear="yes">(.+)</expression>
</RegExp>
<!-- FILMWEB RATING !-->
<RegExp input="$$1" output="<rating>\1.\2</rating>" dest="6">
<expression>ratingValue"> ([0-9]*),([0-9]*)<</expression>
</RegExp>
<expression noclean="1">(.+)</expression>
</RegExp>
<!-- VOTES !-->
<RegExp input="$$6" output="\1" dest="5+">
<!-- TMDB VOTES !-->
<RegExp input="$$18" output="<chain function="GetTMDBRatingByIdChain">\1::$INFO[language]</chain>" dest="6">
<expression clear="yes">(.+)</expression>
</RegExp>
<!-- FILMWEB VOTES !-->
<RegExp input="$$1" output="<votes>\1</votes>" dest="6">
<expression>ratingCount">([0-9]*)<</expression>
</RegExp>
<expression noclean="1">(.+)</expression>
</RegExp>
<!-- OUTLINE !-->
<RegExp input="$$6" output="\1" dest="5+">
<RegExp input="$$1" output="<outline>\1</outline>" dest="6">
<expression fixchars="1" clear="yes">filmPosterSection__plot clamped"><span itemprop="description">([^<]+)<</expression>
</RegExp>
<expression noclean="1">(.+)</expression>
</RegExp>
<!-- COUNTRY !-->
<RegExp input="$$6" output="\1" dest="5+">
<!-- TMDB COUNTRY !-->
<RegExp input="$$18" output="<chain function="GetTMDBCountryByIdChain">\1::$INFO[language]</chain>" dest="6">
<expression clear="yes">(.+)</expression>
</RegExp>
<!-- FILMWEB COUNTRY !-->
<RegExp input="$$7" output="<country>\1</country>" dest="6">
<RegExp input="$$1" output="\1" dest="7">
<expression noclean="1" clear="yes">produkcja<\/span>(.*?)<\/h3</expression>
</RegExp>
<expression repeat="yes">filmMainHeader">([^<]+)</expression>
</RegExp>
<expression noclean="1">(.+)</expression>
</RegExp>
<!-- STUDIO !-->
<RegExp input="$$6" output="\1" dest="5+">
<!-- TMDB STUDIO !-->
<RegExp input="$$18" output="<chain function="GetTMDBStudioByIdChain">\1::$INFO[language]</chain>" dest="6">
<expression clear="yes">(.+)</expression>
</RegExp>
<!-- FILMWEB STUDIO !-->
<RegExp input="$$7" conditional="!GetAlwaysTMDbStudio" output="<studio>\1</studio>" dest="6">
<RegExp input="$$1" output="\1" dest="7">
<expression clear="yes">studio<\/span>(.*?)<\/h3</expression>
</RegExp>
<expression>filmInfo__info">([^<]+)</expression>
</RegExp>
<expression noclean="1">(.+)</expression>
</RegExp>
<!-- PLOT !-->
<RegExp input="$$6" output="\1" dest="5+">
<!-- TMDB PLOT !-->
<RegExp input="$$18" output="<chain function="GetTMDBPlotByIdChain">\1::$INFO[language]</chain>" dest="6">
<expression clear="yes">(.+)</expression>
</RegExp>
<!-- FILMWEB PLOT !-->
<RegExp input="$$1" output="<plot>\1</plot>" dest="6">
<expression fixchars="1">descriptionSection__text">([^<]+)<</expression>
</RegExp>
<RegExp input="$$1" output="<plot>\1</plot>" dest="6">
<expression fixchars="1">descriptionSection__moreText hide">([^<]+)<</expression>
</RegExp>
<expression noclean="1">(.+)</expression>
</RegExp>
<!-- ACTORS !-->
<RegExp input="$$6" output="\1" dest="5+">
<!-- TMDB ACTORS !-->
<RegExp input="$$18" output="<chain function="GetTMDBCastByIdChain">\1</chain>" dest="6">
<expression clear="yes">(.+)</expression>
</RegExp>
<!-- FILMWEB ACTORS !-->
<RegExp input="$$7" conditional="!GetFullActors" output="<actor><thumb>\23\3</thumb><name>\5\6</name><role>\7</role></actor>" dest="6">
<RegExp input="$$1" output="\1" dest="7">
<expression noclean="1" clear="yes">filmMainCast">Obsada(.*?)<\/section></expression>
</RegExp>
<expression repeat="yes" fixchars="5,6,7">(data-image="([^\.]+\.[^\.]+\.)\d([^"]+)"|data-image="").*?(simplePoster__title" data-person-source>([^<]+)<\/h3><\/a><\/div><\/div>|simplePoster__title" data-person-source>([^<]+)<.*?alternateName">(.*?)<div class)</expression>
</RegExp>
<RegExp input="" conditional="GetFullActors" output="<url function="AKTORZY">$$11/cast/actors</url>" dest="6">
<expression/>
</RegExp>
<expression noclean="1">(.+)</expression>
</RegExp>
<!-- THUMB !-->
<RegExp input="$$6" output="\1" dest="5+">
<!-- TMDB THUMB !-->
<RegExp input="$$18" output="<chain function="GetTMDBThumbsByIdChain">\1::$INFO[language]</chain>" dest="6">
<expression clear="yes">(.+)</expression>
</RegExp>
<!-- FILMWEB THUMB !-->
<RegExp input="$$1" output="<thumb aspect="poster" preview="\12.jpg">\13.jpg</thumb>" dest="7">
<expression clear="yes"><img id="filmPoster" itemprop="image" content="([^\.]+\.[^\.]+\.)\d([^"]+)"</expression>
</RegExp>
<RegExp input="" conditional="GetAlwaysFilmwebThumb" output="<url function="PLAKAT">$$11/posters</url>" dest="7+">
<expression/>
</RegExp>
<RegExp conditional="GetAlwaysTMDbThumb" input="$$7" output="\1" dest="6+">
<expression noclean="1">(.+)</expression>
</RegExp>
<RegExp conditional="!GetAlwaysTMDbThumb" input="$$7" output="\1" dest="6">
<expression noclean="1">(.+)</expression>
</RegExp>
<expression noclean="1">(.+)</expression>
</RegExp>
<!-- FANART !-->
<RegExp input="$$6" output="\1" dest="5+">
<!-- TMDB FANART !-->
<RegExp input="$$18" output="<chain function="GetTMDBFanartByIdChain">\1::$INFO[language]</chain>" dest="6">
<expression clear="yes">(.+)</expression>
</RegExp>
<!-- FILMWEB FANART !-->
<RegExp input="" output="<url function="FANART">$$11/photos</url>" dest="6+">
<expression/>
</RegExp>
<expression noclean="1">(.+)</expression>
</RegExp>
<!-- SETS !-->
<RegExp input="$$18" output="<chain function="GetTMDBSetByIdChain">\1::$INFO[language]</chain>" dest="5+">
<expression>(.+)</expression>
</RegExp>
<!-- MPAA !-->
<RegExp input="$$18" output="<chain function="GetTMDBCertificationsByIdChain">\1::$INFO[tmdbcertcountry]::$INFO[certprefix]</chain>" dest="5+">
<expression>(.+)</expression>
</RegExp>
<expression noclean="1" />
</RegExp>
</GetDetailsExtended>
<!-- Zapisuje IMDB ID !-->
<TMDbIDtoIMDbID clearbuffers="no" dest="3">
<RegExp input="$$1" output="<details><id>\1</id></details>" dest="3">
<expression clear="yes">imdb_id":"([t0-9]+)</expression>
</RegExp>
</TMDbIDtoIMDbID>
<!-- Funkcja dodaje jeden fanart na końcu listy fanartów !-->
<FANART clearbuffers="no" dest="3">
<RegExp input="$$1" output="<details><fanart><thumb preview="\13.jpg">\11.jpg</thumb></fanart></details>" dest="3">
<expression clear="yes">gallery__container".*?data-photo="([^\.]+\.[^\.]+\.)\d([^"]+)"</expression>
</RegExp>
<expression noclean="1">(.+)</expression>
</FANART>
<!-- Funkcja dodaje dodatkowe plakaty z Filmweb !-->
<PLAKAT clearbuffers="no" dest="3">
<RegExp input="$$7" output="<details>\1</details>" dest="3">
<RegExp input="$$1" output="<thumb aspect="poster" preview="\12.jpg">\13.jpg</thumb>" dest="7">
<expression repeat="yes">data-country=us.*?simplePoster__image".*?src="([^\.]+\.[^\.]+\.)\d([^"]+)"</expression>
</RegExp>
<RegExp input="$$1" output="<thumb aspect="poster" preview="\12.jpg">\13.jpg</thumb>" dest="7">
<expression repeat="yes">data-country=pl.*?simplePoster__image".*?src="([^\.]+\.[^\.]+\.)\d([^"]+)"</expression>
</RegExp>
<expression noclean="1">(.+)</expression>
</RegExp>
</PLAKAT>
<!-- Funkcja pobiera pełną obsadę z Filmweb !-->
<AKTORZY clearbuffers="no" dest="3">
<RegExp input="$$7" output="<details>\1</details>" dest="3">
<RegExp input="$$1" output="<actor><thumb>\21\3</thumb><name>\4</name><role>\5</role></actor>" dest="7">
<expression repeat="yes" clear="yes" trim="5" fixchars="4,5">(data-src="([^\.]+\.[^\.]+\.)\d([^"]+)" alt=""|src="[^"]+" alt="")[^<]+<[^<]+<[^<]+<[^<]+<[^<]+<[^>]+>([^<]+)<\/a> ([^\.]+?)<\/div</expression>
</RegExp>
<expression noclean="1">(.+)</expression>
</RegExp>
</AKTORZY>
<!-- Funkcja wyszukuje trailer !-->
<TRAILER clearbuffers="no" dest="3">
<RegExp input="$$6" output="<details>\1</details>" dest="3">
<RegExp input="$$4" output="<trailer>\1</trailer>" dest="6">
<RegExp input="$$1" output="\1" dest="5">
<expression noclean="1" clear="yes">"video-pane"(.*?)"video-description"</expression>
</RegExp>
<RegExp input="$$5" output="\1" dest="4">
<expression clear="yes">source src="?([^"]+)"?</expression>
</RegExp>
<RegExp input="$$5" output="\1" dest="4">
<expression>param name="?movie"? value="?([^"]+)"?</expression>
</RegExp>
<RegExp input="$$5" output="\1" dest="4">
<expression>param name="?filename"? value="?([^"]+)"?</expression>
</RegExp>
<RegExp input="$$5" output="\1" dest="4">
<expression>videoLink[^\]]+url[^quot;]+"([^"]+)"[^quot;]+res[^quot;]+"sd"</expression>
</RegExp>
<RegExp input="$$5" output="\1" dest="4">
<expression>videoLink[^\]]+url[^quot;]+"([^"]+360p[^"]+)"[^quot;]+res[^quot;]+"sd"</expression>
</RegExp>
<RegExp input="$$5" output="\1" dest="4">
<expression>videoLink[^\]]+url[^quot;]+"([^"]+480p[^"]+)"[^quot;]+res[^quot;]+"sd"</expression>
</RegExp>
<RegExp input="$$5" output="\1" dest="4">
<expression>videoLink[^\]]+url[^quot;]+"([^"]+)"[^quot;]+res[^quot;]+"hd"</expression>
</RegExp>
<RegExp input="$$5" output="\1" dest="4">
<expression>source src="([^"]+)" type=.video/quicktime</expression>
</RegExp>
<RegExp input="$$5" output="plugin://plugin.video.youtube/play/?play=1&video_id=\1" dest="4">
<expression>"http://www.youtube.com/v/([^"]+)"</expression>
</RegExp>
<expression noclean="1" clear="yes">(.+)</expression>
</RegExp>
<!-- TMDB TRAILER !-->
<RegExp input="$$4" output="<chain function="GetTMDBTrailerByIdChain">$$18::$INFO[language]</chain>" dest="6">
<expression>^$</expression>
</RegExp>
<expression noclean="1" />
</RegExp>
</TRAILER>
</scraper>