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
|
<?xml version="1.0" encoding="UTF-8"?>
<scraper framework="1.1" date="2009-08-10" name="PTGate and IMDb" content="movies" thumb="ptgate.jpg" language="pt">
<include>common/tmdb.xml</include>
<include>common/movieposterdb.xml</include>
<include>common/impa.xml</include>
<include>common/imdb.xml</include>
<GetSettings dest="3">
<RegExp input="$$5" output="<settings>\1</settings>" dest="3">
<RegExp input="$$1" output="<setting label="Utilizar apenas o Cinema PTGate" type="bool" id="ptgateonly" default="false"></setting>" dest="5">
<expression></expression>
</RegExp>
<RegExp input="$$1" output="<setting type="sep"></setting>" dest="5+">
<expression></expression>
</RegExp>
<RegExp input="$$1" output="<setting label="Incluir detalhes e fotos dos Actores" type="bool" id="fullcredits" default="false"></setting>" dest="5+">
<expression></expression>
</RegExp>
<RegExp input="$$1" output="<setting label="Incluir detalhes do IMPAwards" type="bool" id="impawards" default="true"></setting>" dest="5+">
<expression></expression>
</RegExp>
<RegExp input="$$1" output="<setting label="Incluir detalhes do MoviePosterDB" type="bool" id="movieposterdb" default="false"></setting>" dest="5+">
<expression></expression>
</RegExp>
<RegExp input="$$1" output="<setting label="Incluir trailer" type="bool" id="trailer" default="true"></setting>" dest="5+">
<expression></expression>
</RegExp>
<RegExp input="$$1" output="<setting label="Incluir Fanart" type="bool" id="fanart" default="true"></setting>" dest="5+">
<expression></expression>
</RegExp>
<RegExp input="$$1" output="<setting label="Tamanhos do Poster e das Fotos dos Actores" type="labelenum" values="192|256|384|512|1024" id="imdbscale" default="512"></setting>" dest="5+">
<expression></expression>
</RegExp>
<RegExp input="$$1" output="<setting type="sep"></setting>" dest="5+">
<expression></expression>
</RegExp>
<RegExp input="$$1" output="<setting label="Url para acesso ao IMDb" type="text" id="url" default="akas.imdb.com"></setting>" dest="5+">
<expression></expression>
</RegExp>
<expression noclean="1"></expression>
</RegExp>
</GetSettings>
<NfoUrl dest="3">
<RegExp input="$$1" output="\1" dest="3">
<expression clear="yes" noclean="1">(http://www.cinema.ptgate.pt/filmes/[0-9]*)</expression>
</RegExp>
</NfoUrl>
<CreateSearchUrl dest="3">
<RegExp input="$$1" output="<url>http://www.cinema.ptgate.pt/pesquisa/?q=\1</url>" dest="3">
<expression noclean="1">([^\(]+)</expression>
</RegExp>
</CreateSearchUrl>
<GetSearchResults dest="8">
<RegExp input="$$5" output="<?xml version="1.0" encoding="iso-8859-1" standalone="yes"?><results>\1</results>" dest="8">
<RegExp dest="5+" input="$$1" output="<entity><title>\2 - \4 (\3)</title><url>http://www.cinema.ptgate.pt/filmes/\1</url><id>\1</id></entity>">
<expression repeat="yes" trim="2,3"><a href="/filmes/([0-9]*)">(.*?)</a> <small>([^\(]*)\(([0-9]*)\)</expression>
</RegExp>
<RegExp dest="5" input="$$1" output="<entity><title>\2 - \3 (\4)</title><url>http://www.cinema.ptgate.pt/filmes/\1</url><id>\1</id></entity>">
<expression trim="2,4"><a href="/filmes/([0-9]*)" class="upper">([^<]*)</a> <small>\(([0-9]*)\)<br />([^<]*)</expression>
</RegExp>
<expression noclean="1"></expression>
</RegExp>
</GetSearchResults>
<GetDetails clearbuffers="no" dest="3">
<RegExp input="$$5" output="<details>\1</details>" dest="3">
<!-- Id -->
<RegExp dest="5" input="$$2" output="<id>\1</id>">
<expression></expression>
</RegExp>
<!-- Title -->
<RegExp dest="5+" input="$$1" output="<title>\1</title>">
<expression><h2>([^<]*)</h2></expression>
</RegExp>
<!-- Plot -->
<RegExp dest="5+" input="$$1" output=";<plot>\1</plot>">
<expression><b>sinopse[^\n]*\s+([^\n]*)</expression>
</RegExp>
<!-- Outline -->
<RegExp dest="5+" input="$$1" output="<outline>\1</outline>">
<expression><b>sinopse[^\n]*\s+(.*?[^A-Z]\.)</expression>
</RegExp>
<!-- Genre -->
<RegExp dest="5+" input="$$9" output="<genre>\1</genre>">
<RegExp dest="9" input="$$1" output="\1,">
<expression><b>g.nero</b>: ([^<]*)</expression>
</RegExp>
<expression repeat="yes" trim="1">([^,]+),</expression>
</RegExp>
<!-- Year -->
<RegExp dest="11" input="$$1" output="<year>\1</year>">
<expression><b>ano</b>: ([^<]*)</expression>
</RegExp>
<RegExp dest="5+" input="$$11" output="\1">
<expression noclean="1"></expression>
</RegExp>
<!-- Actor -->
<RegExp dest="8" input="$$9" output="<actor><name>\1</name></actor>">
<RegExp input="$$1" output="\1," dest="9">
<expression><b>int.rpretes</b><br />\s*(.*?)<br /></expression>
</RegExp>
<expression clear="yes" repeat="yes" trim="1">([^,]*),</expression>
</RegExp>
<RegExp dest="4" input="$$8" output="<actors>\1</actors>">
<expression noclean="1"></expression>
</RegExp>
<RegExp dest="5+" input="$$8" conditional="ptgateonly" output="\1">
<expression noclean="1"></expression>
</RegExp>
<!-- Director -->
<RegExp dest="8" input="$$9" output="<director>\1</director>">
<RegExp input="$$1" output="\1," dest="9">
<expression><b>realiza..o</b><br />\s*(.*?)<br /></expression>
</RegExp>
<expression repeat="yes" trim="1">([^,]+),</expression>
</RegExp>
<RegExp dest="4+" input="$$8" output="<directors>\1</directors>">
<expression noclean="1"></expression>
</RegExp>
<RegExp dest="5+" input="$$8" conditional="ptgateonly" output="\1">
<expression noclean="1"></expression>
</RegExp>
<!-- Add PTGate image as last Thumb -->
<RegExp dest="12" input="$$2" output="<thumb>http://www.cinema.ptgate.pt/Movies/\1.jpg</thumb>">
<expression></expression>
</RegExp>
<RegExp dest="5+" input="$$12" conditional="ptgateonly" output="\1">
<expression noclean="1"></expression>
</RegExp>
<!-- Add PT Distributor -->
<RegExp dest="13" input="$$1" output="<studio>Dist: \1</studio>">
<expression><b>distribuidora</b>: ([^<]*)</expression>
</RegExp>
<RegExp dest="5+" input="$$13" conditional="ptgateonly" output="\1">
<expression noclean="1"></expression>
</RegExp>
<!-- IMDB Details -->
<RegExp dest="5+" input="$$10" conditional="!ptgateonly" output="\1">
<!-- Use Google as last resort -->
<RegExp dest="10" input="$$8" output="<url function="GetIMDBfromGoogle">http://www.google.com/search?q=site:imdb.com\1</url>">
<!-- search google for the original title -->
<RegExp input="$$1" output="\1" dest="7">
<expression trim="1">\&#8250; ([^<]+)<br /></expression>
</RegExp>
<!-- add year to search string -->
<RegExp input="$$11" output="+\1" dest="8">
<expression></expression>
</RegExp>
<!-- remove spaces and , -->
<RegExp input="$$7" output="+\1" dest="8+">
<expression repeat="yes">([^ ,]+)</expression>
</RegExp>
<expression></expression>
</RegExp>
<!-- use IMDB link on PTGATE, when available -->
<RegExp dest="10" input="$$9" output="<url function="GetIMDBDetails">http://$INFO[url]/title/\1/</url>">
<RegExp dest="9" input="$$1" output="\1">
<expression clear="yes">\.imdb\.com/title/(tt[0-9]*)</expression>
</RegExp>
<expression>(.+)</expression>
</RegExp>
<expression noclean="1"></expression>
</RegExp>
<expression noclean="1"></expression>
</RegExp>
</GetDetails>
<GetIMDBfromGoogle clearbuffers="no" dest="3">
<RegExp input="$$5" dest="3" output="<details>\1</details>">
<RegExp input="$$1" dest="5" output="<url function="GetIMDBDetails">http://$INFO[url]/title/\1/</url>">
<expression>\.imdb\.com/title/(tt[0-9]*)</expression>
</RegExp>
<expression noclean="1"></expression>
</RegExp>
</GetIMDBfromGoogle>
<GetIMDBDetails clearbuffers="no" dest="3">
<RegExp input="$$5" dest="3" output="<details>\1</details>">
<!-- IMDB Id -->
<RegExp input="$$1" dest="2" output="\1">
<expression>id=(tt[t0-9]*)</expression>
</RegExp>
<!-- Studio -->
<RegExp input="$$1" output="<studio>\1</studio>" dest="5">
<expression clear="yes" repeat="yes">"/company/[^/]*/">([^<]*)</a></expression>
</RegExp>
<RegExp input="$$13" output="\1" dest="5+">
<expression noclean="1"></expression>
</RegExp>
<!-- Certificates -->
<RegExp input="$$1" output="<certification>\1 \3</certification>" dest="5+">
<expression repeat="yes"><a href="/List\?certificates=[^"]*">([^<]*)</a>[^<]*(<i>([^<]*)</i>)?</expression>
</RegExp>
<!-- Runtime -->
<RegExp input="$$1" output="<runtime>\1</runtime>" dest="5+">
<expression trim="1"><h5>Runtime:</h5>[^0-9]*([^<|]*)</expression>
</RegExp>
<!-- Rating -->
<RegExp input="$$1" output="<rating>\1</rating><votes>\2</votes>" dest="5+">
<expression><b>([0-9.]+)/10</b>[^<]*<a href="ratings" class="tn15more">([0-9,]+) votes</a></expression>
</RegExp>
<!-- Actor -->
<RegExp conditional="!fullcredits" input="$$2" output="<url cache="$$2-credits.html" function="GetIMDBCast">$$3</url>" dest="5+">
<expression></expression>
</RegExp>
<!-- Director -->
<RegExp conditional="!fullcredits" input="$$2" output="<url cache="$$2-credits.html" function="GetMovieDirectors">$$3</url>" dest="5+">
<expression></expression>
</RegExp>
<!-- Credits -->
<RegExp conditional="!fullcredits" input="$$2" output="<url cache="$$2-credits.html" function="GetIMDBWriters">$$3</url>" dest="5+">
<expression></expression>
</RegExp>
<!-- Actor, full -->
<RegExp conditional="fullcredits" input="$$2" output="<url cache="$$2-fullcredits.html" function="GetIMDBCast">$$3fullcredits</url>" dest="5+">
<expression></expression>
</RegExp>
<!-- Director, full -->
<RegExp conditional="fullcredits" input="$$2" output="<url cache="$$2-fullcredits.html" function="GetIMDBDirectors">$$3fullcredits</url>" dest="5+">
<expression></expression>
</RegExp>
<!-- Credits, full -->
<RegExp conditional="fullcredits" input="$$2" output="<url cache="$$2-fullcredits.html" function="GetIMDBWriters">$$3fullcredits</url>" dest="5+">
<expression></expression>
</RegExp>
<!-- Thumb, IMPAwards -->
<RegExp conditional="impawards" input="$$2" output="<url cache="$$2-posters.html" function="GetIMPALink">$$3posters</url>" dest="5+">
<expression></expression>
</RegExp>
<!-- Poster, MoviePosterDB -->
<RegExp conditional="movieposterdb" input="$$1" output="<url function="GetMoviePosterDBLink">http://www.movieposterdb.com/browse/search?type=movies&amp;query=\1</url>" dest="5+">
<expression>/title/tt([t0-9]*)/faq</expression>
</RegExp>
<!-- Trailer -->
<RegExp conditional="trailer" input="$$1" output="<url function="GetIMDBTrailer">http://$INFO[url]/video/imdb/vi\1/player</url>" dest="5+">
<expression>/vi([0-9]*)/"</expression>
</RegExp>
<!-- Thumb, IMDB -->
<RegExp input="$$2" output="<url cache="$$2-posters.html" function="GetIMDBPoster">$$3posters</url>" dest="5+">
<expression></expression>
</RegExp>
<!-- Fanart -->
<RegExp conditional="fanart" input="$$2" output="<url function="GetTMDBFanartByIMDBId">http://api.themoviedb.org/2.0/Movie.imdbLookup?imdb_id=$$2&amp;api_key=57983e31fb435df4df77afb854740ea9</url>" dest="5+">
<expression></expression>
</RegExp>
<expression noclean="1"></expression>
</RegExp>
</GetIMDBDetails>
</scraper>
|