<?xml version="1.0" encoding="UTF-8"?>
<scraper framework="1.0" date="2009-05-22" name="Sratim" content="movies" thumb="sratim.gif" language="il">
	<GetSettings dest="3">
		<RegExp input="$$5" output="&lt;settings&gt;\1&lt;/settings&gt;" dest="3">
			<RegExp input="$$1" output="&lt;setting label=&quot;Enable Full Cast Credits&quot; type=&quot;bool&quot; id=&quot;fullcredits&quot; default=&quot;false&quot;&gt;&lt;/setting&gt;" dest="5">
				<expression></expression>
			</RegExp>
                        <RegExp input="$$1" output="&lt;setting label=&quot;Enable Trailer&quot; type=&quot;bool&quot; id=&quot;trailer&quot; default=&quot;true&quot;&gt;&lt;/setting&gt;" dest="5+">
                                <expression></expression>
                        </RegExp>
			<RegExp input="$$1" output="&lt;setting label=&quot;Enable Fanart&quot; type=&quot;bool&quot; id=&quot;fanart&quot; default=&quot;false&quot;&gt;&lt;/setting&gt;" dest="5+">
				<expression></expression>
			</RegExp>
			<RegExp input="$$1" output="&lt;setting label=&quot;Get Rank From IMDB&quot; type=&quot;bool&quot; id=&quot;imdbrank&quot; default=&quot;false&quot;&gt;&lt;/setting&gt;" dest="5+">
				<expression></expression>
			</RegExp> 
			<expression noclean="1"></expression>
		</RegExp>
	</GetSettings>
	<CreateSearchUrl dest="3">
		<RegExp input="$$1" output="&lt;url&gt;http://www.sratim.co.il/movies/search.aspx?Keyword=\1&lt;/url&gt;" dest="3">
			<expression noclean="1"></expression>
		</RegExp>
	</CreateSearchUrl>
	<GetSearchResults dest="8">
		<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">
			<RegExp input="$$1" output="&lt;entity&gt;&lt;title&gt;\2&lt;/title&gt;&lt;url&gt;http://www.sratim.co.il/\1&lt;/url&gt;&lt;/entity&gt;" dest="5">
				<expression clear="yes" noclean="1" repeat="yes">&lt;table class="MovieViews".*?&gt;.*?&lt;a href="(.[^"]*)"&gt;(.*?)&lt;div&gt;.*?&lt;/table&gt;</expression>
			</RegExp>
			<expression clear="yes" noclean="1"></expression>
		</RegExp>
	</GetSearchResults>
	<GetDetails clearbuffers="no" dest="3">
		<RegExp input="$$5" output="&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" noclean="1">&lt;div.*?class="Box_Header"&gt;&lt;table.*?&gt;&lt;tr&gt;&lt;td.*?&gt;(.*?)&lt;/td&gt;</expression>
			</RegExp>
			<RegExp input="$$1" output="&lt;plot&gt;\1&lt;/plot&gt;" dest="5+">
				<expression trim="1">&lt;u&gt;תקציר:&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;(.*?)&lt;/div&gt;</expression>
			</RegExp>
			<RegExp input="$$1" output="&lt;genre&gt;\1&lt;/genre&gt;" dest="5+">
				<expression trim="1" repeat="yes">&lt;a href="/movies/search.aspx\?g=.*?"&gt;(.*?)&lt;/a&gt;</expression>
			</RegExp>
			<expression noclean="1"></expression>
			<RegExp input="$$1" output="\1" dest="7">
				<expression repeat="no" noclean="1">&lt;b&gt;שחקנים:&lt;/b&gt;(.*?)&lt;br /&gt;</expression>
			</RegExp>
			<RegExp input="$$1" output="&lt;studio&gt;\1&lt;/studio&gt;" dest="5+">
				<expression trim="1" repeat="yes">&lt;a href="/movies/companies/view.aspx\?id=.*?"&gt;(.*?)&lt;/a&gt;</expression>
			</RegExp>
			<RegExp input="$$7" output="&lt;actor&gt;&lt;name&gt;\1&lt;/name&gt;&lt;/actor&gt;" dest="5+">
				<expression trim="1" repeat="yes">&lt;a href="/movies/actors/view.aspx\?id=.*?"&gt;(.*?)&lt;/a&gt;</expression>
			</RegExp>
			<RegExp conditional="!fullcredits" input="$$7" output="&lt;url function=&quot;GetActorDetails&quot;&gt;http://www.sratim.co.il/movies/actors/view.aspx?id=\1&lt;/url&gt;" dest="5+"><expression repeat="yes">&lt;a href="/movies/actors/view.aspx\?id=(.*?)"&gt;</expression></RegExp><RegExp input="$$1" output="\1" dest="7">
				<expression repeat="no" noclean="1">&lt;b&gt;במאי:&lt;/b&gt;(.*?)&lt;br /&gt;</expression>
			</RegExp>
			<RegExp input="$$7" output="&lt;director&gt;\1&lt;/director&gt;" dest="5+">
				<expression trim="1" repeat="yes">&lt;a href="/movies/actors/view.aspx\?id=.*?"&gt;(.*?)&lt;/a&gt;</expression>
			</RegExp>
			<RegExp input="$$1" output="&lt;year&gt;\1&lt;/year&gt;" dest="5+">
				<expression trim="1">&lt;span id="ctl00_ctl00_Body_Body_Box_ProductionYear"&gt;(.*?)&lt;/span&gt;</expression>
			</RegExp>
			<RegExp input="$$1" output="&lt;rating&gt;\1&lt;/rating&gt;" dest="5+" conditional="!imdbrank">
				<expression trim="1" repeat="no">&lt;img alt="(.*?)/10" src="/Images/Star_Big_.*?.gif" /&gt;</expression>
			</RegExp>
			<RegExp input="$$1" output="&lt;votes&gt;\1&lt;/votes&gt;" dest="5+" conditional="!imdbrank">
				<expression trim="1" repeat="no">&lt;span.*?&gt;([0-9]+?) מדרגים&lt;/span&gt;</expression>
			</RegExp>
			<RegExp input="$$1" output="&lt;runtime&gt;\1&lt;/runtime&gt;" dest="5+">
				<expression trim="1" repeat="no">&lt;b&gt;אורך:&lt;/b&gt; ([0-9]+?) דקות.</expression>
			</RegExp>
			<RegExp input="$$1" output="&lt;thumb&gt;http://www.sratim.co.il\1&lt;/thumb&gt;" dest="5+">
				<expression trim="1" repeat="no">&lt;img src="(/movies/images/.*?)" id="ctl00_ctl00_Body_Body_Box_MainPicture"</expression>
			</RegExp>
			<RegExp input="$$1" output="&lt;url function=&quot;GetIMDBDetails&quot;&gt;http://www.imdb.com/title/\1/&lt;/url&gt;" dest="5+">
				<expression trim="1" repeat="no">http://www\.imdb\.com/title/(tt\d+?)'</expression>
			</RegExp>
                        <RegExp conditional="fanart" 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="5+">
				<expression trim="1" repeat="no">http://www\.imdb\.com/title/(tt\d+?)'</expression>
                        </RegExp>
			<RegExp conditional="imdbrank" input="$$1" output="&lt;rating&gt;\1&lt;/rating&gt;" dest="5+">
				<expression trim="1" repeat="no">&lt;img alt="([0-9]+\.[0-9]*)/10" src="/Images/Star_IMDB</expression>
			</RegExp>
			<RegExp conditional="imdbrank" input="$$1" output="&lt;votes&gt;\1&lt;/votes&gt;" dest="5+">
				<expression trim="1" repeat="no">Star_IMDB.*?&lt;span.*?&gt;([0-9]+?) מדרגים&lt;/span&gt;</expression>
			</RegExp>
		</RegExp>
	</GetDetails>
	<GetActorDetails clearbuffers="no" dest="5"><RegExp input="$$2" output="&lt;details&gt;\1&lt;/details&gt;" dest="5">
			<expression noclean="1"></expression>
			<RegExp input="$$1" output="&lt;actor&gt;&lt;name&gt;\1&lt;/name&gt;&lt;thumb&gt;http://www.sratim.co.il\2&lt;/thumb&gt;&lt;/actor&gt;" dest="2+">
				<expression clear="yes" repeat="no">&lt;div class="Box_Header"&gt;.*?&lt;span.*?&gt;(.*?)&lt;/span&gt;.*?&lt;div class="Box_Body"&gt;.*?&lt;img.*?src="(/movies/Actors/Images/.*?)" /&gt;</expression>
			</RegExp>
		</RegExp>
	</GetActorDetails>
        <GetIMDBDetails dest="5">
        <RegExp input="$$3" 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 conditional="trailer" input="$$1" output="&lt;url function=&quot;GetTrailer&quot;&gt;http://akas.imdb.com/video/imdb/vi\1/player&lt;/url&gt;" dest="3+">
                        <expression>/vi([0-9]*)/&quot;</expression>
                </RegExp>
                <expression noclean="1"></expression>
        </RegExp>
        </GetIMDBDetails>
        <GetTrailer clearbuffers="no" dest="5">
                <RegExp input="$$2" output="&lt;details&gt;&lt;trailer urlencoded=&quot;yes&quot;&gt;\1&lt;/trailer&gt;&lt;/details&gt;" dest="5">
                        <RegExp input="$$1" output="\1" dest="2">
                                <expression noclean="1">&quot;file&quot;[^&quot;]*&quot;([^&quot;]*)</expression>
                        </RegExp>
                        <RegExp input="$$1" output="$$2/\1" dest="2">
                                <expression noclean="1">&quot;id&quot;[^&quot;]*&quot;([^&quot;]*)</expression>
                        </RegExp>
                        <expression noclean="1"></expression>
                </RegExp>
        </GetTrailer>
        <GetTMDBId dest="5">
                <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">
                        <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>
</scraper>
