<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<scraper framework="1.0" date="2009-05-22" name="MovieMaze" content="movies" thumb="moviemaze.jpg" language="de">
	<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></expression>
			</RegExp>
			<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></expression>
			</RegExp>
			<expression noclean="1"></expression>
		</RegExp>
	</GetSettings>

        <NfoUrl dest="3">
                <RegExp input="$$1" output="&lt;url&gt;\1\2/\3.html&lt;/url&gt;" dest="3">
                        <expression clear="yes" noclean="1">(http://www.moviemaze.de/filme/)([0-9]*)/(.*).html</expression>
                </RegExp>
                <RegExp input="$$1" output="&lt;url function=&quot;GetByIMDBId&quot;&gt;http://www.imdb.com/title/tt\2/externalreviews&lt;/url&gt;" dest="3+">
                        <expression>(imdb.com/)Title\?([0-9]+)</expression>
                </RegExp>
                <RegExp input="$$1" output="&lt;url function=&quot;GetByIMDBId&quot;&gt;http://www.imdb.com/title/tt\2/externalreviews&lt;/url&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;\1&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;/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="$$2" output="&lt;mpaa&gt;\1&lt;/mpaa&gt;" dest="5+">
				<RegExp input="$$1" output="\2" dest="2">
					<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="2">
					<expression>Regie([^&quot;]*)&quot;standard_justify&quot;&gt;([^&lt;]*)</expression>
				</RegExp>
				<RegExp input="$$2" output="\1" dest="7">
					<expression>[\t]\b(.*)\b</expression>
				</RegExp>
				<expression repeat="yes">([^,]+)</expression>
			</RegExp>		
			<!--Runtime Film-->
			<RegExp input="$$2" output="&lt;runtime&gt;\1&lt;/runtime&gt;" dest="5+">
				<RegExp input="$$1" output="\2" dest="2">
					<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>
			<!--URL to Google and Fanart-->
			<RegExp conditional="fanart" input="$$8" output="&lt;url function=&quot;GoogleToIMDB&quot;&gt;http://www.google.com/search?q=site:imdb.com+moviemaze\1&lt;/url&gt;" dest="5+">
				<RegExp input="$$1" output="&quot;\1&quot;" dest="7">
					<expression>&lt;h2&gt;\(([^,]*)</expression>
				</RegExp>
				<RegExp input="$$7" output="+\1" dest="8+">
					<expression repeat="yes">([^ ,]+)</expression>
				</RegExp>
        	        	<expression></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="2">
					<expression>Genre([^&quot;]*)&quot;standard&quot; valign=&quot;top&quot;&gt;([^&lt;]*)</expression>
				</RegExp>
				<RegExp input="$$2" 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="2">
					<expression trim="2">Drehbuch([^%]*)%&gt;([^&lt;]*)</expression>
				</RegExp>
				<RegExp input="$$2" output="\1" dest="7">
					<expression>[\t]\b(.*)\b</expression>
				</RegExp>
				<expression repeat="yes">([^,]+)</expression>
			</RegExp>
			<!--Plot-->
			<RegExp input="$$1" output="&lt;plot&gt;\2&lt;/plot&gt;" dest="5+">
				<expression trim="1">Inhalt&lt;/h3&gt;.([^&gt;]*)&gt;([^&lt;]*)</expression>
			</RegExp>
			<!--Actors-->	
			<RegExp input="$$4" 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="2">
					<expression>Darsteller:([^%]*)%&gt;(.*?)&lt;/td</expression>
				</RegExp>
				<RegExp input="$$2" output="\1" dest="4">
					<expression>[\t]\b(.*)\b</expression>
				</RegExp>
				<expression repeat="yes">(&lt;a href\="[^&gt;]*&gt;)?(.*?)(&lt;/a&gt;)?( \((.*?)\))?, </expression>
			</RegExp>
			<expression noclean="1"></expression>
		</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;&lt;thumbs&gt;\1&lt;/thumbs&gt;&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"></expression>
		</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"></expression>
		</RegExp>
	</GetTrailerLink>
	<!--GoogleToIMDB-->
	<GoogleToIMDB 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;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"/>
		</RegExp>
	</GoogleToIMDB>
	<!-- Fanart -->
	<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>
