changed: updated all fanart enabled scrapers to use the new themoviedb.org 2.0 api...
[xbmc:xbmc-antiquated.git] / system / scrapers / video / filmweb.xml
1 <?xml version="1.0" encoding="utf-8" standalone="yes"?>
2 <scraper name="filmweb.pl" content="movies" thumb="filmweb.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;Wysoka jakosc okladki&quot; type=&quot;bool&quot; id=&quot;poster&quot; default=&quot;false&quot;&gt;&lt;/setting&gt;" dest="5">
6                                 <expression></expression>
7                         </RegExp>
8                         <RegExp input="$$1" output="&lt;setting label=&quot;Pelna obsada&quot; type=&quot;bool&quot; id=&quot;fullcredits&quot; default=&quot;false&quot;&gt;&lt;/setting&gt;" dest="5+">
9                                 <expression></expression>
10                         </RegExp>
11                         <expression noclean="1"></expression>
12                 </RegExp>
13         </GetSettings>
14         <NfoUrl dest="3">
15                 <RegExp input="$$1" output="&lt;url&gt;http://www.filmweb.pl/f\1/xbmc,2008&lt;/url&gt;"  dest="3">
16                         <expression noclean="1">filmweb.pl/f([0-9]*)/</expression>
17                 </RegExp>
18                 <RegExp input="$$1" output="&lt;url&gt;http://www.filmweb.pl/f\1/xbmc,2008&lt;/url&gt;"  dest="3+">
19                         <expression noclean="1">Film.id=([0-9]*)</expression>
20                 </RegExp>
21                 <RegExp input="$$1" output="&lt;url&gt;http://\1.filmweb.pl&lt;/url&gt;"  dest="3+">
22                         <expression noclean="1">http://([^\/]+).filmweb.pl</expression>
23                 </RegExp>
24         </NfoUrl>
25         <CreateSearchUrl dest="3">
26                 <RegExp input="$$1" output="http://193.200.227.13/szukaj/film?sort=COUNT&amp;q=\1" dest="3">
27                         <expression noclean="1"></expression>
28                 </RegExp>
29         </CreateSearchUrl>
30         <GetSearchResults dest="8">
31                 <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">
32                         <RegExp input="$$1" output="\3\6#\2\5#\1\4#" dest="4">
33                                 <expression repeat="yes">src=&quot;http://gfx.filmweb.pl/po/[^/]*/[^/]*/([0-9]*)/.[^#]*&quot;&gt;(.[^(]+)\(([0-9]+)|searchResultTitle&quot; href=[^=]*=([0-9]*)&quot;&gt;(.[^(]*)\(([0-9]*)</expression>
34                         </RegExp>
35                         <RegExp input="$$4" output="\1" dest="7">
36                                 <expression>([^&lt;]+)</expression>
37                         </RegExp>
38                         <RegExp input="$$4" output="\1" dest="7+">
39                                 <expression repeat="yes">[^&gt;]&gt;([^&lt;]+)</expression>
40                         </RegExp>
41                         <RegExp input="$$7" output="&lt;entity&gt;&lt;title&gt;(\1) \2&lt;/title&gt;&lt;url&gt;http://193.200.227.13/Film?id=\3&lt;/url&gt;&lt;/entity&gt;" dest="5+">
42                                 <expression repeat="yes">([0-9]+)#([^#]+)#([0-9]+)</expression>
43                         </RegExp>
44                         <expression noclean="1"></expression>
45                 </RegExp>
46         </GetSearchResults>
47         <GetDetails clearbuffers="no" dest="3">
48                 <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">
49                         <RegExp input="$$1" output="&lt;title&gt;\1&lt;/title&gt;" dest="5">
50                                 <expression trim="1">film-title[^=]+[^&gt;]+[^[0-9A-ZŻŹĆŃĄŚŁĘ]+([^&lt;]+[0-9a-ząężźćśńł])</expression>
51                         </RegExp>
52                         <RegExp input="$$1" output="\1" dest="9">
53                                 <expression>Filmweb.globals.filmId = ([0-9]+)</expression>
54                         </RegExp>
55                         <RegExp input="$$1" output="&lt;year&gt;\1&lt;/year&gt;" dest="5+">
56                                 <expression>title&gt;.[^&lt;]*\(([0-9]*)</expression>
57                         </RegExp>
58                         <RegExp input="$$1" output="&lt;votes&gt;\1&lt;/votes&gt;" dest="5+">
59                                 <expression>głosów:[^&gt;]+&gt;([0-9]*)</expression>
60                         </RegExp>
61                         <RegExp input="$$1" output="&lt;rating&gt;\1.\2&lt;/rating&gt;" dest="5+">
62                                 <expression>Średnia ocena:[^,]+&gt;([0-9]*),([0-9]*)</expression>
63                         </RegExp>
64                         <RegExp input="$$1" output="&lt;top250&gt;\1&lt;/top250&gt;" dest="5+">
65                                 <expression>wiat: ([0-9]*)</expression>
66                         </RegExp>
67                         <RegExp input="$$1" output="&lt;studio&gt;\1\2&lt;/studio&gt;" dest="5+">
68                                 <expression noclean="1">dyst.:[^&gt;]+&gt;([^&lt;]+)&lt;/a&gt;|dyst.:[^[A-Z]+([^&lt;]+[a-z])</expression>
69                         </RegExp>
70                         <RegExp input="$$1" output="&lt;tagline&gt;\1&lt;/tagline&gt;" dest="5+">
71                                 <expression>recezje-header&quot;[^&lt;]+[^&quot;]+&gt;([^&lt;]+)&lt;/</expression>
72                         </RegExp>
73                         <RegExp input="$$1" output="&lt;runtime&gt;\1 min&lt;/runtime&gt;" dest="5+">
74                                 <expression>czas trwania: ([0-9]*)</expression>
75                         </RegExp>
76                         <RegExp conditional="!poster" input="$$1" output="&lt;thumb&gt;http://193.200.227.12/po\1&lt;/thumb&gt;" dest="5+">
77                                 <expression noclean="1">src=&quot;http://gfx.filmweb.pl/po(.[^&quot;]*)</expression>
78                         </RegExp>
79                         <RegExp input="$$1" output="&lt;outline&gt;\2...&lt;/outline&gt;" dest="5+">
80                                 <expression>o-filmie-header&quot;[^&lt;]+[^ ]+(&gt;[^[0-9A-Z]+)([^&lt;]+[a-z])</expression>
81                         </RegExp>
82                         <RegExp input="$$1" output="\1" dest="6">
83                                 <expression noclean="1">gatunek([^\n]*)</expression>
84                         </RegExp>
85                         <RegExp input="$$7" output="&lt;genre&gt;\1&lt;/genre&gt;" dest="5+">
86                                 <RegExp input="$$6" output=" / \1" dest="7">
87                                         <expression repeat="yes">&lt;a href[^&gt;]*&gt;([^&lt;]*)&lt;/a&gt;</expression>
88                                 </RegExp>
89                                 <expression> / (.*)</expression>
90                         </RegExp>
91                         <RegExp input="$$1" output="\1" dest="6">
92                                 <expression noclean="1">yseria[^-]+([^~]*)o-filmie-header</expression>
93                         </RegExp>
94                         <RegExp input="$$7" output="&lt;credits&gt;\1&lt;/credits&gt;" dest="5+">
95                                 <RegExp input="$$6" output=" / \1" dest="7">
96                                         <expression repeat="yes">title=&quot;[^&gt;]+&gt;([^&lt;]+)&lt;/a&gt;</expression>
97                                 </RegExp>
98                                 <expression> / (.*)</expression>
99                         </RegExp>
100                         <RegExp input="$$1" output="&lt;director&gt;\1&lt;/director&gt;" dest="5+">
101                                 <expression noclean="1">yseria[^&gt;]+&gt;([^&lt;]+)</expression>
102                         </RegExp>
103                         <RegExp conditional="!fullcredits" input="$$1" output="\1" dest="6">
104                                 <expression noclean="1">obsada-header([^~]*)zobacz więcej</expression>
105                         </RegExp>
106                         <RegExp conditional="!fullcredits" input="$$6" output="&lt;actor&gt;&lt;name&gt;\1\3&lt;/name&gt;&lt;role&gt;\2\4&lt;/role&gt;&lt;/actor&gt;" dest="5+">
107                                 <expression repeat="yes" trim="1,3,4">src=&quot;[^&gt;]+[^[a-zA-Z]+([^\n]+)[^h]+href=[^&gt;]+&gt;([^&lt;]+)&lt;/a&gt;|src=&quot;[^&gt;]+[^[a-zA-Z]+([^\n]+)[^=]*[^&gt;]+[^[a-zA-Z]+([^\n]+)</expression>
108                         </RegExp>
109                         <RegExp conditional="!fullcredits" input="$$6" output="&lt;actor&gt;&lt;thumb&gt;http://193.200.227.12/p/\1.1.jpg&lt;/thumb&gt;&lt;name&gt;\2&lt;/name&gt;&lt;/actor&gt;" dest="5+">
110                                 <expression repeat="yes" trim="1,2">src=&quot;http://gfx.filmweb.pl/p/([^\.]+)[^&gt;]+[^[a-zA-Z]+([^\n]+)</expression>
111                         </RegExp>
112                         <RegExp input="$$9" output="&lt;url function=&quot;FilmwebToWikipedia&quot;&gt;http://pl.wikipedia.org/w/index.php?title=Specjalna%3ALinksearch&amp;amp;target=http://www.filmweb.pl/Film?id=$$9&lt;/url&gt;" dest="5+">
113                                 <expression></expression>
114                         </RegExp>
115                         <RegExp conditional="fullcredits" input="$$1" output="&lt;url function=&quot;Obsada&quot; &gt;http://\1.filmweb.pl/f\2/xbmc,2008/obsada&lt;/url&gt;" dest="5+">
116                                 <expression>http://([^\/]+).filmweb.pl/f([0-9]*)/[^&gt;]+&quot;&gt;pełna obsada&lt;/a&gt;</expression>
117                         </RegExp>
118                         <RegExp input="$$9" output="&lt;url function=&quot;Zwiastuny&quot; &gt;http://193.200.227.13/f$$9/xbmc,2008/zwiastuny&lt;/url&gt;" dest="5+">
119                                 <expression></expression>
120                         </RegExp>
121                         <RegExp input="$$9" output="&lt;url function=&quot;Opisy&quot;&gt;http://193.200.227.13/f$$9/xbmc,2008/opisy&lt;/url&gt;" dest="5+">
122                                 <expression></expression>
123                         </RegExp>
124                         <RegExp  conditional="poster" input="$$9" output="&lt;url function=&quot;Plakaty&quot;&gt;http://193.200.227.13/f$$9/xbmc,2008/plakaty&lt;/url&gt;" dest="5+">
125                                 <expression></expression>
126                         </RegExp>
127                         <expression noclean="1"></expression>
128                 </RegExp>
129         </GetDetails>
130         <FilmwebToWikipedia clearbuffers="no" dest="5">
131                 <RegExp input="$$2" output="&lt;details&gt;\1&lt;/details&gt;" dest="5">
132                         <RegExp input="$$9" output="&lt;id&gt;$$9&lt;/id&gt;" dest="2+">
133                                 <expression></expression>
134                         </RegExp>
135                         <RegExp input="$$1" output="&lt;url function=&quot;WikipediaToIMDB&quot;&gt;http://pl.wikipedia.org\1&lt;/url&gt;" dest="2+">
136                                 <expression>id=$$9&lt;/a&gt; linkuje z &lt;a href=&quot;([^&quot;]*)</expression>
137                         </RegExp>
138                         <expression noclean="1"></expression>
139                 </RegExp>
140         </FilmwebToWikipedia>
141         <WikipediaToIMDB dest="5">
142                 <RegExp input="$$1" output="&lt;details&gt;&lt;url function=&quot;IMDBDetails&quot;&gt;http://akas.imdb.com/title/\1&lt;/url&gt;&lt;/details&gt;" dest="5">
143                         <expression clear="yes" noclean="1">/title/([t0-9]*)</expression>
144                 </RegExp>
145         </WikipediaToIMDB>
146         <IMDBDetails dest="5">
147                 <RegExp input="$$2" output="&lt;details&gt;\1&lt;/details&gt;" dest="5">
148                         <RegExp input="$$1" output="&lt;originaltitle&gt;\1&lt;/originaltitle&gt;" dest="2+">
149                                 <expression trim="1" noclean="1">&lt;title&gt;([^&lt;|^(]*)</expression>
150                         </RegExp>
151                         <RegExp input="$$1" output="&lt;mpaa&gt;\1&lt;/mpaa&gt;" dest="2+">
152                                 <expression>MPAA&lt;/a&gt;:&lt;/h5&gt;(.[^&lt;]*)</expression>
153                         </RegExp>
154                         <RegExp input="$$1" output="&lt;certification&gt;\1 \3&lt;/certification&gt;" dest="2+">
155                                 <expression repeat="yes">&lt;a href=&quot;/List\?certificates=[^&quot;]*&quot;&gt;([^&lt;]*)&lt;/a&gt;[^&lt;]*(&lt;i&gt;([^&lt;]*)&lt;/i&gt;)?</expression>
156                         </RegExp>
157                         <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+">
158                                 <expression>/title/([t0-9]*)/faq</expression>
159                         </RegExp>
160                         <expression noclean="1"></expression>
161                 </RegExp>
162         </IMDBDetails>
163         <GetTMDBId dest="5">
164                 <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">
165                         <expression>&lt;id&gt;([0-9]*)&lt;/id&gt;</expression>
166                 </RegExp>
167         </GetTMDBId>
168         <GetTMDBFanart dest="5">
169                 <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">
170                         <RegExp input="$$1" output="&lt;thumb preview=&quot;/\1/\2_poster.jpg&quot;&gt;/\1/\2.jpg&lt;/thumb&gt;" dest="2">
171                                 <expression repeat="yes">&lt;backdrop size=&quot;original&quot;&gt;.*?/([0-9]*)/([^\.]+).jpg&lt;/backdrop&gt;</expression>
172                         </RegExp>
173                         <expression noclean="1">(.+)</expression>
174                 </RegExp>
175         </GetTMDBFanart>
176         <Opisy dest="5">
177                 <RegExp input="$$8" 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">
178                         <RegExp input="$$1" output="\1\n" dest="9">
179                                 <expression>distributors.description.0\][^\[]*justify&quot;&gt;(.[^=]*)&lt;/p&gt;&lt;/li&gt;</expression>
180                         </RegExp>
181                         <RegExp input="$$1" output="\1" dest="9+">
182                                 <expression>opisy-header[^\[]*justify&quot;&gt;[^[0-9A-ZŻŹĆŃĄŚŁĘ]+([^&quot;]*)&lt;/p&gt;&lt;/li&gt;</expression>
183                         </RegExp>
184                         <RegExp input="$$9" output="\1" dest="8">
185                                 <expression>([^&lt;]+)</expression>
186                         </RegExp>
187                         <RegExp input="$$9" output=" \1" dest="8+">
188                                 <expression repeat="yes">&gt;([^&lt;]+)</expression>
189                         </RegExp>         
190                         <expression trim="1">([^~]+[0-9a-ząężźćśńł\]\.])</expression>
191                 </RegExp>
192         </Opisy>
193         <Plakaty dest="5">
194                 <RegExp input="$$8" output="&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot; standalone=&quot;yes&quot;?&gt;&lt;details&gt;&lt;thumbs&gt;\1&lt;/thumbs&gt;&lt;/details&gt;" dest="5">
195                         <RegExp input="$$1" output="&lt;thumb&gt;http://193.200.227.12/po\1&lt;/thumb&gt;" dest="8+">
196                                 <expression noclean="1" repeat="yes">href=&quot;http://gfx.filmweb.pl/po(.[^&quot;]*)</expression>
197                         </RegExp>            
198                         <expression noclean="1"></expression>
199                 </RegExp>
200         </Plakaty>
201         <Obsada dest="5">
202                 <RegExp input="$$8" 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">
203                         <RegExp input="$$1" output="\1" dest="9">
204                                 <expression noclean="1">col&quot;&gt;aktorzy&lt;/th([^~]*)class=&quot;film-poster&quot;</expression>
205                         </RegExp>
206                         <RegExp input="$$9" output="&lt;actor&gt;&lt;name&gt;\1\3&lt;/name&gt;&lt;role&gt;\2\4&lt;/role&gt;&lt;/actor&gt;" dest="8+">
207                                 <expression repeat="yes" trim="1,3,4">src=&quot;[^&gt;]+[^[a-zA-Z]+([^\n]+)[^h]+href=[^&gt;]+&gt;([^&lt;]+)&lt;/a&gt;|src=&quot;[^&gt;]+[^[a-zA-Z]+([^\n]+)[^=]*=&quot;film-protagonist[^&gt;]+[^[a-zA-Z]+([^\n]+)&amp;nbsp;</expression>
208                         </RegExp>
209                         <RegExp input="$$9" output="&lt;actor&gt;&lt;thumb&gt;http://193.200.227.12/p/\1.1.jpg&lt;/thumb&gt;&lt;name&gt;\2&lt;/name&gt;&lt;/actor&gt;" dest="8+">
210                                 <expression repeat="yes" trim="1,2">src=&quot;http://gfx.filmweb.pl/p/([^\.]+)[^&gt;]+[^[a-zA-Z]+([^\n]+)</expression>
211                         </RegExp>
212                         <expression noclean="1"></expression>
213                 </RegExp>
214         </Obsada>
215         <Zwiastuny dest="5">
216                 <RegExp input="$$1" output="&lt;details&gt;&lt;url function=&quot;GetTrailerLink&quot;&gt;http://193.200.227.13/Trailer\1&lt;/url&gt;&lt;/details&gt;" dest="5">
217                         <expression clear="yes" noclean="1">href=&quot;/Trailer([^&quot;]+)&quot;>[^\n]*[^[0-9]+4</expression>
218                 </RegExp>
219         </Zwiastuny>
220         <GetTrailerLink dest="5">
221                 <RegExp input="$$1" output="&lt;details&gt;&lt;trailer&gt;\1&lt;/trailer&gt;&lt;/details&gt;" dest="5">
222                         <expression clear="yes" noclean="1">param name=&quot;src&quot; value=&quot;([^&quot;]+)</expression>
223                 </RegExp>
224         </GetTrailerLink>
225 </scraper>