aboutsummaryrefslogtreecommitdiff
path: root/system/scrapers/video/filmweb.xml
blob: d84495174e194dfbcb10abaaafb6b7798b69d60b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<scraper framework="1.0" date="2009-08-08" name="filmweb.pl" content="movies" thumb="filmweb.jpg" language="pl">
	<include>common/tmdb.xml</include>
	<GetSettings dest="3">
		<RegExp input="$$5" output="&lt;settings&gt;\1&lt;/settings&gt;" dest="3">
			<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">
				<expression/>
			</RegExp>
			<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+">
				<expression/>
			</RegExp>
			<expression noclean="1"/>
		</RegExp>
	</GetSettings>
	<NfoUrl dest="3">
		<RegExp input="$$1" output="&lt;url&gt;http://www.filmweb.pl/f\1/xbmc,2008&lt;/url&gt;"  dest="3">
			<expression noclean="1">filmweb.pl/f([0-9]*)/</expression>
		</RegExp>
		<RegExp input="$$1" output="&lt;url&gt;http://www.filmweb.pl/f\1/xbmc,2008&lt;/url&gt;"  dest="3+">
			<expression noclean="1">Film.id=([0-9]*)</expression>
		</RegExp>
		<RegExp input="$$1" output="&lt;url&gt;http://\1.filmweb.pl&lt;/url&gt;"  dest="3+">
			<expression noclean="1">http://([^\/]+).filmweb.pl</expression>
		</RegExp>
	</NfoUrl>
	<CreateSearchUrl dest="3">
		<RegExp input="$$1" output="http://www.filmweb.pl/szukaj/film?sort=COUNT&amp;q=\1" dest="3">
			<expression noclean="1"/>
		</RegExp>
	</CreateSearchUrl>
	<GetSearchResults dest="8">
		<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">
			<RegExp input="$$1" output="\3\6#\2\5#\1\4#" dest="4">
				<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>
			</RegExp>
			<RegExp input="$$4" output="\1" dest="7">
				<expression>([^&lt;]+)</expression>
			</RegExp>
			<RegExp input="$$4" output="\1" dest="7+">
				<expression repeat="yes">[^&gt;]&gt;([^&lt;]+)</expression>
			</RegExp>
			<RegExp input="$$7" output="&lt;entity&gt;&lt;title&gt;(\1) \2&lt;/title&gt;&lt;url&gt;http://www.filmweb.pl/Film?id=\3&lt;/url&gt;&lt;/entity&gt;" dest="5+">
				<expression repeat="yes">([0-9]+)#([^#]+)#([0-9]+)</expression>
			</RegExp>
			<expression noclean="1"/>
		</RegExp>
	</GetSearchResults>
	<GetDetails clearbuffers="no" dest="3">
		<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">
			<RegExp input="$$1" output="&lt;title&gt;\1&lt;/title&gt;" dest="5">
				<expression trim="1">film-title[^=]+[^&gt;]+[^[0-9A-ZŻŹĆŃĄŚŁĘ]+([^&lt;]+[0-9a-ząężźćśńł])</expression>
			</RegExp>
			<RegExp input="$$1" output="\1" dest="9">
				<expression>Filmweb.globals.filmId = ([0-9]+)</expression>
			</RegExp>
			<RegExp input="$$1" output="&lt;year&gt;\1&lt;/year&gt;" dest="5+">
				<expression>title&gt;.[^&lt;]*\(([0-9]*)</expression>
			</RegExp>
			<RegExp input="$$1" output="&lt;votes&gt;\1&lt;/votes&gt;" dest="5+">
				<expression>głosów:[^&gt;]+&gt;([0-9]*)</expression>
			</RegExp>
			<RegExp input="$$1" output="&lt;rating&gt;\1.\2&lt;/rating&gt;" dest="5+">
				<expression>Średnia ocena:[^,]+&gt;([0-9]*),([0-9]*)</expression>
			</RegExp>
			<RegExp input="$$1" output="&lt;top250&gt;\1&lt;/top250&gt;" dest="5+">
				<expression>wiat: ([0-9]*)</expression>
			</RegExp>
			<RegExp input="$$1" output="&lt;studio&gt;\1\2&lt;/studio&gt;" dest="5+">
				<expression noclean="1">dyst.:[^=]+[^&gt;]+&gt;([^&lt;]+)&lt;/a&gt;|dyst.:[^[A-Z]+([^&lt;]+[a-z])</expression>
			</RegExp>
			<RegExp input="$$1" output="&lt;tagline&gt;\1&lt;/tagline&gt;" dest="5+">
				<expression>recezje-header&quot;[^&lt;]+[^&quot;]+&gt;([^&lt;]+)&lt;/</expression>
			</RegExp>
			<RegExp input="$$1" output="&lt;runtime&gt;\1 min&lt;/runtime&gt;" dest="5+">
				<expression>czas trwania: ([0-9]*)</expression>
			</RegExp>
			<RegExp conditional="!poster" input="$$1" output="&lt;thumb&gt;http://gfx.filmweb.pl/po\1&lt;/thumb&gt;" dest="5+">
				<expression noclean="1">src=&quot;http://gfx.filmweb.pl/po(.[^&quot;]*)</expression>
			</RegExp>
			<RegExp input="$$1" output="&lt;outline&gt;\2...&lt;/outline&gt;" dest="5+">
				<expression>o-filmie-header&quot;[^&lt;]+[^ ]+(&gt;[^[0-9A-Z]+)([^&lt;]+[a-z])</expression>
			</RegExp>
			<RegExp input="$$1" output="\1" dest="6">
				<expression noclean="1">gatunek[^=]*[^&gt;]*&gt;([^&lt;]*)&lt;/a&gt;</expression>
			</RegExp>
			<RegExp input="$$7" output="&lt;genre&gt;\1&lt;/genre&gt;" dest="5+">
				<RegExp input="$$6" output=" / \1" dest="7">
					<expression repeat="yes">([^,]+)</expression>
				</RegExp>
				<expression> / (.*)</expression>
			</RegExp>
			<RegExp input="$$1" output="\1" dest="6">
				<expression noclean="1">yseria[^-]+([^~]*)o-filmie-header</expression>
			</RegExp>
			<RegExp input="$$7" output="&lt;credits&gt;\1&lt;/credits&gt;" dest="5+">
				<RegExp input="$$6" output=" / \1" dest="7">
					<expression repeat="yes">title=&quot;[^&gt;]+&gt;([^&lt;]+)&lt;/a&gt;</expression>
				</RegExp>
				<expression> / (.*)</expression>
			</RegExp>
			<RegExp input="$$1" output="&lt;director&gt;\1&lt;/director&gt;" dest="5+">
				<expression noclean="1">yseria[^&gt;]+&gt;([^&lt;]+)</expression>
			</RegExp>
			<RegExp conditional="!fullcredits" input="$$1" output="\1" dest="6">
				<expression noclean="1">obsada-header([^~]*)zobacz więcej</expression>
			</RegExp>
			<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+">
				<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>
			</RegExp>
			<RegExp conditional="!fullcredits" input="$$6" output="&lt;actor&gt;&lt;thumb&gt;http://gfx.filmweb.pl/p/\1.1.jpg&lt;/thumb&gt;&lt;name&gt;\2&lt;/name&gt;&lt;/actor&gt;" dest="5+">
				<expression repeat="yes" trim="1,2">src=&quot;http://gfx.filmweb.pl/p/([^\.]+)[^&gt;]+[^[a-zA-Z]+([^\n]+)</expression>
			</RegExp>
			<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+">
				<expression/>
			</RegExp>
			<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+">
				<expression>http://([^\/]+).filmweb.pl/f([0-9]*)/[^&gt;]+&quot;&gt;pełna obsada&lt;/a&gt;</expression>
			</RegExp>
			<RegExp input="$$9" output="&lt;url function=&quot;Zwiastuny&quot; &gt;http://www.filmweb.pl/f$$9/xbmc,2008/zwiastuny&lt;/url&gt;" dest="5+">
				<expression/>
			</RegExp>
			<RegExp input="$$9" output="&lt;url function=&quot;Opisy&quot;&gt;http://www.filmweb.pl/f$$9/xbmc,2008/opisy&lt;/url&gt;" dest="5+">
				<expression/>
			</RegExp>
			<RegExp  conditional="poster" input="$$9" output="&lt;url function=&quot;Plakaty&quot;&gt;http://www.filmweb.pl/f$$9/xbmc,2008/plakaty&lt;/url&gt;" dest="5+">
				<expression/>
			</RegExp>
			<expression noclean="1"/>
		</RegExp>
	</GetDetails>
	<FilmwebToWikipedia clearbuffers="no" dest="5">
		<RegExp input="$$2" 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">
			<RegExp input="$$1" output="\1" dest="10">
				<expression>id=$$9&lt;/a&gt; linkuje z [^&gt;]+&gt;([^&lt;]+)</expression>
			</RegExp>
			<RegExp input="$$11" output="&lt;url function=&quot;GetTMDBFanartByIMDBId&quot;&gt;http://pl.wikipedia.org/wiki/\1&lt;/url&gt;" dest="2+">
				<RegExp input="$$10" output="_\1" dest="11">
					<expression repeat="yes">([^ ]+)</expression>
				</RegExp>
				<expression>_(.*)</expression>
			</RegExp>
			<expression noclean="1"/>
		</RegExp>
	</FilmwebToWikipedia>
	<Opisy dest="5">
		<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">
			<RegExp input="$$1" output="\1\n" dest="9">
				<expression>distributors.description.0\][^\[]*justify&quot;&gt;(.[^=]*)&lt;/p&gt;&lt;/li&gt;</expression>
			</RegExp>
			<RegExp input="$$1" output="\1" dest="9+">
				<expression>opisy-header[^\[]*justify&quot;&gt;([^&quot;]*)&lt;/p&gt;&lt;/li&gt;</expression>
			</RegExp>
			<RegExp input="$$9" output="\1" dest="8">
				<expression>([^&lt;]+)</expression>
			</RegExp>
			<RegExp input="$$9" output=" \1" dest="8+">
				<expression repeat="yes">&gt;([^&lt;]+)</expression>
			</RegExp>         
			<expression trim="1">[^[0-9A-ZŻŹĆŃĄŚŁĘ]+([^~]+[0-9a-ząężźćśńł\]\.])</expression>
		</RegExp>
	</Opisy>
	<Plakaty dest="5">
		<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">
			<RegExp input="$$1" output="&lt;thumb&gt;http://gfx.filmweb.pl/po\1&lt;/thumb&gt;" dest="8+">
				<expression noclean="1" repeat="yes">href=&quot;http://gfx.filmweb.pl/po(.[^&quot;]*)</expression>
			</RegExp>            
			<expression noclean="1"/>
		</RegExp>
	</Plakaty>
	<Obsada dest="5">
		<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">
			<RegExp input="$$1" output="\1" dest="9">
				<expression noclean="1">col&quot;&gt;aktorzy&lt;/th([^~]*)class=&quot;film-poster&quot;</expression>
			</RegExp>
			<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+">
				<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>
			</RegExp>
			<RegExp input="$$9" output="&lt;actor&gt;&lt;thumb&gt;http://gfx.filmweb.pl/p/\1.1.jpg&lt;/thumb&gt;&lt;name&gt;\2&lt;/name&gt;&lt;/actor&gt;" dest="8+">
				<expression repeat="yes" trim="1,2">src=&quot;http://gfx.filmweb.pl/p/([^\.]+)[^&gt;]+[^[a-zA-Z]+([^\n]+)</expression>
			</RegExp>
			<expression noclean="1"/>
		</RegExp>
	</Obsada>
	<Zwiastuny dest="5">
		<RegExp input="$$1" output="&lt;details&gt;&lt;url function=&quot;GetTrailerLink&quot;&gt;http://www.filmweb.pl/Trailer\1&lt;/url&gt;&lt;/details&gt;" dest="5">
			<expression clear="yes" noclean="1">href=&quot;/Trailer([^&quot;]+)&quot;>[^\n]*[^[0-9]+4</expression>
		</RegExp>
	</Zwiastuny>
	<GetTrailerLink dest="5">
		<RegExp input="$$1" output="&lt;details&gt;&lt;trailer&gt;\1&lt;/trailer&gt;&lt;/details&gt;" dest="5">
			<expression clear="yes" noclean="1">param name=&quot;src&quot; value=&quot;([^&quot;]+)</expression>
		</RegExp>
	</GetTrailerLink>
</scraper>