[XBOX] Merged: Linuxport revisions
[xbmc:xbmc-antiquated.git] / system / scrapers / video / filmstarts.xml
1 <?xml version="1.0" encoding="utf-8" standalone="yes"?>
2 <scraper framework="1.0" date="2009-05-22" name="Filmstarts" content="movies" thumb="filmstarts.jpg" 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                         <expression noclean="1"></expression>
9                 </RegExp>
10         </GetSettings>
11
12         <NfoUrl dest="3">
13                 <RegExp input="$$1" output="&lt;url&gt;http://www.filmstarts.de/kritiken/\2.html&lt;/url&gt;"  dest="3">
14                         <expression clear="yes" noclean="1">(filmstarts.de/kritiken/)(.*).html</expression>
15                 </RegExp>       
16                 <RegExp input="$$1" output="&lt;url function=&quot;GetByIMDBId&quot;&gt;http://www.imdb.com/title/tt\2/externalreviews&lt;/url&gt;" dest="3+">
17                         <expression>(imdb.com/)Title\?([0-9]+)</expression>
18                 </RegExp>
19                 <RegExp input="$$1" output="&lt;url function=&quot;GetByIMDBId&quot;&gt;http://www.imdb.com/title/tt\2/externalreviews&lt;/url&gt;" dest="3+">
20                         <expression>(imdb.com/title/tt)([0-9]*)</expression>
21                 </RegExp>
22         </NfoUrl>
23
24         <GetByIMDBId dest="3">
25                 <RegExp input="$$1" output="&lt;url&gt;http://www.filmstarts.de/kritiken/\1&lt;/url&gt;" dest="3+">
26                         <expression noclean="1">&lt;a href=&quot;http://www.filmstarts.de/kritiken/([^&quot;]*)&quot;</expression>
27                 </RegExp>
28         </GetByIMDBId>
29         
30         <!--HIER SUCHE -->
31         <CreateSearchUrl dest="3">
32                 <RegExp input="$$1" output="&lt;url&gt;http://www.filmstarts.de/finde.html?t=film&amp;amp;anfrage=\1&amp;amp;x=0&amp;amp;y=0&amp;&lt;/url&gt;" dest="3">
33                         <expression noclean="1"></expression>
34                 </RegExp>       
35         </CreateSearchUrl>
36
37         <GetSearchResults dest="3">
38                 <RegExp input="$$5" output="&lt;?xml version=&quot;1.0&quot; encoding=&quot;iso-8859-1&quot; standalone=&quot;yes&quot;?&gt;&lt;results&gt;\1&lt;/results&gt;" dest="3">
39                         <RegExp input="$$1" output="&lt;entity&gt;&lt;title&gt;\2&lt;/title&gt;&lt;url&gt;http://www.filmstarts.de/kritiken/\1&lt;/url&gt;;&lt;/entity&gt;" dest="5">
40                                 <expression repeat="yes">&lt;li&gt;&lt;a href=&quot;/kritiken/([^&quot;]*)&quot;&gt;.*?&lt;span class=&quot;t&quot;&gt;([^&lt;]*)&lt;/span&gt;</expression>
41                         </RegExp>
42                         <expression noclean="1"></expression>
43                 </RegExp>
44         </GetSearchResults>
45
46         <GetDetails dest="3">
47                 <RegExp input="$$5" output="&lt;?xml version=&quot;1.0&quot; encoding=&quot;iso-8859-1&quot; standalone=&quot;yes&quot;?&gt;&lt;details&gt;\1&lt;/details&gt;" dest="3">
48
49                         <!--Title -->
50                         <RegExp input="$$1" output="&lt;title&gt;\1&lt;/title&gt;" dest="5+">
51                                 <expression trim="1" noclean="1">&lt;title&gt;([^&lt;|^(]*)</expression>
52                         </RegExp>
53
54                         <!--Original Title-->
55                         <RegExp input="$$1" output="&lt;originaltitle&gt;\1&lt;/originaltitle&gt;" dest="5+">
56                                 <expression>Originaltitel:(.*?)&lt;/div</expression>
57                         </RegExp> 
58                         
59                         <!--Year Film-->
60                         <RegExp input="$$1" output="&lt;year&gt;\1&lt;/year&gt;" dest="5+">
61                                 <expression trim="1" noclean="1">genre&quot;.*weak&quot;.*[A-Z]([0-9 ]*) &lt;/div</expression>
62                         </RegExp>
63
64                         <!--MPAA Film-->
65                         <RegExp input="$$1" output="&lt;mpaa&gt;ab \1&lt;/mpaa&gt;" dest="5+">
66                                 <expression>FSK:.*?Ab ([0-9]*)&lt;</expression>
67                         </RegExp>
68                         
69                         <!--Director Film-->
70                         <RegExp input="$$1" output="&lt;director&gt;\1&lt;/director&gt;" dest="5+">
71                                 <expression trim="1" noclean="1">Regie&lt;/span&gt;.*?class=&quot;name&quot;&gt;(.*?)&lt;/span</expression>
72                         </RegExp>
73                         
74                         <!--Studio Film-->
75                         <RegExp input="$$1" output="&lt;studio&gt;\1&lt;/studio&gt;" dest="5+">
76                                 <expression trim="1" noclean="1">Verleih:.*?&quot;&gt;(.*?)&lt;/td</expression>
77                         </RegExp>                       
78
79                         <!--Runtime Film-->
80                         <RegExp input="$$1" output="&lt;runtime&gt;\1&lt;/runtime&gt;" dest="5+">
81                                 <expression trim="1" noclean="1">Laufzeit:&lt;/span&gt;.*?&quot;&gt;([A-Za-z0-9 ]*)&lt;/td</expression>
82                         </RegExp>
83
84                         <!--User rating-->
85                         <RegExp input="$$1" output="&lt;rating&gt;\1&lt;/rating&gt;&lt;votes&gt;\2&lt;/votes&gt;" dest="5+">
86                                 <expression trim="1" noclean="1">&quot;Wertung: ([0-9]*) / ([0-9]*)&quot;</expression>
87                         </RegExp>
88
89                         <!--Genre Film-->
90                         <RegExp input="$$1" output="&lt;genre&gt;\1&lt;/genre&gt;" dest="5+">
91                                 <expression trim="1" noclean="1">&lt;div class=&quot;genre&quot;&gt;&lt;a.*?&quot;&gt;(.*?)&lt;/a</expression>
92                         </RegExp>
93
94                         <!--Writer-->
95                         <RegExp input="$$1" output="&lt;credits&gt;\1&lt;/credits&gt;" dest="5+">
96                                 <expression trim="1" noclean="1">Drehbuch&lt;/span&gt;.*?class=&quot;name&quot;&gt;([A-Za-z ]*)&lt;/span</expression>
97                         </RegExp>
98                         
99                         <!--Plot-->
100                         <RegExp input="$$1" output="&lt;plot&gt;\1&lt;/plot&gt;" dest="5+">
101                                 <expression trim="1">&quot;text critic topBorder&quot;&gt;([^&lt;]*)&lt;/div</expression>
102                         </RegExp>
103                         <RegExp input="$$1" output="&lt;plot&gt;\1&lt;/plot&gt;" dest="5+">
104                                 <expression trim="1">&quot;text critic topBorder&quot;&gt;.*?&lt;br /&gt;&lt;br /&gt;(.*?)&lt;/div&gt;</expression>
105                         </RegExp>
106
107                         <!--Actors -->
108                         <RegExp input="$$1" output="\1" dest="7+">
109                                 <expression noclean="1">texticon_schauspieler(.*)</expression>
110                         </RegExp>
111                         <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="5+">
112                                 <expression repeat="yes" >class=&quot;name&quot;&gt;([A-Za-z ]*)&lt;/span.*?role weak.*?&quot;&gt;als ([A-Za-z ]*)&lt;/span</expression>
113                         </RegExp>       
114                         <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="5+">
115                                 <expression repeat="yes" >class=&quot;name&quot;&gt;([A-Za-z ]*)&lt;/span</expression>
116                         </RegExp>
117
118                         <!--Posters -->
119                         <RegExp input="$$1" output="&lt;url function=&quot;GetPosters&quot;&gt;http://www.filmstarts.de/kritiken/\1/bilder.html&lt;/url&gt;" dest="5+">
120                                 <expression noclean="1">/kritiken/([-.%a-z0-9A-Z]+)/bilder.html</expression>
121                         </RegExp>
122
123                         <!--URL to Google and Fanart-->
124                         <RegExp conditional="fanart" input="$$8" output="&lt;url function=&quot;GoogleToIMDB&quot;&gt;http://www.google.com/search?q=site:imdb.com\1&lt;/url&gt;" dest="5+">
125                                 <RegExp input="$$1" output="&quot;\1&quot;+\3+||+&quot;\2&quot;" dest="7">
126                                         <expression>&lt;title&gt;([^&lt;|^(]*).*Originaltitel:(.*?)&lt;/div&gt;.*weak&quot;.*[A-Z]([0-9 ]*) &lt;/div</expression>
127                                 </RegExp>
128                                 <RegExp input="$$7" output="+\1" dest="8+">
129                                         <expression repeat="yes">([^ ,]+)</expression>
130                                 </RegExp>
131                                 <expression></expression>
132                         </RegExp>
133                         <expression noclean="1"></expression>
134                 </RegExp>
135         </GetDetails>   
136
137         <!--Poster-->
138         <GetPosters dest="5">
139                 <RegExp input="$$2" output="&lt;?xml version=&quot;1.0&quot; encoding=&quot;iso-8859-1&quot; standalone=&quot;yes&quot;&gt;&lt;details&gt;&lt;thumbs&gt;\1&lt;/thumbs&gt;&lt;/details&gt;" dest="5+">
140                         <RegExp input="$$1" output="&lt;thumb preview=&quot;http://thumbs.filmstarts.de/image/\1&quot;&gt;http://thumbs.filmstarts.de/wallpaper/\1&lt;/thumb&gt;" dest="2">
141                                 <expression repeat="yes">src=&quot;http://thumbs.filmstarts.de/mini/([^&quot;]*)&quot;</expression>
142                         </RegExp>
143                         <expression noclean="1"></expression>
144                 </RegExp>
145         </GetPosters>
146
147         <!--GoogleToIMDB-->
148         <GoogleToIMDB dest="5">
149                 <RegExp input="$$2" output="&lt;?xml version=&quot;1.0&quot; encoding=&quot;iso-8859-1&quot; standalone=&quot;yes&quot;&gt;&lt;details&gt;\1&lt;/details&gt;" dest="5">
150                         <RegExp input="$$1" output="&lt;url function=&quot;GetTMDBId&quot;&gt;http://api.themoviedb.org/2.0/Movie.imdbLookup?imdb_id=\1&amp;amp;api_key=57983e31fb435df4df77afb854740ea9&lt;/url&gt;" dest="2+">
151                                 <expression>/title/([t0-9]*)</expression>
152                         </RegExp>
153                         <expression noclean="1"/>
154                 </RegExp>
155         </GoogleToIMDB>
156
157         <!-- Fanart -->
158         <GetTMDBId dest="5">
159                 <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">
160                         <expression>&lt;id&gt;([0-9]*)&lt;/id&gt;</expression>
161                 </RegExp>
162         </GetTMDBId>
163
164         <GetTMDBFanart dest="5">
165                 <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">
166                         <RegExp input="$$1" output="&lt;thumb preview=&quot;/\1/\2_poster.\3&quot;&gt;/\1/\2.\3&lt;/thumb&gt;" dest="2">
167                                 <expression repeat="yes">&lt;backdrop size=&quot;original&quot;&gt;.*?/([0-9]+)/([^\.]+)\.([^&lt;]*)&lt;/backdrop&gt;</expression>
168                         </RegExp>
169                         <expression noclean="1">(.+)</expression>
170                 </RegExp>
171         </GetTMDBFanart>
172 </scraper>