sync with linuxport @ 18013
[xbmc:xbmc-antiquated.git] / system / scrapers / video / ofdb.xml
1 <?xml version="1.0" encoding="utf-8" standalone="yes"?>
2 <scraper name="OFDb" content="movies" thumb="ofdb.png" language="de">
3         <GetSettings dest="3">
4                 <RegExp input="$$5" output="&lt;settings&gt;\1&lt;/settings&gt;" dest="3">
5                         <RegExp input="$$1" output="&lt;setting label=&quot;Fanart&quot; type=&quot;bool&quot; id=&quot;fanart&quot; default=&quot;true&quot;&gt;&lt;/setting&gt;" dest="5+">
6                                 <expression></expression>
7                         </RegExp>
8                         <RegExp input="$$1" output="&lt;setting label=&quot;MoviePosterDB&quot; type=&quot;bool&quot; id=&quot;movieposterdb&quot; default=&quot;false&quot;&gt;&lt;/setting&gt;" dest="5+">
9                                 <expression /> 
10                         </RegExp>
11                         <RegExp input="$$1" output="&lt;setting label=&quot;Trailer&quot; type=&quot;bool&quot; id=&quot;trailer&quot; default=&quot;true&quot;&gt;&lt;/setting&gt;" dest="5+">
12                                 <expression></expression>
13                         </RegExp>
14                         <RegExp input="$$1" output="&lt;setting label=&quot;Groesse der Darsteller Bilder&quot; type=&quot;labelenum&quot; values=&quot;192|256|384|512|1024&quot; id=&quot;imdbscale&quot; default=&quot;512&quot;&gt;&lt;/setting&gt;" dest="5+">
15                                 <expression></expression>
16                         </RegExp>
17                         <expression noclean="1"></expression>
18                 </RegExp>
19         </GetSettings>
20
21         <NfoUrl dest="3">
22                 <RegExp input="$$1" output="&lt;url&gt;\1\2,\3&lt;/url&gt;" dest="3">
23                         <expression clear="yes" noclean="1">(http://www.ofdb.de/film/)([0-9]*),(.*)</expression>
24                 </RegExp>
25                 <RegExp input="$$1" output="&lt;url function=&quot;GetByIMDBId&quot;&gt;http://www.ofdb.de/view.php?SText=\2&amp;amp;Kat=IMDb&amp;amp;page=suchergebnis&amp;amp;sourceid=mozilla-search&lt;/url&gt;" dest="3+">
26                         <expression>(imdb.com/)Title\?([0-9]+)</expression>
27                 </RegExp>
28                 <RegExp input="$$1" output="&lt;url function=&quot;GetByIMDBId&quot;&gt;http://www.ofdb.de/view.php?SText=\2&amp;amp;Kat=IMDb&amp;amp;page=suchergebnis&amp;amp;sourceid=mozilla-search&lt;/url&gt;" dest="3+">
29                         <expression>(imdb.com/title/tt)([0-9]*)</expression>
30                 </RegExp>
31         </NfoUrl>
32
33         <GetByIMDBId dest="3">
34                 <RegExp input="$$1" output="&lt;url&gt;http://www.ofdb.de/film/\1,&lt;/url&gt;&lt;id&gt;\1&lt;/id&gt;" dest="3+">
35                         <expression repeat="yes" noclean="1">&quot;film/([0-9]*),</expression>
36                 </RegExp>
37         </GetByIMDBId>
38
39
40         <CreateSearchUrl dest="3">
41                 <RegExp input="$$1" output="http://www.ofdb.de/view.php?SText=\1&amp;Kat=Titel&amp;page=suchergebnis&amp;sourceid=mozilla-search" dest="3">
42                         <expression noclean="1">([^\(]+)</expression>
43                 </RegExp>
44         </CreateSearchUrl>
45
46         <GetSearchResults dest="8">
47                 <RegExp input="$$5" output="&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot; standalone=&quot;yes&quot;?&gt;&lt;results&gt;\1&lt;/results&gt;" dest="8">
48                         <RegExp input="$$1" output="&lt;entity&gt;&lt;title&gt;\2 (\4) | \3&lt;/title&gt;&lt;year&gt;\4&lt;/year&gt;&lt;url cache=&quot;\1.html&quot;&gt;http://www.ofdb.de/film/\1,&lt;/url&gt;&lt;id&gt;\1&lt;/id&gt;&lt;/entity&gt;" dest="5+">
49                                 <expression repeat="yes" noclean="1">&lt;a href=.[^0-9]+([0-9]+)[^ ]+ onmouseover=.Tip..&lt;[^&gt;]+&gt;[^&gt;]+&gt;([^&lt;]+)&lt;font size=.1.&gt; . ([^&lt;]+)&lt;/font&gt; \(([0-9]+)\)&lt;/a&gt;</expression>
50                         </RegExp>
51                         <expression noclean="1"></expression>
52                 </RegExp>
53         </GetSearchResults>
54
55         <GetDetails dest="3">
56                 <RegExp input="$$5" output="&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot; standalone=&quot;yes&quot;?&gt;&lt;details&gt;\1&lt;/details&gt;" dest="3">
57
58         <!--Title -->
59         <RegExp input="$$6" output="\1" dest="5+">
60                 <RegExp input="$$1" output="&lt;title&gt;\1&lt;/title&gt;" dest="6">
61                         <expression trim="1">&lt;td width=&quot;99.&quot;&gt;&lt;h2&gt;&lt;font face=&quot;Arial,Helvetica,sans-serif&quot; size=&quot;3&quot;&gt;&lt;b&gt;([^&lt;]+)&lt;/b&gt;&lt;/font&gt;&lt;/h2&gt;&lt;/td&gt;</expression>
62                 </RegExp>
63
64                 <RegExp input="$$7" output="&lt;title&gt;\2 \1&lt;/title&gt;" dest="6">
65                         <RegExp input="$$1" output="\1" dest="7">
66                                 <expression trim="1">&lt;td width=&quot;99.&quot;&gt;&lt;h2&gt;&lt;font face=&quot;Arial,Helvetica,sans-serif&quot; size=&quot;3&quot;&gt;&lt;b&gt;([^&lt;]+)&lt;/b&gt;&lt;/font&gt;&lt;/h2&gt;&lt;/td&gt;</expression>
67                 </RegExp>
68                 <expression>(.*), (Die|Der|Das|The)</expression>
69                 </RegExp>
70                 <expression noclean="1"></expression>
71         </RegExp>
72
73         <!--Original Title -->
74         <RegExp input="$$1" output="\1" dest="8">
75                 <expression noclean="1">class=&quot;Normal&quot;&gt;Originaltitel(.*)class=&quot;Normal&quot;&gt;Herstellungsland</expression>
76         </RegExp>
77         <RegExp input="$$7" output="\1" dest="5+">
78                 <RegExp input="$$8" output="&lt;originaltitle&gt;\1&lt;/originaltitle&gt;" dest="7">
79                         <expression>&lt;b&gt;([^&gt;]+)&lt;/b&gt;</expression>
80                 </RegExp>
81                 <RegExp input="$$6" output="&lt;originaltitle&gt;\2 \1&lt;/originaltitle&gt;" dest="7">
82                         <RegExp input="$$8" output="\1" dest="6">
83                                 <expression noclean="1">&lt;b&gt;([^&gt;]+)&lt;/b&gt;</expression>
84                         </RegExp>
85                         <expression>(.*), (Die|Der|Das|The)</expression>
86                 </RegExp>
87                 <expression noclean="1"></expression>
88         </RegExp>
89
90         <!--Year -->
91         <RegExp input="$$1" output="&lt;year&gt;\1&lt;/year&gt;" dest="5+">
92                 <expression>view.php\?page=blaettern&amp;Kat=Jahr&amp;Text=([0-9]+)</expression></RegExp>
93
94         <!--Director-->
95         <RegExp input="$$9" output="&lt;director&gt;\1&lt;/director&gt;" dest="5+">
96                 <RegExp input="$$1" output="\1" dest="9">
97                         <expression noclean="1">class=&quot;Normal&quot;&gt;Regie(.*)class=&quot;Normal&quot;&gt;Darsteller</expression>
98                 </RegExp>
99                 <expression repeat="yes">Name=[^&gt;]*&gt;([^&lt;]+)</expression>
100         </RegExp>
101
102         <!--Plot outline -->
103         <RegExp input="$$1" output="&lt;outline&gt;\1&lt;/outline&gt;&lt;plot&gt;\1&lt;/plot&gt;" dest="5+">
104                 <expression>&lt;b&gt;Inhalt:&lt;/b&gt;([^&lt;]+)</expression>
105         </RegExp>
106
107         <!--Genre-->
108         <RegExp input="$$1" output="&lt;genre&gt;\1&lt;/genre&gt;" dest="5+">
109                 <expression repeat="yes">view.php\?page=genre&amp;Genre=[^&quot;]+&quot;&gt;([^&lt;]*)&lt;</expression>
110         </RegExp>
111
112         <!--Rating-->
113         <RegExp input="$$1" output="&lt;rating&gt;\1&lt;/rating&gt;" dest="5+">
114                 <expression>Note: ([0-9\.]+)</expression>
115         </RegExp>
116
117         <!--Votes-->
118         <RegExp input="$$1" output="&lt;votes&gt;\1&lt;/votes&gt;" dest="5+">
119                 <expression>Stimmen: ([0-9]+)</expression>
120         </RegExp>
121
122         <!--URL to Plot -->
123         <RegExp input="$$1" output="&lt;url function=&quot;Inhaltsangabe&quot;&gt;http://www.ofdb.de/plot/\1,\2,&lt;/url&gt;" dest="5+">
124                 <expression>Inhalt:&lt;/b&gt;[^&lt;]*&lt;a href=&quot;plot/([0-9]+),([0-9]+),</expression>
125         </RegExp>
126
127         <!--URL to MPAA-->
128         <RegExp input="$$1" output="&lt;url function=&quot;Altersfreigabe&quot;&gt;http://www.ofdb.de/view.php?page=fassung&amp;amp;fid=\1&amp;amp;vid=\2&lt;/url&gt;" dest="5+">
129                 <expression>&lt;a href=.view.php.page=fassung&amp;fid=([0-9]+)&amp;vid=([0-9]+).&gt;Kino:</expression>
130         </RegExp>
131
132         <!--URL to Studio-->
133         <RegExp input="$$1" output="&lt;url function=&quot;ofdbstudio&quot;&gt;http://www.ofdb.de/view.php?page=fassung&amp;amp;fid=\1&amp;amp;vid=\2&lt;/url&gt;" dest="5+">
134                 <expression>&lt;a href=.view.php.page=fassung&amp;fid=([0-9]+)&amp;vid=([0-9]+).&gt;Kino:</expression>
135         </RegExp>
136
137         <!--URL to IMDB-->
138         <RegExp input="$$1" output="&lt;url function=&quot;IMDB-Details&quot;&gt;http://www.imdb.com/title/tt\2/&lt;/url&gt;" dest="5+">
139                 <expression>(imdb.com/)Title\?([0-9]+)</expression>
140         </RegExp>
141
142         <!--URL to IMDBcredits-->
143         <RegExp input="$$1" output="&lt;url function=&quot;GetMovieCast&quot;&gt;http://www.imdb.com/title/tt\2/fullcredits#cast&lt;/url&gt;" dest="5+">
144                 <expression>(imdb.com/)Title\?([0-9]+)</expression>
145         </RegExp>
146
147         <!--URL to Fanart-->
148         <RegExp conditional="fanart" input="$$1" output="&lt;url function=&quot;GetTMDBId&quot;&gt;http://api.themoviedb.org/2.0/Movie.imdbLookup?imdb_id=tt\2&amp;amp;api_key=57983e31fb435df4df77afb854740ea9&lt;/url&gt;" dest="5+">
149                 <expression>(imdb.com/)Title\?([0-9]+)</expression>
150         </RegExp>
151
152         <!--URL to MoviePosterDB -->
153         <RegExp conditional="movieposterdb" input="$$1" output="&lt;url function=&quot;GetMoviePosterDBLink&quot;&gt;http://www.movieposterdb.com/browse/search?title=\2&lt;/url&gt;" dest="5+">
154                 <expression>(imdb.com/)Title\?([0-9]+)</expression> 
155         </RegExp>
156         
157         <!-- Ofdb Poster -->
158         <RegExp input="$$3" output="&lt;url function=&quot;GetOfdbThumb&quot; cache=&quot;$$2.html&quot;&gt;\1&lt;/url&gt;" dest="5+">
159                 <expression noclean="1"></expression>
160         </RegExp>
161
162         <!-- Cast -->
163         <RegExp input="$$2" output="&lt;url cache=&quot;$$2-credits.html&quot; function=&quot;GetMovieCast&quot;&gt;$$3&lt;/url&gt;" dest="5+">
164                 <expression></expression>
165         </RegExp>
166
167                 <expression noclean="1"></expression>
168         </RegExp>
169         </GetDetails>
170   
171         <!--Plot-->
172         <Inhaltsangabe dest="5">
173                 <RegExp input="$$7" output="&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot; standalone=&quot;yes&quot;?&gt;&lt;details&gt;&lt;plot&gt;\1&lt;/plot&gt;&lt;/details&gt;" dest="5+">
174                         <RegExp input="$$1" output="\1" dest="9">
175                                 <expression noclean="1">Eine Inhaltsangabe von(.*)&lt;option value=&quot;All&quot;&gt;</expression>
176                         </RegExp>
177                         <RegExp input="$$9" output="\1" dest="7">
178                                 <expression noclean="1">&lt;br&gt;&lt;br&gt;([^&lt;]+)</expression>
179                         </RegExp>
180                         <RegExp input="$$9" output=" \1" dest="7+">
181                                 <expression noclean="1" repeat="yes">&lt;br /&gt;([^&lt;]+)</expression>
182                         </RegExp>
183                         <expression></expression>
184                 </RegExp>
185         </Inhaltsangabe>
186   
187         <!--MPAA-->
188         <Altersfreigabe dest="5">
189                 <RegExp input="$$1" output="&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot; standalone=&quot;yes&quot;?&gt;&lt;details&gt;&lt;mpaa&gt;(Kino) \1&lt;/mpaa&gt;&lt;/details&gt;" dest="5+">
190                         <expression>Freigabe:&lt;/font&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;&lt;font[^&gt;]+&gt;&lt;b&gt;([^&lt;]+)&lt;/b&gt;</expression>
191                 </RegExp>
192         </Altersfreigabe>
193
194         <!--Studio-->
195         <ofdbstudio dest="5">
196                 <RegExp input="$$1" output="&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot; standalone=&quot;yes&quot;?&gt;&lt;details&gt;&lt;studio&gt;\1&lt;/studio&gt;&lt;/details&gt;" dest="5+">
197                         <expression>Verleih:&lt;/font&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;&lt;font[^&gt;]+&gt;&lt;b&gt;([^&lt;]+)&lt;/b&gt;</expression>
198                 </RegExp>
199         </ofdbstudio>
200   
201         <!--IMDB-Details-->
202         <IMDB-Details dest="5">
203         <RegExp input="$$3" output="&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot; standalone=&quot;yes&quot;?&gt;&lt;details&gt;\1&lt;/details&gt;" dest="5">
204                 <RegExp input="$$1" output="&lt;runtime&gt;\1&lt;/runtime&gt;" dest="3+">
205                         <expression>L&amp;auml;nge:&lt;/h5&gt;([^&lt;]+)&lt;</expression>
206                 </RegExp>
207                 <RegExp input="$$1" output="&lt;tagline&gt;\1&lt;/tagline&gt;" dest="3+">
208                         <expression>Werbezeile:&lt;/h5&gt;([^&lt;]*)&lt;</expression>
209                 </RegExp>
210                 <RegExp conditional="trailer" input="$$1" output="&lt;url function=&quot;GetTrailer&quot;&gt;http://akas.imdb.com/video/imdb/vi\1/player&lt;/url&gt;" dest="3+">
211                         <expression>/vi([0-9]*)/&quot;</expression>
212                 </RegExp>
213                 <RegExp input="$$1" output="\1" dest="6">
214                         <expression noclean="1">Drehbuchautor(.*)Premierendatum</expression>
215                 </RegExp>
216                 <RegExp input="$$6" output="&lt;credits&gt;\1&lt;/credits&gt;" dest="3+">
217                         <expression>&lt;a href=&quot;/name/nm[^&gt;]*&gt;([^&lt;]*)&lt;</expression>
218                 </RegExp>
219                 <expression noclean="1"></expression>
220         </RegExp>
221         </IMDB-Details>
222
223         <!-- MovieCast -->
224         <GetMovieCast clearbuffers="no" dest="5">
225                 <RegExp input="$$2" output="&lt;details&gt;\1&lt;/details&gt;" dest="5">
226                         <RegExp input="$$1" output="\1" dest="6">
227                                 <expression clear="yes" noclean="1">&lt;table class=&quot;cast&quot;&gt;(.*?)&lt;/table&gt;</expression>
228                         </RegExp>
229                         <RegExp input="$$6" output="&lt;actor&gt;&lt;thumb&gt;\1_SX$INFO[imdbscale]_SY$INFO[imdbscale]_\2&lt;/thumb&gt;&lt;name&gt;\3&lt;/name&gt;&lt;role&gt;\4&lt;/role&gt;&lt;/actor&gt;" dest="7">
230                                 <expression clear="yes" repeat="yes" noclean="1,2" trim="3,4">&lt;img src=&quot;(?:([^&quot;]*\.)[^&quot;]*(\.jpg))?[^&gt;]*[^&quot;]*&quot;nm&quot;&gt;&lt;a href=&quot;[^&quot;]*&quot;&gt;([^&lt;]*)&lt;[^&quot;]*&quot;ddd&quot;&gt; ... [^&quot;]*&quot;char&quot;&gt;(.*?)&lt;/td&gt;</expression>
231                         </RegExp>
232                         <RegExp input="$$7" output="&lt;actor&gt;&lt;thumb&gt;\1&lt;/thumb&gt;\2&lt;/actor&gt;" dest="2+">
233                                 <expression clear="yes" repeat="yes" noclean="1,2,3">&lt;actor&gt;&lt;thumb&gt;(?:(http.*?)|_SX[0-9]+_SY[0-9]+_)&lt;/thumb&gt;(.*?)&lt;/actor&gt;</expression>
234                         </RegExp>
235                         <expression noclean="1"></expression>
236                 </RegExp>
237         </GetMovieCast>
238         
239         <!-- Trailer -->
240         <GetTrailer clearbuffers="no" dest="5">
241                 <RegExp conditional="trailer" input="$$2" output="&lt;details&gt;&lt;trailer urlencoded=&quot;yes&quot;&gt;\1&lt;/trailer&gt;&lt;/details&gt;" dest="5">
242                         <RegExp input="$$1" output="\1" dest="2">
243                                 <expression noclean="1">&quot;file&quot;[^&quot;]*&quot;([^&quot;]*)</expression>
244                         </RegExp>
245                         <RegExp input="$$1" output="$$2/\1" dest="2">
246                                 <expression noclean="1">&quot;id&quot;[^&quot;]*&quot;([^&quot;]*)</expression>
247                         </RegExp>
248                         <expression noclean="1"></expression>
249                 </RegExp>
250         </GetTrailer>
251
252         <!--  MoviePosterDB-->
253         <GetMoviePosterDBLink dest="6">
254                 <RegExp input="$$1" output="&lt;details&gt;&lt;url function=&quot;GetMoviePosterDB&quot;&gt;\1&lt;/url&gt;&lt;/details&gt;" dest="6">
255                         <expression>(http://www.movieposterdb.com/movie/[^&quot;]*)&quot;</expression>
256                 </RegExp>
257         </GetMoviePosterDBLink>
258
259         <GetMoviePosterDB clearbuffers="no" dest="5">
260                 <RegExp input="$$1" output="&lt;thumb&gt;\1l_\2&lt;/thumb&gt;" dest="10+">
261                         <expression clear="yes" repeat="yes" noclean="1,2">&quot;poster&quot;.*?src=&quot;(.*?)[a-z]_(.*?)&quot;</expression>
262                 </RegExp>
263         </GetMoviePosterDB>
264
265         <!-- Ofdb Poster --> 
266         <GetOfdbThumb dest="5">
267                 <RegExp input="$$10$$11" output="&lt;details&gt;&lt;thumbs&gt;\1&lt;/thumbs&gt;&lt;/details&gt;" dest="5">
268                         <RegExp input="$$1" output="&lt;thumb&gt;http://img.ofdb.de/film/\1&lt;/thumb&gt;" dest="11+">
269                                 <expression>&lt;img src=&quot;http://img.ofdb.de/film/([^&quot;]+)&quot; [^&gt;]*&gt;</expression>
270                         </RegExp>
271                         <expression noclean="1"></expression>
272                 </RegExp>
273         </GetOfdbThumb>
274
275         <!-- Fanart -->
276         <GetTMDBId dest="5">
277                 <RegExp conditional="fanart" input="$$1" output="&lt;details&gt;&lt;url function=&quot;GetTMDBFanart&quot;&gt;http://api.themoviedb.org/2.0/Movie.getInfo?id=\1&amp;amp;api_key=57983e31fb435df4df77afb854740ea9&lt;/url&gt;&lt;/details&gt;" dest="5">
278                         <expression>&lt;id&gt;([0-9]*)&lt;/id&gt;</expression>
279                 </RegExp>
280         </GetTMDBId>
281         <GetTMDBFanart dest="5">
282                 <RegExp input="$$2" output="&lt;details&gt;&lt;fanart url=&quot;http://themoviedb.org/image/backdrops&quot;&gt;\1&lt;/fanart&gt;&lt;/details&gt;" dest="5">
283                         <RegExp input="$$1" output="&lt;thumb preview=&quot;/\1/\2_poster.jpg&quot;&gt;/\1/\2.jpg&lt;/thumb&gt;" dest="2">
284                                 <expression repeat="yes">&lt;backdrop size=&quot;original&quot;&gt;.*?/([0-9]*)/([^\.]+).jpg&lt;/backdrop&gt;</expression>
285                         </RegExp>
286                         <expression noclean="1">(.+)</expression>
287                 </RegExp>
288         </GetTMDBFanart>
289 </scraper>