<?xml version="1.0" encoding="iso-8859-1"?>
<scraper framework="1.1" date="2010-01-24" name="Filmbasen" content="movies" thumb="filmbasen.png" language="no">
	<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;Enable 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>-->
	<NfoUrl dest="3">
		<RegExp input="$$1" output="&lt;url&gt;\1&lt;/url&gt;" dest="3">
			<expression clear="yes" noclean="1">(http://www.dagbladet.no/film/*)</expression>
		</RegExp>
	</NfoUrl>
	<CreateSearchUrl dest="3" SearchStringEncoding="iso-8859-1">
		<RegExp input="$$1" output="&lt;url&gt;http://www.dagbladet.no/altomfilm/find.php?string=\1&amp;type=film&lt;/url&gt;" dest="3">
			<expression noclean="1"/>
		</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 sorted=&quot;yes&quot;&gt;\1&lt;/results&gt;" dest="8">
			<RegExp input="$$1" output="&lt;entity&gt;&lt;title&gt;\3&lt;/title&gt;&lt;url cache=&quot;\2.html&quot;&gt;http://www.dagbladet.no\1&lt;/url&gt;&lt;id&gt;\2&lt;/id&gt;&lt;year&gt;\4&lt;/year&gt;&lt;/entity&gt;" dest="5+">
				<expression repeat="yes" noclean="1">&lt;a href=&apos;(/film/film/\?id=([0-9]+))&apos;&gt;&lt;b&gt;([^&lt;]*)&lt;/b&gt;&lt;/a&gt;[^&lt;]*?([0-9]+)&lt;</expression>
			</RegExp>
			<RegExp input="$$1" output="\2" dest="2">
				<expression noclean="1">&lt;h1 class=&quot;guardian( title)?&quot;[^&gt;]*?&gt;([^&lt;]*?)&lt;</expression>
			</RegExp>
			<RegExp input="$$1" output="&lt;entity&gt;&lt;title&gt;$$2&lt;/title&gt;&lt;url cache=&quot;\1.html&quot;&gt;http://www.dagbladet.no/film/film/?id=\1&lt;/url&gt;&lt;id&gt;\1&lt;/id&gt;&lt;/entity&gt;" dest="5+">
				<expression noclean="1">javascript:throwDice\(([^,]*?),</expression>
			</RegExp>
			<expression clear="yes" noclean="1"/>
		</RegExp>
	</GetSearchResults>
	<GetDetails dest="3">
		<RegExp input="$$5" output="&lt;?xml version=&quot;1.0&quot; encoding=&quot;iso-8859-1&quot; standalone=&quot;yes&quot;?&gt;&lt;details&gt;\1&lt;/details&gt;" dest="3">
			<RegExp input="$$1" output="&lt;title&gt;\2&lt;/title&gt;" dest="5">
				<expression noclean="1">&lt;h1 class=&quot;guardian( title)?&quot;[^&gt;]*?&gt;([^&lt;]*?)&lt;</expression>
			</RegExp>
			<RegExp input="$$1" output="&lt;originaltitle&gt;\1&lt;/originaltitle&gt;" dest="5+">
				<expression noclean="1">Originaltittel:&lt;/h5&gt;([^&lt;]*?)&lt;/li</expression>
			</RegExp>
			<RegExp input="$$1" output="\1" dest="4">
				<expression>Premiere.r:&lt;/h5&gt;([^&lt;]*?)&lt;/li</expression>
			</RegExp>
			<RegExp input="$$1" output="&lt;url function=&quot;GetTMDBThumbsById&quot;&gt;http://www.google.com/search?q=\1+%20($$4)+site:imdb.com&lt;/url&gt;" dest="5+">
				<expression noclean="1" encode="1">Originaltittel:&lt;/h5&gt;([^&lt;]*?)&lt;/li</expression>
			</RegExp>
			<RegExp input="$$1" output="&lt;url function=&quot;GetTMDBFanartById&quot;&gt;http://www.google.com/search?q=\1+%20($$4)+site:imdb.com&lt;/url&gt;" dest="5+">
				<expression noclean="1" encode="1">Originaltittel:&lt;/h5&gt;([^&lt;]*?)&lt;/li</expression>
			</RegExp>
			<RegExp input="$$1" output="&lt;mpaa&gt;\1&lt;/mpaa&gt;" dest="5+">
				<expression>Aldersgrense:&lt;/h5&gt;([0-9]+)</expression>
			</RegExp>
			<RegExp input="$$1" output="&lt;year&gt;\1&lt;/year&gt;" dest="5+">
				<expression>Premiere.r:&lt;/h5&gt;([^&lt;]*?)&lt;/li</expression>
			</RegExp>
			<RegExp input="$$1" output="\1" dest="4">
				<expression noclean="1">Kategori\(er\):&lt;/h5&gt;([^&lt;]*?)&lt;/li</expression>
			</RegExp>
			<RegExp input="$$4" output="&lt;genre&gt;\1&lt;/genre&gt;" dest="5+">
				<expression repeat="yes" noclean="1">([^,]*?), ?</expression>
			</RegExp>
			<RegExp input="$$1" output="&lt;plot&gt;\1&lt;/plot&gt;" dest="5+">
				<expression>OM FILMEN: (.*?)&lt;/div&gt;</expression>
			</RegExp>
			<RegExp input="$$1" output="\1" dest="4">
				<expression noclean="1">Skuespillere&lt;/h2(.*?)&lt;/ul&gt;</expression>
			</RegExp>
			<RegExp input="$$4" output="&lt;actor&gt;&lt;name&gt;\1&lt;/name&gt;&lt;role&gt;\3&lt;/role&gt;&lt;/actor&gt;" dest="5+">
				<expression repeat="yes" noclean="1">&lt;a href=&quot;[^&gt;]*?&gt;([^&lt;]*?)&lt;/a&gt;&lt;br&gt;( - ([^&lt;]*))?&lt;</expression>
			</RegExp>
			<RegExp input="$$1" output="\1" dest="4">
				<expression clear="yes" noclean="1">Regi:&lt;/h5&gt;(.*?)&lt;/li</expression>
			</RegExp>
			<RegExp input="$$4" output="&lt;credits&gt;\1&lt;/credits&gt;" dest="5+">
				<expression repeat="yes" noclean="1">a href=[^&gt;]*?&gt;([^&lt;]*)&lt;</expression>
			</RegExp>
			<RegExp input="$$1" output="&lt;votes&gt;\1&lt;/votes&gt;" dest="5+">
				<expression>votesAverage&quot;&gt;([0-9]+)&lt;</expression>
			</RegExp>
			<RegExp input="$$1" output="&lt;rating&gt;\1&lt;/rating&gt;" dest="5+">
				<expression>Lesernes terningkast.*?javascript:throwDice\([^,]*?,[^,]*?,(.*?)\)</expression>
			</RegExp>
			<expression noclean="1"/>
		</RegExp>
	</GetDetails>
</scraper>
