<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<scraper framework="1.1" date="2010-02-26" name="MovieMaze" content="movies" thumb="moviemaze.png" language="de">
	<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;Trailer&quot; type=&quot;bool&quot; id=&quot;trailer&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\2/\3.html&lt;/url&gt;&lt;id&gt;\1&lt;/id&gt;" dest="3">
			<expression clear="yes" noclean="1">(http://www.moviemaze.de/filme/)([0-9]*)/(.*).html</expression>
		</RegExp>
		<RegExp input="$$1" output="&lt;url cache=&quot;tt\2&quot; function=&quot;GetByIMDBId&quot;&gt;http://www.imdb.com/title/tt\2/externalreviews&lt;/url&gt;&lt;id&gt;tt\2&lt;/id&gt;" dest="3+">
			<expression>(imdb.com/)Title\?([0-9]+)</expression>
		</RegExp>
		<RegExp input="$$1" output="&lt;url cache=&quot;tt\2&quot; function=&quot;GetByIMDBId&quot;&gt;http://www.imdb.com/title/tt\2/externalreviews&lt;/url&gt;&lt;id&gt;tt\2&lt;/id&gt;" dest="3+">
			<expression>(imdb.com/title/tt)([0-9]*)</expression>
		</RegExp>
	</NfoUrl>
	<GetByIMDBId dest="3">
		<RegExp input="$$1" output="&lt;url&gt;http://www.moviemaze.de/filme/\1/\2&lt;/url&gt;&lt;id&gt;$$2&lt;/id&gt;" dest="3+">
			<expression noclean="1">&lt;a href=&quot;http://www.moviemaze.de/filme/([0-9]*)/([^&quot;]*)</expression>
		</RegExp>
	</GetByIMDBId>
	<CreateSearchUrl dest="3">
		<RegExp input="$$1" output="http://www.moviemaze.de/suche/result.phtml?searchword=\1" 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&gt;\1&lt;/results&gt;" dest="8">
			<RegExp input="$$1" output="&lt;entity&gt;&lt;title&gt;\3&lt;/title&gt;&lt;url&gt;http://www.moviemaze.de/filme/\1/\2&lt;/url&gt;&lt;id&gt;\1&lt;/id&gt;&lt;/entity&gt;" dest="5+">
				<expression repeat="yes">&lt;a href=&quot;/filme/([0-9]+)/([^&quot;]*)&quot;&gt;&lt;b style=&quot;font-size:9pt;font-weight:bold;&quot;&gt;([^&lt;]*)&lt;/b&gt;</expression>
			</RegExp>
			<expression noclean="1"/>
		</RegExp>
	</GetSearchResults>
	<GetDetails dest="3">
		<RegExp input="$$5" output="&lt;details&gt;\1&lt;/details&gt;" dest="3">
			<!--Title-->
			<RegExp input="$$1" output="&lt;title&gt;\1&lt;/title&gt;" dest="5+">
				<expression trim="1" noclean="1">&lt;h1&gt;([^&lt;]*)</expression>
			</RegExp>
			<!--Original Title-->
			<RegExp input="$$1" output="&lt;originaltitle&gt;\1&lt;/originaltitle&gt;" dest="5+">
				<expression>&lt;h2&gt;\(([^,]*)</expression>
			</RegExp> 
			<!--Year Film-->
			<RegExp input="$$1" output="&lt;year&gt;\1&lt;/year&gt;" dest="5+">
				<expression>([0-9]+)\)&lt;/h2</expression>
			</RegExp>
			<!--MPAA Film-->
			<RegExp input="$$4" output="&lt;mpaa&gt;\1&lt;/mpaa&gt;" dest="5+">
				<RegExp input="$$1" output="\2" dest="4">
					<expression trim="2">FSK([^&quot;]*)&quot;standard&quot; valign=&quot;top&quot;&gt;&lt;nobr&gt;([^&lt;]*)</expression>
				</RegExp>
				<expression>[\t]\b(.*)\b</expression>
			</RegExp>
			<!--Director Film-->
			<RegExp input="$$7" output="&lt;director&gt;\1&lt;/director&gt;" dest="5+">
				<RegExp input="$$1" output="\2" dest="4">
					<expression>Regie([^&quot;]*)&quot;standard_justify&quot;&gt;([^&lt;]*)</expression>
				</RegExp>
				<RegExp input="$$4" output="\1" dest="7">
					<expression>[\t]\b(.*)\b</expression>
				</RegExp>
				<expression repeat="yes">([^,]+)</expression>
			</RegExp>
			<!--Runtime Film-->
			<RegExp input="$$4" output="&lt;runtime&gt;\1&lt;/runtime&gt;" dest="5+">
				<RegExp input="$$1" output="\2" dest="4">
					<expression>L.nge([^&quot;]*)&quot;standard&quot; valign=&quot;top&quot;&gt;&lt;nobr&gt;([^&lt;]*)</expression>
				</RegExp>
				<expression>[\t]\b(.*)\b</expression>
			</RegExp>
			<!--URL to Thumbnail-->
			<RegExp input="$$1" output="&lt;url function=&quot;GetThumbnailLink&quot;&gt;http://www.moviemaze.de/media/poster/\1/\2&lt;/url&gt;" dest="5+">
				<expression>/media/poster/([0-9]+)/([^&quot;]*)</expression>
			</RegExp>
			<!--URL to Trailer-->
			<RegExp conditional="trailer" input="$$1" output="&lt;url function=&quot;GetTrailerLink&quot;&gt;http://www.moviemaze.de/media/trailer/\1.html&lt;/url&gt;" dest="5+">
				<expression>/media/trailer/([0-9]+,[a-zA-Z0-9\-]+).html. ti</expression>
			</RegExp>
			<!--User rating-->
			<RegExp input="$$1" output="&lt;rating&gt;\1&lt;/rating&gt;&lt;votes&gt;100&lt;/votes&gt;" dest="5+">
				<expression trim="1" noclean="1">Wertung von ([0-9]+)%</expression>
			</RegExp>
			<!--Genre Film-->
			<RegExp input="$$7" output="&lt;genre&gt;\1&lt;/genre&gt;" dest="5+">
				<RegExp input="$$1" output="\2" dest="4">
					<expression>Genre([^&quot;]*)&quot;standard&quot; valign=&quot;top&quot;&gt;([^&lt;]*)</expression>
				</RegExp>
				<RegExp input="$$4" output="\1" dest="7">
					<expression>[\t]\b(.*)\b</expression>
				</RegExp>
				<expression repeat="yes">([^, ]+)</expression>
			</RegExp>
			<!--Writer-->
			<RegExp input="$$7" output="&lt;credits&gt;\1&lt;/credits&gt;" dest="5+">
				<RegExp input="$$1" output="\2" dest="4">
					<expression trim="2">Drehbuch([^%]*)%&gt;([^&lt;]*)</expression>
				</RegExp>
				<RegExp input="$$4" output="\1" dest="7">
					<expression>[\t]\b(.*)\b</expression>
				</RegExp>
				<expression repeat="yes">([^,]+)</expression>
			</RegExp>
			<!--Plot-->
			<RegExp input="$$1" output="&lt;plot&gt;\1&lt;/plot&gt;" dest="5+">
				<expression trim="1">&lt;div id=&quot;plot&quot;>(.*?)&lt;/div&gt;</expression>
			</RegExp>
			<!--Actors-->	
			<RegExp input="$$7" output="&lt;actor&gt;&lt;name&gt;\2&lt;/name&gt;&lt;role&gt;\5&lt;/role&gt;&lt;/actor&gt;" dest="5+">
				<RegExp input="$$1" output="\2" dest="4">
					<expression>Darsteller:([^%]*)%&gt;(.*?)&lt;/td</expression>
				</RegExp>
				<RegExp input="$$4" output="\1" dest="7">
					<expression>[\t]\b(.*)\b</expression>
				</RegExp>
				<expression repeat="yes">(&lt;a href\="[^&gt;]*&gt;)?(.*?)(&lt;/a&gt;)?( \((.*?)\))?, </expression>
			</RegExp>
			<!--Google or IMDbId-->
			<RegExp input="$$2" output="tt\1" dest="6">
				<expression clear="yes">tt([0-9]*)</expression>
			</RegExp>
			<RegExp input="$$1" output="\1+%7C%7C+\2" dest="7">
				<expression trim="1,2" encode="1,2">&lt;h1&gt;([^&lt;]*)&lt;/h1&gt;&lt;h2&gt;\(([^,]*)</expression>
			</RegExp>
			<!--TMDB Thumbs & Fanart (IMDbId)-->
			<RegExp input="$$6" output="&lt;url cache=&quot;$$6&quot; function=&quot;GetTMDBFanartById&quot;&gt;http://imdb.com/title/$$6&lt;/url&gt;" dest="5+">
				<expression>.+</expression>
			</RegExp>
			<RegExp input="$$6" output="&lt;url cache=&quot;$$6&quot; function=&quot;GetTMDBThumbsById&quot;&gt;http://imdb.com/title/$$6&lt;/url&gt;" dest="5+">
				<expression>.+</expression>
			</RegExp>
			<!--TMDB Thumbs & Fanart (Google)-->
			<RegExp input="$$6" output="&lt;url cache=&quot;google-$$2&quot; function=&quot;GetTMDBFanartById&quot;&gt;http://www.google.com/search?q=site:imdb.com+releaseinfo+$$7&lt;/url&gt;" dest="5+">
				<expression>^$</expression>
			</RegExp>
			<RegExp input="$$6" output="&lt;url cache=&quot;google-$$2&quot; function=&quot;GetTMDBThumbsById&quot;&gt;http://www.google.com/search?q=site:imdb.com+releaseinfo+$$7&lt;/url&gt;" dest="5+">
				<expression>^$</expression>
			</RegExp>
			<expression noclean="1"/>
		</RegExp>
	</GetDetails>
	<!--Thumbnail-->
	<GetThumbnailLink dest="5">
		<RegExp input="$$2" 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="5+">
			<RegExp input="$$1" output="&lt;thumb&gt;http://www.moviemaze.de/filme/\1/poster_lg\2.jpg&lt;/thumb&gt;" dest="2">
				<expression repeat="yes">/([0-9]+)/poster([0-9]+)</expression>
			</RegExp>
			<expression noclean="1"/>
		</RegExp>
	</GetThumbnailLink>
	<!--Trailer-->
	<GetTrailerLink dest="5">
		<RegExp input="$$2" 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="5+">
			<RegExp input="$$1" output="&lt;trailer urlencoded=&quot;yes&quot;&gt;http://www.moviemaze.de/media/trailer/delivery/\1.mov&lt;/trailer&gt;" dest="2+">
				<expression>delivery/([0-9]+/[a-z0-9]+/[0-9]+_trailer[0-9]+-de_640).mov</expression>
			</RegExp>
			<RegExp input="$$1" output="&lt;trailer urlencoded=&quot;yes&quot;&gt;http://www.moviemaze.de/media/trailer/delivery/\1.mov&lt;/trailer&gt;" dest="2+">
				<expression>delivery/([0-9]+/[a-z0-9]+/[0-9]+_trailer[0-9]+-de_480).mov</expression>
			</RegExp>
			<RegExp input="$$1" output="&lt;trailer urlencoded=&quot;yes&quot;&gt;http://www.moviemaze.de/media/trailer/delivery/\1.mov&lt;/trailer&gt;" dest="2+">
				<expression>delivery/([0-9]+/[a-z0-9]+/[0-9]+_trailer[0-9]+-de_384).mov</expression>
			</RegExp>
			<RegExp input="$$1" output="&lt;trailer urlencoded=&quot;yes&quot;&gt;http://www.moviemaze.de/media/trailer/delivery/\1.mov&lt;/trailer&gt;" dest="2+">
				<expression>delivery/([0-9]+/[a-z0-9]+/[0-9]+_trailer[0-9]+-de_320).mov</expression>
			</RegExp>
			<expression clear="yes" noclean="1"/>
		</RegExp>
	</GetTrailerLink>
</scraper>
