changed: updated all fanart enabled scrapers to use the new themoviedb.org 2.0 api...
[xbmc:xbmc-antiquated.git] / system / scrapers / video / moviemaze.xml
1 <?xml version="1.0" encoding="utf-8" standalone="yes"?>
2 <scraper name="MovieMaze" content="movies" thumb="moviemaze.jpg">
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;Trailer&quot; type=&quot;bool&quot; id=&quot;trailer&quot; default=&quot;true&quot;&gt;&lt;/setting&gt;" dest="5+">
9                                 <expression></expression>
10                         </RegExp>
11                         <expression noclean="1"></expression>
12                 </RegExp>
13         </GetSettings>
14
15         <CreateSearchUrl dest="3">
16                 <RegExp input="$$1" output="http://www.moviemaze.de/suche/result.phtml?searchword=\1" dest="3">
17                         <expression noclean="1"/>
18                 </RegExp>       
19         </CreateSearchUrl>
20
21         <GetSearchResults dest="8">
22                 <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="8">
23                         <RegExp input="$$1" output="&lt;entity&gt;&lt;title&gt;\3&lt;/title&gt;&lt;url&gt;http://www.moviemaze.de/filme/\1/\2&lt;/url&gt;&lt;/entity&gt;" dest="5+">
24                                 <expression repeat="yes">&lt;a href=&quot;/filme/([0-9]+)/([^&quot;]*)&quot;&gt;&lt;b style=&quot;font-size:9pt;font-weight:bold;&quot;&gt;([^&lt;]*)&lt;/b&gt;</expression>
25                 </RegExp>
26                         <expression noclean="1"/>
27                 </RegExp>
28         </GetSearchResults>
29
30         <GetDetails dest="3">
31                 <RegExp input="$$5" output="&lt;details&gt;\1&lt;/details&gt;" dest="3">
32                         <!--Title-->
33                         <RegExp input="$$1" output="&lt;title&gt;\1&lt;/title&gt;" dest="5+">
34                                 <expression trim="1" noclean="1">&lt;h1&gt;([^&lt;]*)</expression>
35                         </RegExp>
36                         <!--Original Title-->
37                         <RegExp input="$$1" output="&lt;originaltitle&gt;\1&lt;/originaltitle&gt;" dest="5+">
38                                 <expression>&lt;h2&gt;\(([^,]*)</expression>
39                         </RegExp> 
40                         <!--Year Film-->
41                         <RegExp input="$$1" output="&lt;year&gt;\1&lt;/year&gt;" dest="5+">
42                                 <expression>([0-9]+)\)&lt;/h2</expression>
43                         </RegExp>
44                         <!--MPAA Film-->
45                         <RegExp input="$$2" output="&lt;mpaa&gt;\1&lt;/mpaa&gt;" dest="5+">
46                                 <RegExp input="$$1" output="\2" dest="2">
47                                         <expression trim="2">FSK([^&quot;]*)&quot;standard&quot; valign=&quot;top&quot;&gt;&lt;nobr&gt;([^&lt;]*)</expression>
48                                 </RegExp>
49                                 <expression>[\t]\b(.*)\b</expression>
50                         </RegExp>
51                         <!--Director Film-->
52                         <RegExp input="$$7" output="&lt;director&gt;\1&lt;/director&gt;" dest="5+">
53                                 <RegExp input="$$1" output="\2" dest="2">
54                                         <expression>Regie([^&quot;]*)&quot;standard_justify&quot;&gt;([^&lt;]*)</expression>
55                                 </RegExp>
56                                 <RegExp input="$$2" output="\1" dest="7">
57                                         <expression>[\t]\b(.*)\b</expression>
58                                 </RegExp>
59                                 <expression repeat="yes">([^,]+)</expression>
60                         </RegExp>               
61                         <!--Runtime Film-->
62                         <RegExp input="$$2" output="&lt;runtime&gt;\1&lt;/runtime&gt;" dest="5+">
63                                 <RegExp input="$$1" output="\2" dest="2">
64                                         <expression>L.nge([^&quot;]*)&quot;standard&quot; valign=&quot;top&quot;&gt;&lt;nobr&gt;([^&lt;]*)</expression>
65                                 </RegExp>
66                                 <expression>[\t]\b(.*)\b</expression>
67                         </RegExp>
68                         <!--URL to Thumbnail-->
69                         <RegExp input="$$1" output="&lt;url function=&quot;GetThumbnailLink&quot;&gt;http://www.moviemaze.de/media/poster/\1/\2&lt;/url&gt;" dest="5+">
70                                 <expression>/media/poster/([0-9]+)/([^&quot;]*)</expression>
71                         </RegExp>
72                         <!--URL to Trailer-->
73                         <RegExp conditional="trailer" input="$$1" output="&lt;url function=&quot;GetTrailerLink&quot;&gt;http://www.moviemaze.de/media/trailer/\1.html&lt;/url&gt;" dest="5+">
74                                 <expression>/media/trailer/([0-9]+,[a-zA-Z0-9\-]+).html. ti</expression>
75                         </RegExp>
76                         <!--URL to Google and Fanart-->
77                         <RegExp conditional="fanart" input="$$8" output="&lt;url function=&quot;GoogleToIMDB&quot;&gt;http://www.google.com/search?q=site:imdb.com+moviemaze\1&lt;/url&gt;" dest="5+">
78                                 <RegExp input="$$1" output="\1" dest="7">
79                                         <expression>&lt;h2&gt;\((.*)\)&lt;</expression>
80                                 </RegExp>
81                                 <RegExp input="$$7" output="+\1" dest="8+">
82                                         <expression repeat="yes">([^ ,]+)</expression>
83                                 </RegExp>
84                                 <expression></expression>
85                         </RegExp>
86                         <!--User rating-->
87                         <RegExp input="$$1" output="&lt;rating&gt;\1&lt;/rating&gt;" dest="5+">
88                                 <expression trim="1" noclean="1">Wertung von ([0-9]+)%</expression>
89                         </RegExp>
90                         <!--Genre Film-->
91                         <RegExp input="$$7" output="&lt;genre&gt;\1&lt;/genre&gt;" dest="5+">
92                                 <RegExp input="$$1" output="\2" dest="2">
93                                         <expression>Genre([^&quot;]*)&quot;standard&quot; valign=&quot;top&quot;&gt;([^&lt;]*)</expression>
94                                 </RegExp>
95                                 <RegExp input="$$2" output="\1" dest="7">
96                                         <expression>[\t]\b(.*)\b</expression>
97                                 </RegExp>
98                                 <expression repeat="yes">([^, ]+)</expression>
99                         </RegExp>
100                         <!--Writer-->
101                         <RegExp input="$$7" output="&lt;credits&gt;\1&lt;/credits&gt;" dest="5+">
102                                 <RegExp input="$$1" output="\2" dest="2">
103                                         <expression trim="2">Drehbuch([^%]*)%&gt;([^&lt;]*)</expression>
104                                 </RegExp>
105                                 <RegExp input="$$2" output="\1" dest="7">
106                                         <expression>[\t]\b(.*)\b</expression>
107                                 </RegExp>
108                                 <expression repeat="yes">([^,]+)</expression>
109                         </RegExp>
110                         <!--Plot-->
111                         <RegExp input="$$1" output="&lt;plot&gt;\2&lt;/plot&gt;" dest="5+">
112                                 <expression trim="1">Inhalt&lt;/h3&gt;.([^&gt;]*)&gt;([^&lt;]*)</expression>
113                         </RegExp>
114                         <!--Actors-->   
115                         <RegExp input="$$4" output="&lt;actor&gt;&lt;name&gt;\2&lt;/name&gt;&lt;role&gt;\5&lt;/role&gt;&lt;/actor&gt;" dest="5+">
116                                 <RegExp input="$$1" output="\2" dest="2">
117                                         <expression>Darsteller:([^%]*)%&gt;(.*?)&lt;/td</expression>
118                                 </RegExp>
119                                 <RegExp input="$$2" output="\1" dest="4">
120                                         <expression>[\t]\b(.*)\b</expression>
121                                 </RegExp>
122                                 <expression repeat="yes">(&lt;a href\="[^&gt;]*&gt;)?(.*?)(&lt;/a&gt;)?( \((.*?)\))?, </expression>
123                         </RegExp>
124                         <expression noclean="1"></expression>
125                 </RegExp>
126         </GetDetails>
127
128         <!--Thumbnail-->
129         <GetThumbnailLink dest="5">
130                 <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+">
131                         <RegExp input="$$1" output="&lt;thumb&gt;http://www.moviemaze.de/filme/\1/poster_lg\2.jpg&lt;/thumb&gt;" dest="2">
132                                 <expression repeat="yes">/([0-9]+)/poster([0-9]+)</expression>
133                         </RegExp>
134                         <expression noclean="1"></expression>
135                 </RegExp>
136         </GetThumbnailLink>
137         <!--Trailer-->
138         <GetTrailerLink clearbuffers="no" 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;\1&lt;/details&gt;" dest="5+">
140                         <RegExp input="$$1" output="&lt;trailer urlencoded=&quot;yes&quot;&gt;http://www.moviemaze.de/media/trailer/delivery/\1.mov&lt;/trailer&gt;" dest="2">
141                                 <expression>delivery/([0-9]+/[a-z0-9]+/[0-9]+_trailer[0-9]+-de_480).mov</expression>
142                         </RegExp>
143                         <expression noclean="1"></expression>
144                 </RegExp>
145         </GetTrailerLink>
146         <!--GoogleToIMDB-->
147         <GoogleToIMDB dest="5">
148                 <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">
149                         <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+">
150                                 <expression>/title/([t0-9]*)</expression>
151                         </RegExp>
152                 <expression noclean="1"/>
153                 </RegExp>
154         </GoogleToIMDB>
155         <!-- Fanart -->
156         <GetTMDBId dest="5">
157                 <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">
158                         <expression>&lt;id&gt;([0-9]*)&lt;/id&gt;</expression>
159                 </RegExp>
160         </GetTMDBId>
161         <GetTMDBFanart dest="5">
162                 <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">
163                         <RegExp input="$$1" output="&lt;thumb preview=&quot;/\1/\2_poster.jpg&quot;&gt;/\1/\2.jpg&lt;/thumb&gt;" dest="2">
164                                 <expression repeat="yes">&lt;backdrop size=&quot;original&quot;&gt;.*?/([0-9]*)/([^\.]+).jpg&lt;/backdrop&gt;</expression>
165                         </RegExp>
166                         <expression noclean="1">(.+)</expression>
167                 </RegExp>
168         </GetTMDBFanart>
169 </scraper>