<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<scraper framework="1.0" date="2009-06-05" name="filmweb.pl" content="movies" thumb="filmweb.jpg" language="pl">
	<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></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></expression>
			</RegExp>
			<expression noclean="1"></expression>
		</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"></expression>
		</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"></expression>
		</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></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></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></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></expression>
			</RegExp>
			<expression noclean="1"></expression>
		</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;WikipediaToIMDB&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"></expression>
		</RegExp>
	</FilmwebToWikipedia>
	<WikipediaToIMDB dest="5">
		<RegExp input="$$2" output="&lt;details&gt;\1&lt;/details&gt;" dest="5">
<!--			<RegExp input="$$1" output="&lt;mpaa&gt;IMDb.id = \1&lt;/mpaa&gt;" dest="2+">-->
<!--				<expression>/title/([t0-9]*)</expression>-->
<!--			</RegExp>-->
			<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+">
				<expression>/title/([t0-9]*)</expression>
			</RegExp>
			<expression noclean="1"></expression>
		</RegExp>
	</WikipediaToIMDB>
	<GetTMDBId dest="5">
		<RegExp 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">
			<expression>&lt;id&gt;([0-9]*)&lt;/id&gt;</expression>
		</RegExp>
	</GetTMDBId>
	<GetTMDBFanart dest="5">
		<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">
			<RegExp input="$$1" output="&lt;thumb preview=&quot;/\1/\2_poster.\3&quot;&gt;/\1/\2.\3&lt;/thumb&gt;" dest="2">
				<expression repeat="yes">&lt;backdrop size=&quot;original&quot;&gt;.*?/([0-9]+)/([^\.]+)\.([^&lt;]*)&lt;/backdrop&gt;</expression>
			</RegExp>
			<expression noclean="1">(.+)</expression>
		</RegExp>
	</GetTMDBFanart>
	<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;&lt;thumbs&gt;\1&lt;/thumbs&gt;&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"></expression>
		</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"></expression>
		</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>
