changed: updated all fanart enabled scrapers to use the new themoviedb.org 2.0 api...
[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">
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         </NfoUrl>
26
27         <CreateSearchUrl dest="3">
28                 <RegExp input="$$1" output="http://www.ofdb.de/view.php?SText=\1&amp;Kat=Titel&amp;page=suchergebnis&amp;sourceid=mozilla-search" dest="3">
29                         <expression noclean="1">([^\(]+)</expression>
30                 </RegExp>
31         </CreateSearchUrl>
32
33         <GetSearchResults dest="8">
34                 <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">
35                         <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+">
36                                 <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>
37                         </RegExp>
38                         <expression noclean="1"></expression>
39                 </RegExp>
40         </GetSearchResults>
41
42         <GetDetails dest="3">
43                 <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">
44
45         <!--Title -->
46         <RegExp input="$$6" output="\1" dest="5+">
47                 <RegExp input="$$1" output="&lt;title&gt;\1&lt;/title&gt;" dest="6">
48                         <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>
49                 </RegExp>
50
51                 <RegExp input="$$7" output="&lt;title&gt;\2 \1&lt;/title&gt;" dest="6">
52                         <RegExp input="$$1" output="\1" dest="7">
53                                 <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>
54                 </RegExp>
55                 <expression>(.*), (Die|Der|Das|The)</expression>
56                 </RegExp>
57                 <expression noclean="1"></expression>
58         </RegExp>
59
60         <!--Original Title -->
61         <RegExp input="$$1" output="\1" dest="8">
62                 <expression noclean="1">class=&quot;Normal&quot;&gt;Originaltitel(.*)class=&quot;Normal&quot;&gt;Herstellungsland</expression>
63         </RegExp>
64         <RegExp input="$$7" output="\1" dest="5+">
65                 <RegExp input="$$8" output="&lt;originaltitle&gt;\1&lt;/originaltitle&gt;" dest="7">
66                         <expression>&lt;b&gt;([^&gt;]+)&lt;/b&gt;</expression>
67                 </RegExp>
68                 <RegExp input="$$6" output="&lt;originaltitle&gt;\2 \1&lt;/originaltitle&gt;" dest="7">
69                         <RegExp input="$$8" output="\1" dest="6">
70                                 <expression noclean="1">&lt;b&gt;([^&gt;]+)&lt;/b&gt;</expression>
71                         </RegExp>
72                         <expression>(.*), (Die|Der|Das|The)</expression>
73                 </RegExp>
74                 <expression noclean="1"></expression>
75         </RegExp>
76
77         <!--Year -->
78         <RegExp input="$$1" output="&lt;year&gt;\1&lt;/year&gt;" dest="5+">
79                 <expression>view.php\?page=blaettern&amp;Kat=Jahr&amp;Text=([0-9]+)</expression></RegExp>
80
81         <!--Director-->
82         <RegExp input="$$9" output="&lt;director&gt;\1&lt;/director&gt;" dest="5+">
83                 <RegExp input="$$1" output="\1" dest="9">
84                         <expression noclean="1">class=&quot;Normal&quot;&gt;Regie(.*)class=&quot;Normal&quot;&gt;Darsteller</expression>
85                 </RegExp>
86                 <expression repeat="yes">Name=[^&gt;]*&gt;([^&lt;]+)</expression>
87         </RegExp>
88
89         <!--Plot outline -->
90         <RegExp input="$$1" output="&lt;outline&gt;\1&lt;/outline&gt;&lt;plot&gt;\1&lt;/plot&gt;" dest="5+">
91                 <expression>&lt;b&gt;Inhalt:&lt;/b&gt;([^&lt;]+)</expression>
92         </RegExp>
93
94         <!--Genre-->
95         <RegExp input="$$1" output="&lt;genre&gt;\1&lt;/genre&gt;" dest="5+">
96                 <expression repeat="yes">view.php\?page=genre&amp;Genre=[^&quot;]+&quot;&gt;([^&lt;]*)&lt;</expression>
97         </RegExp>
98
99         <!--Rating-->
100         <RegExp input="$$1" output="&lt;rating&gt;\1&lt;/rating&gt;" dest="5+">
101                 <expression>Note: ([0-9\.]+)</expression>
102         </RegExp>
103
104         <!--Votes-->
105         <RegExp input="$$1" output="&lt;votes&gt;\1&lt;/votes&gt;" dest="5+">
106                 <expression>Stimmen: ([0-9]+)</expression>
107         </RegExp>
108
109         <!--URL to Plot -->
110         <RegExp input="$$1" output="&lt;url function=&quot;Inhaltsangabe&quot;&gt;http://www.ofdb.de/plot/\1,\2,&lt;/url&gt;" dest="5+">
111                 <expression>Inhalt:&lt;/b&gt;[^&lt;]*&lt;a href=&quot;plot/([0-9]+),([0-9]+),</expression>
112         </RegExp>
113
114         <!--URL to MPAA-->
115         <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+">
116                 <expression>&lt;a href=.view.php.page=fassung&amp;fid=([0-9]+)&amp;vid=([0-9]+).&gt;Kino:</expression>
117         </RegExp>
118
119         <!--URL to Studio-->
120         <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+">
121                 <expression>&lt;a href=.view.php.page=fassung&amp;fid=([0-9]+)&amp;vid=([0-9]+).&gt;Kino:</expression>
122         </RegExp>
123
124         <!--URL to IMDB-->
125         <RegExp input="$$1" output="&lt;url function=&quot;IMDB-Details&quot;&gt;http://www.imdb.com/title/tt\2/&lt;/url&gt;" dest="5+">
126                 <expression>(imdb.com/)Title\?([0-9]+)</expression>
127         </RegExp>
128
129         <!--URL to IMDBcredits-->
130         <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+">
131                 <expression>(imdb.com/)Title\?([0-9]+)</expression>
132         </RegExp>
133
134         <!--URL to Fanart-->
135         <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+">
136                 <expression>(imdb.com/)Title\?([0-9]+)</expression>
137         </RegExp>
138
139         <!--URL to MoviePosterDB -->
140         <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+">
141                 <expression>(imdb.com/)Title\?([0-9]+)</expression> 
142         </RegExp>
143         
144         <!-- Ofdb Poster -->
145         <RegExp input="$$3" output="&lt;url function=&quot;GetOfdbThumb&quot; cache=&quot;$$2.html&quot;&gt;\1&lt;/url&gt;" dest="5+">
146                 <expression noclean="1"></expression>
147         </RegExp>
148
149         <!-- Cast -->
150         <RegExp input="$$2" output="&lt;url cache=&quot;$$2-credits.html&quot; function=&quot;GetMovieCast&quot;&gt;$$3&lt;/url&gt;" dest="5+">
151                 <expression></expression>
152         </RegExp>
153
154                 <expression noclean="1"></expression>
155         </RegExp>
156         </GetDetails>
157   
158         <!--Plot-->
159         <Inhaltsangabe dest="5">
160                 <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+">
161                         <RegExp input="$$1" output="\1" dest="9">
162                                 <expression noclean="1">Eine Inhaltsangabe von(.*)&lt;option value=&quot;All&quot;&gt;</expression>
163                         </RegExp>
164                         <RegExp input="$$9" output="\1" dest="7">
165                                 <expression noclean="1">&lt;br&gt;&lt;br&gt;([^&lt;]+)</expression>
166                         </RegExp>
167                         <RegExp input="$$9" output=" \1" dest="7+">
168                                 <expression noclean="1" repeat="yes">&lt;br /&gt;([^&lt;]+)</expression>
169                         </RegExp>
170                         <expression></expression>
171                 </RegExp>
172         </Inhaltsangabe>
173   
174         <!--MPAA-->
175         <Altersfreigabe dest="5">
176                 <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+">
177                         <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>
178                 </RegExp>
179         </Altersfreigabe>
180
181         <!--Studio-->
182         <ofdbstudio dest="5">
183                 <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+">
184                         <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>
185                 </RegExp>
186         </ofdbstudio>
187   
188         <!--IMDB-Details-->
189         <IMDB-Details dest="5">
190         <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">
191                 <RegExp input="$$1" output="&lt;runtime&gt;\1&lt;/runtime&gt;" dest="3+">
192                         <expression>L&amp;auml;nge:&lt;/h5&gt;([^&lt;]+)&lt;</expression>
193                 </RegExp>
194                 <RegExp input="$$1" output="&lt;tagline&gt;\1&lt;/tagline&gt;" dest="3+">
195                         <expression>Werbezeile:&lt;/h5&gt;([^&lt;]*)&lt;</expression>
196                 </RegExp>
197                 <RegExp conditional="trailer" input="$$1" output="&lt;url function=&quot;GetTrailer&quot;&gt;http://akas.imdb.com/video/imdb/vi\1&lt;/url&gt;" dest="3+">
198                         <expression>/screenplay/vi([0-9]*)/&quot;</expression>
199                 </RegExp>
200                 <RegExp input="$$1" output="\1" dest="6">
201                         <expression noclean="1">Drehbuchautor(.*)Premierendatum</expression>
202                 </RegExp>
203                 <RegExp input="$$6" output="&lt;credits&gt;\1&lt;/credits&gt;" dest="3+">
204                         <expression>&lt;a href=&quot;/name/nm[^&gt;]*&gt;([^&lt;]*)&lt;</expression>
205                 </RegExp>
206                 <expression noclean="1"></expression>
207         </RegExp>
208         </IMDB-Details>
209
210         <!-- MovieCast -->
211         <GetMovieCast clearbuffers="no" dest="5">
212                 <RegExp input="$$2" output="&lt;details&gt;\1&lt;/details&gt;" dest="5">
213                         <RegExp input="$$1" output="\1" dest="6">
214                                 <expression clear="yes" noclean="1">&lt;table class=&quot;cast&quot;&gt;(.*?)&lt;/table&gt;</expression>
215                         </RegExp>
216                         <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">
217                                 <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>
218                         </RegExp>
219                         <RegExp input="$$7" output="&lt;actor&gt;&lt;thumb&gt;\1&lt;/thumb&gt;\2&lt;/actor&gt;" dest="2+">
220                                 <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>
221                         </RegExp>
222                         <expression noclean="1"></expression>
223                 </RegExp>
224         </GetMovieCast>
225         
226         <!-- Trailer -->
227         <GetTrailer clearbuffers="no" dest="5">
228                 <RegExp conditional="trailer" input="$$1" output="&lt;details&gt;&lt;url function=&quot;GetTrailerLink&quot;&gt;http://akas.imdb.com\1player\2&lt;/url&gt;&lt;/details&gt;" dest="5">
229                         <expression noclean="1">videoSrc = &apos;[^&apos;]*(/video/[^/]*/[^/]*/)[^\?]*(\?bitrate=[0-9]*)?</expression>
230                 </RegExp>
231         </GetTrailer>
232         <GetTrailerLink clearbuffers="no" dest="5">
233                 <RegExp conditional="trailer" input="$$2" output="&lt;details&gt;\1&lt;/details&gt;" dest="5">
234                         <RegExp conditional="trailer" input="$$1" output="&lt;trailer urlencoded=&quot;yes&quot;&gt;\1&lt;/trailer&gt;" dest="2">
235                                 <expression noclean="1">&quot;file&quot;[^&quot;]*&quot;([^&quot;]*)</expression>
236                         </RegExp>
237                         <expression noclean="1"></expression>
238                 </RegExp>
239         </GetTrailerLink>
240
241         <!--  MoviePosterDB-->
242         <GetMoviePosterDBLink dest="6">
243                 <RegExp input="$$1" output="&lt;details&gt;&lt;url function=&quot;GetMoviePosterDB&quot;&gt;\1&lt;/url&gt;&lt;/details&gt;" dest="6">
244                         <expression>(http://www.movieposterdb.com/movie/[^&quot;]*)&quot;</expression>
245                 </RegExp>
246         </GetMoviePosterDBLink>
247
248         <GetMoviePosterDB clearbuffers="no" dest="5">
249                 <RegExp input="$$1" output="&lt;thumb&gt;\1l_\2&lt;/thumb&gt;" dest="10+">
250                         <expression clear="yes" repeat="yes" noclean="1,2">&quot;poster&quot;.*?src=&quot;(.*?)[a-z]_(.*?)&quot;</expression>
251                 </RegExp>
252         </GetMoviePosterDB>
253
254         <!-- Ofdb Poster --> 
255         <GetOfdbThumb dest="5">
256                 <RegExp input="$$10$$11" output="&lt;details&gt;&lt;thumbs&gt;\1&lt;/thumbs&gt;&lt;/details&gt;" dest="5">
257                         <RegExp input="$$1" output="&lt;thumb&gt;http://img.ofdb.de/film/\1&lt;/thumb&gt;" dest="11+">
258                                 <expression>&lt;img src=&quot;http://img.ofdb.de/film/([^&quot;]+)&quot; [^&gt;]*&gt;</expression>
259                         </RegExp>
260                         <expression noclean="1"></expression>
261                 </RegExp>
262         </GetOfdbThumb>
263
264         <!-- Fanart -->
265         <GetTMDBId dest="5">
266                 <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">
267                         <expression>&lt;id&gt;([0-9]*)&lt;/id&gt;</expression>
268                 </RegExp>
269         </GetTMDBId>
270         <GetTMDBFanart dest="5">
271                 <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">
272                         <RegExp input="$$1" output="&lt;thumb preview=&quot;/\1/\2_poster.jpg&quot;&gt;/\1/\2.jpg&lt;/thumb&gt;" dest="2">
273                                 <expression repeat="yes">&lt;backdrop size=&quot;original&quot;&gt;.*?/([0-9]*)/([^\.]+).jpg&lt;/backdrop&gt;</expression>
274                         </RegExp>
275                         <expression noclean="1">(.+)</expression>
276                 </RegExp>
277         </GetTMDBFanart>
278 </scraper>