<?xml version="1.0" encoding="utf-8" standalone="no"?>
<scraper framework="1.1" date="2009-12-06" content="movies" name="Filmdelta.se" thumb="filmdelta.png" language="sv">
	<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;Fanart&quot; type=&quot;bool&quot; id=&quot;fanart&quot; default=&quot;true&quot;&gt;&lt;/setting&gt;" dest="5+">
				<expression/>
			</RegExp>
			<expression noclean="1"/>
		</RegExp>
	</GetSettings>
	<CreateSearchUrl clearbuffers="no" dest="3">
		<RegExp input="$$1" output="http://www.filmdelta.se/search.php?string=\1&amp;type=movie&amp;more=1" dest="3">
			<RegExp input="$$1" output="\1" dest="9">
				<expression>%28(.*?)%29</expression>
			</RegExp>
			<expression trim="1"/>
		</RegExp>
	</CreateSearchUrl>
	<GetSearchResults dest="8">
		<RegExp input="$$5" output="&lt;results&gt;\1&lt;/results&gt;" dest="8">
			<RegExp input="$$1" output="&lt;entity&gt;&lt;title&gt;\2&lt;/title&gt;&lt;year&gt;\3&lt;/year&gt;&lt;url cache=&quot;filmdelta.html&quot;&gt;http://www.filmdelta.se/filmer/\1&lt;/url&gt;&lt;/entity&gt;" dest="5">
				<expression repeat="yes" noclean="1">&lt;a href="/filmer/([^"]*)"&gt;([^&lt;]*)&lt;/a&gt; \(([0-9]*)\)</expression>
			</RegExp>
			<RegExp input="$$1" output="&lt;entity&gt;&lt;title&gt;\2&lt;/title&gt;&lt;year&gt;$$9&lt;/year&gt;&lt;url cache=&quot;filmdelta.html&quot;&gt;http://www.filmdelta.se/filmer/\1&lt;/url&gt;&lt;/entity&gt;" dest="5">
				<expression repeat="yes" noclean="1">&lt;a href="/filmer/([^"]*)"&gt;([^&lt;]*)&lt;/a&gt; \($$9\)</expression>
			</RegExp>
			<expression noclean="1"/>
		</RegExp>
	</GetSearchResults>
	<GetDetails 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 noclean="1">&lt;title&gt; (.*?) - Filmdelta -</expression>
			</RegExp>
			<RegExp input="$$1" output="&lt;year&gt;\1&lt;/year&gt;&lt;runtime&gt;\2&lt;/runtime&gt;" dest="5+">
				<expression noclean="1">([0-9]*)&lt;/a&gt;, ([0-9]*) min</expression>
			</RegExp>
			<RegExp input="$$1" output="&lt;plot&gt;\1&lt;/plot&gt;&lt;outline&gt;\1&lt;/outline&gt;" dest="5+">
				<expression trim="1">&lt;div class="text"&gt;[^&lt;]*&lt;p&gt;(.*?)&lt;/p&gt;</expression>
			</RegExp>
			<RegExp input="$$7" output="&lt;actor&gt;&lt;name&gt;\1&lt;/name&gt;&lt;role&gt;\2&lt;/role&gt;&lt;/actor&gt;" dest="5+">
				<RegExp input="$$1" output="\1" dest="7">
					<expression noclean="1">&lt;div class="info" id="actors"&gt;(.*?)&lt;/div&gt;</expression>
				</RegExp>
				<expression repeat="yes" trim="1,2">/'&gt;([^&lt;]*)&lt;/a&gt; - ([^&lt;]*)&lt;/h5&gt;</expression>
			</RegExp>
			<RegExp input="$$6" output="&lt;director&gt;\1&lt;/director&gt;" dest="5+">
				<RegExp input="$$1" output="\1" dest="6">
					<expression noclean="1">&lt;h4&gt;Regiss&amp;ouml;r&lt;/h4&gt;(.*?)&lt;/div&gt;</expression>
				</RegExp>
				<expression repeat="yes" trim="1">/'&gt;([^&lt;]*)&lt;/a&gt;&lt;/h5&gt;</expression>
			</RegExp>
			<RegExp input="$$6" output="&lt;credits&gt;\1&lt;/credits&gt;" dest="5+">
				<RegExp input="$$1" output="\1" dest="6+">
					<expression noclean="1">&lt;h4&gt;Manus&lt;/h4&gt;(.*?)&lt;/div&gt;</expression>
				</RegExp>
				<expression repeat="yes" trim="1">/'&gt;([^&lt;]*)&lt;/a&gt;&lt;/h5&gt;</expression>
			</RegExp>
			<RegExp input="$$8" output="&lt;genre&gt;\1&lt;/genre&gt;" dest="5+">
				<RegExp input="$$1" output="\1" dest="8">
					<expression noclean="1">&lt;h4&gt;Kategori&lt;/h4&gt;(.*?)&lt;/div&gt;</expression>
				</RegExp>
				<expression repeat="yes" trim="1">type=category'&gt;([^&lt;]*)&lt;/a&gt;&lt;/h5&gt;</expression>
			</RegExp>
			<RegExp input="$$9" output="&lt;url cache=&quot;filmdelta-trans.xml&quot; function=&quot;GetTMDBThumbsById&quot;&gt;http://www.google.com/search?q=site:imdb.com\1&lt;/url&gt;" dest="5+">                                                                
				<RegExp input="$$1" output="&quot;\1&quot;+\2" dest="4+">
					<expression>&lt;h4&gt;Originaltitel&lt;/h4&gt;[^&lt;]*&lt;h5&gt;([^&lt;]*)&lt;/h5&gt;.*?/filmarkiv/([0-9]*)/</expression>
				</RegExp>
				<RegExp input="$$4" output="+\1" dest="9+">
					<expression repeat="yes">([^ ,]+)</expression>
				</RegExp>
				<expression/>
			</RegExp>
			<RegExp input="$$2" output="&lt;url cache=&quot;filmdelta.html&quot; function=&quot;GetFilmdeltaThumb&quot;&gt;$$3&lt;/url&gt;" dest="5+">
				<expression/>
			</RegExp>
			<RegExp conditional="fanart" input="$$9" output="&lt;url cache=&quot;filmdelta-trans.xml&quot; function=&quot;GetTMDBFanartById&quot;&gt;http://www.google.com/search?q=site:imdb.com\1&lt;/url&gt;" dest="5+">             
				<RegExp input="$$1" output="&quot;\1&quot;+\2" dest="4+">
					<expression>&lt;h4&gt;Originaltitel&lt;/h4&gt;[^&lt;]*&lt;h5&gt;([^&lt;]*)&lt;/h5&gt;.*?/filmarkiv/([0-9]*)/</expression>
				</RegExp>
				<RegExp input="$$4" output="+\1" dest="9+">
					<expression repeat="yes">([^ ,]+)</expression>
				</RegExp>
				<expression/>
			</RegExp>
			<expression noclean="1"/>
		</RegExp>
	</GetDetails>
	<GetFilmdeltaThumb dest="5">
		<RegExp input="$$1" output="&lt;details&gt;&lt;thumb&gt;http://www.filmdelta.se\1&lt;/thumb&gt;&lt;/details&gt;" dest="5+">
			<expression noclean="1">&lt;div class="box images" id="title-images"&gt;[^&lt;]*&lt;div class="inner"&gt;&lt;img  style='width:px' src='([^']*)</expression>
		</RegExp>
	</GetFilmdeltaThumb>
</scraper>
