<?xml version="1.0" encoding="UTF-8"?>
<scraper framework="1.0" date="2009-05-22" name="PTGate and IMDb" content="movies" thumb="ptgate.jpg" language="pt">
	<GetSettings dest="3">
		<RegExp input="$$5" output="&lt;settings&gt;\1&lt;/settings&gt;" dest="3">
			<RegExp input="$$1" output="&lt;setting label=&quot;Utilizar apenas o Cinema PTGate&quot; type=&quot;bool&quot; id=&quot;ptgateonly&quot; default=&quot;false&quot;&gt;&lt;/setting&gt;" dest="5">
				<expression></expression>
			</RegExp>
			<RegExp input="$$1" output="&lt;setting type=&quot;sep&quot;&gt;&lt;/setting&gt;" dest="5+">
				<expression></expression>
			</RegExp>
			<RegExp input="$$1" output="&lt;setting label=&quot;Incluir detalhes e fotos dos Actores&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;Incluir detalhes do IMPAwards&quot; type=&quot;bool&quot; id=&quot;impawards&quot; default=&quot;true&quot;&gt;&lt;/setting&gt;" dest="5+">
				<expression></expression>
			</RegExp>
			<RegExp input="$$1" output="&lt;setting label=&quot;Incluir detalhes do MoviePosterDB&quot; type=&quot;bool&quot; id=&quot;movieposterdb&quot; default=&quot;false&quot;&gt;&lt;/setting&gt;" dest="5+">
				<expression></expression>
			</RegExp>
			<RegExp input="$$1" output="&lt;setting label=&quot;Incluir 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;Incluir 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;Tamanhos do Poster e das Fotos dos Actores&quot; type=&quot;labelenum&quot; values=&quot;192|256|384|512|1024&quot; id=&quot;imdbscale&quot; default=&quot;512&quot;&gt;&lt;/setting&gt;" dest="5+">
				<expression></expression>
			</RegExp>
			<RegExp input="$$1" output="&lt;setting type=&quot;sep&quot;&gt;&lt;/setting&gt;" dest="5+">
				<expression></expression>
			</RegExp>
			<RegExp input="$$1" output="&lt;setting label=&quot;Url para acesso ao IMDb&quot; type=&quot;text&quot; id=&quot;url&quot; default=&quot;akas.imdb.com&quot;&gt;&lt;/setting&gt;" dest="5+">
				<expression></expression>
			</RegExp>
			<expression noclean="1"></expression>
		</RegExp>
	</GetSettings>

	<NfoUrl dest="3">
		<RegExp input="$$1" output="\1" dest="3">
			<expression clear="yes" noclean="1">(http://www.cinema.ptgate.pt/filmes/[0-9]*)</expression>
		</RegExp>
	</NfoUrl>

	<CreateSearchUrl dest="3">
		<RegExp input="$$1" output="&lt;url&gt;http://www.cinema.ptgate.pt/pesquisa/?q=\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 dest="5+" input="$$1" output="&lt;entity&gt;&lt;title&gt;\2 - \4 (\3)&lt;/title&gt;&lt;url&gt;http://www.cinema.ptgate.pt/filmes/\1&lt;/url&gt;&lt;id&gt;\1&lt;/id&gt;&lt;/entity&gt;">
				<expression repeat="yes" trim="2,3">&lt;a href=&quot;/filmes/([0-9]*)&quot;&gt;(.*?)&lt;/a&gt; &lt;small&gt;([^\(]*)\(([0-9]*)\)</expression>
			</RegExp>
			<RegExp dest="5" input="$$1" output="&lt;entity&gt;&lt;title&gt;\2 - \3 (\4)&lt;/title&gt;&lt;url&gt;http://www.cinema.ptgate.pt/filmes/\1&lt;/url&gt;&lt;id&gt;\1&lt;/id&gt;&lt;/entity&gt;">
				<expression trim="2,4">&lt;a href=&quot;/filmes/([0-9]*)&quot; class=&quot;upper&quot;&gt;([^&lt;]*)&lt;/a&gt; &lt;small&gt;\(([0-9]*)\)&lt;br /&gt;([^&lt;]*)</expression>
			</RegExp>
			<expression noclean="1"></expression>
		</RegExp>
	</GetSearchResults>

	<GetDetails clearbuffers="no" dest="3">
		<RegExp input="$$5" output="&lt;details&gt;\1&lt;/details&gt;" dest="3">
			<!-- Id -->
			<RegExp dest="5" input="$$2" output="&lt;id&gt;\1&lt;/id&gt;">
				<expression></expression>
			</RegExp>

			<!-- Title -->
			<RegExp dest="5+" input="$$1" output="&lt;title&gt;\1&lt;/title&gt;">
				<expression>&lt;h2&gt;([^&lt;]*)&lt;/h2&gt;</expression>
			</RegExp>

			<!-- Plot -->
			<RegExp dest="5+" input="$$1" output=";&lt;plot&gt;\1&lt;/plot&gt;">
				<expression>&lt;b&gt;sinopse[^\n]*\s+([^\n]*)</expression>
			</RegExp>

			<!-- Outline -->
			<RegExp dest="5+" input="$$1" output="&lt;outline&gt;\1&lt;/outline&gt;">
				<expression>&lt;b&gt;sinopse[^\n]*\s+(.*?[^A-Z]\.)</expression>
			</RegExp>

			<!-- Genre -->
			<RegExp dest="5+" input="$$9" output="&lt;genre&gt;\1&lt;/genre&gt;">
				<RegExp dest="9" input="$$1" output="\1,">
					<expression>&lt;b&gt;g.nero&lt;/b&gt;: ([^&lt;]*)</expression>
				</RegExp>
				<expression repeat="yes" trim="1">([^,]+),</expression>
			</RegExp>

			<!-- Year -->
			<RegExp dest="11" input="$$1" output="&lt;year&gt;\1&lt;/year&gt;">
				<expression>&lt;b&gt;ano&lt;/b&gt;: ([^&lt;]*)</expression>
			</RegExp>
			<RegExp dest="5+" input="$$11" output="\1">
				<expression noclean="1"></expression>
			</RegExp>


			<!-- Actor -->
			<RegExp dest="8" input="$$9" output="&lt;actor&gt;&lt;name&gt;\1&lt;/name&gt;&lt;/actor&gt;">
				<RegExp input="$$1" output="\1," dest="9">
					<expression>&lt;b&gt;int.rpretes&lt;/b&gt;&lt;br /&gt;\s*(.*?)&lt;br /&gt;</expression>
				</RegExp>
				<expression clear="yes" repeat="yes" trim="1">([^,]*),</expression>
			</RegExp>
			<RegExp dest="4" input="$$8" output="&lt;actors&gt;\1&lt;/actors&gt;">
				<expression noclean="1"></expression>
			</RegExp>
			<RegExp dest="5+" input="$$8" conditional="ptgateonly" output="\1">
				<expression noclean="1"></expression>
			</RegExp>

			<!-- Director -->
			<RegExp dest="8" input="$$9" output="&lt;director&gt;\1&lt;/director&gt;">
				<RegExp input="$$1" output="\1," dest="9">
					<expression>&lt;b&gt;realiza..o&lt;/b&gt;&lt;br /&gt;\s*(.*?)&lt;br /&gt;</expression>
				</RegExp>
				<expression repeat="yes" trim="1">([^,]+),</expression>
			</RegExp>
			<RegExp dest="4+" input="$$8" output="&lt;directors&gt;\1&lt;/directors&gt;">
				<expression noclean="1"></expression>
			</RegExp>
			<RegExp dest="5+" input="$$8" conditional="ptgateonly" output="\1">
				<expression noclean="1"></expression>
			</RegExp>

			<!-- Add PTGate image as last Thumb -->
			<RegExp dest="12" input="$$2" output="&lt;thumb&gt;http://www.cinema.ptgate.pt/Movies/\1.jpg&lt;/thumb&gt;">
				<expression></expression>
			</RegExp>
			<RegExp dest="5+" input="$$12" conditional="ptgateonly" output="\1">
				<expression noclean="1"></expression>
			</RegExp>

			<!-- Add PT Distributor -->
			<RegExp dest="13" input="$$1" output="&lt;studio&gt;Dist: \1&lt;/studio&gt;">
				<expression>&lt;b&gt;distribuidora&lt;/b&gt;: ([^&lt;]*)</expression>
			</RegExp>
			<RegExp dest="5+" input="$$13" conditional="ptgateonly" output="\1">
				<expression noclean="1"></expression>
			</RegExp>

			<!-- IMDB Details -->
			<RegExp dest="5+" input="$$10" conditional="!ptgateonly" output="\1">
				<!-- Use Google as last resort -->
			        <RegExp dest="10" input="$$8" output="&lt;url function=&quot;GetIMDBfromGoogle&quot;&gt;http://www.google.com/search?q=site:imdb.com\1&lt;/url&gt;">
					<!-- search google for the original title -->
					<RegExp input="$$1" output="\1" dest="7">
						<expression trim="1">\&amp;#8250; ([^&lt;]+)&lt;br /&gt;</expression>
					</RegExp>
					<!-- add year to search string -->
					<RegExp input="$$11" output="+\1" dest="8">
						<expression></expression>
					</RegExp>
					<!-- remove spaces and , -->
					<RegExp input="$$7" output="+\1" dest="8+">
						<expression repeat="yes">([^ ,]+)</expression>
					</RegExp>
        		        	<expression></expression>
		        	</RegExp>

				<!-- use IMDB link on PTGATE, when available -->
			        <RegExp dest="10" input="$$9" output="&lt;url function=&quot;GetIMDBDetails&quot;&gt;http://$INFO[url]/title/\1/&lt;/url&gt;">
					<RegExp dest="9" input="$$1" output="\1">
						<expression clear="yes">\.imdb\.com/title/(tt[0-9]*)</expression>
					</RegExp>
					<expression>(.+)</expression>
				</RegExp>

				<expression noclean="1"></expression>
			</RegExp>

			<expression noclean="1"></expression>
		</RegExp>
	</GetDetails>


	<GetIMDBfromGoogle clearbuffers="no" dest="3">
		<RegExp input="$$5" dest="3" output="&lt;details&gt;\1&lt;/details&gt;">
			<RegExp input="$$1" dest="5" output="&lt;url function=&quot;GetIMDBDetails&quot;&gt;http://$INFO[url]/title/\1/&lt;/url&gt;">
				<expression>\.imdb\.com/title/(tt[0-9]*)</expression>
			</RegExp>
			<expression noclean="1"></expression>
		</RegExp>
	</GetIMDBfromGoogle>
	<GetIMDBDetails clearbuffers="no" dest="3">
		<RegExp input="$$5" dest="3" output="&lt;details&gt;\1&lt;/details&gt;">
			<!-- IMDB Id -->
			<RegExp input="$$1" dest="2" output="\1">
				<expression>id=(tt[t0-9]*)</expression>
			</RegExp>

			<!-- Studio -->
			<RegExp input="$$1" output="&lt;studio&gt;\1&lt;/studio&gt;" dest="5">
				<expression clear="yes" repeat="yes">&quot;/company/[^/]*/&quot;&gt;([^&lt;]*)&lt;/a&gt;</expression>
			</RegExp>
			<RegExp input="$$13" output="\1" dest="5+">
				<expression noclean="1"></expression>
			</RegExp>

			<!-- Certificates -->
			<RegExp input="$$1" output="&lt;certification&gt;\1 \3&lt;/certification&gt;" dest="5+">
				<expression repeat="yes">&lt;a href=&quot;/List\?certificates=[^&quot;]*&quot;&gt;([^&lt;]*)&lt;/a&gt;[^&lt;]*(&lt;i&gt;([^&lt;]*)&lt;/i&gt;)?</expression>
			</RegExp>

			<!-- Runtime -->
			<RegExp input="$$1" output="&lt;runtime&gt;\1&lt;/runtime&gt;" dest="5+">
				<expression trim="1">&lt;h5&gt;Runtime:&lt;/h5&gt;[^0-9]*([^&lt;|]*)</expression>
			</RegExp>

			<!-- Rating -->
			<RegExp input="$$1" output="&lt;rating&gt;\1&lt;/rating&gt;&lt;votes&gt;\2&lt;/votes&gt;" dest="5+">
				<expression>&lt;b&gt;([0-9.]+)/10&lt;/b&gt;[^&lt;]*&lt;a href=&quot;ratings&quot; class=&quot;tn15more&quot;&gt;([0-9,]+) votes&lt;/a&gt;</expression>
			</RegExp>

			<!-- Actor -->
			<RegExp conditional="!fullcredits" input="$$2" output="&lt;url cache=&quot;$$2-credits.html&quot; function=&quot;GetMovieCast&quot;&gt;$$3&lt;/url&gt;" dest="5+">
				<expression></expression>
			</RegExp>

			<!-- Director -->
			<RegExp conditional="!fullcredits" input="$$2" output="&lt;url cache=&quot;$$2-credits.html&quot; function=&quot;GetMovieDirectors&quot;&gt;$$3&lt;/url&gt;" dest="5+">
				<expression></expression>
			</RegExp>

			<!-- Credits -->
			<RegExp conditional="!fullcredits" input="$$2" output="&lt;url cache=&quot;$$2-credits.html&quot; function=&quot;GetMovieWriters&quot;&gt;$$3&lt;/url&gt;" dest="5+">
				<expression></expression>
			</RegExp>

			<!-- Actor, full -->
			<RegExp conditional="fullcredits" input="$$2" output="&lt;url cache=&quot;$$2-fullcredits.html&quot; function=&quot;GetMovieCast&quot;&gt;$$3fullcredits&lt;/url&gt;" dest="5+">
				<expression></expression>
			</RegExp>

			<!-- Director, full -->
			<RegExp conditional="fullcredits" input="$$2" output="&lt;url cache=&quot;$$2-fullcredits.html&quot; function=&quot;GetMovieDirectors&quot;&gt;$$3fullcredits&lt;/url&gt;" dest="5+">
				<expression></expression>
			</RegExp>

			<!-- Credits, full -->
			<RegExp conditional="fullcredits" input="$$2" output="&lt;url cache=&quot;$$2-fullcredits.html&quot; function=&quot;GetMovieWriters&quot;&gt;$$3fullcredits&lt;/url&gt;" dest="5+">
				<expression></expression>
			</RegExp>

			<!-- Thumb, IMPAwards -->
			<RegExp conditional="impawards" input="$$2" output="&lt;url cache=&quot;$$2-posters.html&quot; function=&quot;GetIMPALink&quot;&gt;$$3posters&lt;/url&gt;" dest="5+">
				<expression></expression>
			</RegExp>

			<!-- Poster, MoviePosterDB -->
			<RegExp conditional="movieposterdb" input="$$1" output="&lt;url function=&quot;GetMoviePosterDBLink&quot;&gt;http://www.movieposterdb.com/browse/search?title=\1&lt;/url&gt;" dest="5+">
				<expression>/title/tt([t0-9]*)/faq</expression>
			</RegExp>

			<!-- Trailer -->
			<RegExp conditional="trailer" input="$$1" output="&lt;url function=&quot;GetTrailer&quot;&gt;http://$INFO[url]/video/imdb/vi\1/player&lt;/url&gt;" dest="5+">
				<expression>/vi([0-9]*)/&quot;</expression>
			</RegExp>

			<!-- Thumb, IMDB -->
			<RegExp input="$$2" output="&lt;url cache=&quot;$$2-posters.html&quot; function=&quot;GetIMDBPoster&quot;&gt;$$3posters&lt;/url&gt;" dest="5+">
				<expression></expression>
			</RegExp>

			<!-- Fanart -->
                        <RegExp conditional="fanart" input="$$2" output="&lt;url function=&quot;GetTMDBId&quot;&gt;http://api.themoviedb.org/2.0/Movie.imdbLookup?imdb_id=$$2&amp;amp;api_key=57983e31fb435df4df77afb854740ea9&lt;/url&gt;" dest="5+">
                                <expression></expression>
                        </RegExp>

			<expression noclean="1"></expression>
		</RegExp>
	</GetIMDBDetails>

	<GetMoviePlot clearbuffers="no" dest="5">
		<RegExp input="$$2" output="&lt;details&gt;\1&lt;/details&gt;" dest="5">
			<RegExp input="$$1" output="&lt;plot&gt;\1&lt;/plot&gt;" dest="2">
				<expression clear="yes">&lt;p class="plotpar"&gt;\n([^\n]*)</expression>
			</RegExp>
			<expression noclean="1"></expression>
		</RegExp>
	</GetMoviePlot>
	<GetMovieCast clearbuffers="no" dest="5">
		<RegExp input="$$2" output="&lt;actors&gt;\1&lt;/actors&gt;" dest="8">
			<RegExp input="$$1" output="\1" dest="6">
				<expression clear="yes" noclean="1">&lt;table class=&quot;cast&quot;&gt;(.*?)&lt;/table&gt;</expression>
			</RegExp>
			<RegExp input="$$6" output="&lt;actor&gt;&lt;thumb&gt;\1_SX$INFO[imdbscale]_SY$INFO[imdbscale]_\2&lt;/thumb&gt;&lt;name&gt;\3&lt;/name&gt;&lt;role&gt;\4&lt;/role&gt;&lt;/actor&gt;" dest="7">
				<expression clear="yes" repeat="yes" noclean="1,2" trim="3,4">&lt;img src=&quot;(?:([^&quot;]*\.)[^&quot;]*(\.jpg))?[^&gt;]*[^&quot;]*&quot;nm&quot;&gt;&lt;a href=&quot;[^&quot;]*&quot;&gt;([^&lt;]*)&lt;[^&quot;]*&quot;ddd&quot;&gt; ... [^&quot;]*&quot;char&quot;&gt;(.*?)&lt;/td&gt;</expression>
			</RegExp>
			<RegExp input="$$7" output="&lt;actor&gt;&lt;thumb&gt;\1&lt;/thumb&gt;\2&lt;/actor&gt;" dest="2+">
				<expression clear="yes" repeat="yes" noclean="1,2,3">&lt;actor&gt;&lt;thumb&gt;(?:(http.*?)|_SX[0-9]+_SY[0-9]+_)&lt;/thumb&gt;(.*?)&lt;/actor&gt;</expression>
			</RegExp>
			<expression noclean="1"></expression>
		</RegExp>
		<RegExp input="$$8$$4" output="&lt;details&gt;\1&lt;/details&gt;" dest="5">
			<expression noclean="1">&lt;actors&gt;(.*?)&lt;/actors&gt;</expression>
		</RegExp>
	</GetMovieCast>
	<GetMovieDirectors clearbuffers="no" dest="5">
		<RegExp input="$$2" output="&lt;directors&gt;\1&lt;/directors&gt;" dest="8">
			<RegExp conditional="!fullcredits" input="$$1" output="\1" dest="6">
				<expression clear="yes" noclean="1">Director.*?&lt;/h5&gt;(.*?)&lt;/div&gt;</expression>
			</RegExp>
			<RegExp conditional="fullcredits" input="$$1" output="\1" dest="6">
				<expression clear="yes" noclean="1">Directed by(.*?)name=&quot;</expression>
			</RegExp>
			<RegExp input="$$6" output="&lt;director&gt;\1&lt;/director&gt;" dest="2+">
				<expression clear="yes" repeat="yes">&lt;a href=&quot;/name/[^&gt;]*&gt;([^&lt;]*)&lt;</expression>
			</RegExp>
			<expression noclean="1"></expression>
		</RegExp>
		<RegExp input="$$8$$4" output="&lt;details&gt;\1&lt;/details&gt;" dest="5">
			<expression noclean="1">&lt;directors&gt;(.*?)&lt;/directors&gt;</expression>
		</RegExp>
	</GetMovieDirectors>
	<GetMovieWriters clearbuffers="no" dest="5">
		<RegExp input="$$2" output="&lt;details&gt;\1&lt;/details&gt;" dest="5">
			<RegExp conditional="!fullcredits" input="$$1" output="\1" dest="6">
				<expression clear="yes" noclean="1">Writers.*?:&lt;/h5&gt;(.*?)&lt;/div&gt;</expression>
			</RegExp>
			<RegExp conditional="fullcredits" input="$$1" output="\1" dest="6">
				<expression clear="yes" noclean="1">Writing credits(.*?)name=&quot;</expression>
			</RegExp>
			<RegExp input="$$6" output="&lt;credits&gt;\1&lt;/credits&gt;" dest="2+">
				<expression clear="yes" repeat="yes">&lt;a href=&quot;/name/[^&gt;]*&gt;([^&lt;]*)&lt;</expression>
			</RegExp>
			<expression noclean="1"></expression>
		</RegExp>
	</GetMovieWriters>
	<GetIMPALink clearbuffers="no" dest="5">
		<RegExp input="$$1" output="&lt;details&gt;&lt;url function=&quot;GetIMPAPosters&quot;&gt;http://\1impawards.com/\2&lt;/url&gt;&lt;/details&gt;" dest="5">
			<expression clear="yes" noclean="1,2">http://([^&quot;]*)impawards.com/([^&quot;]*)&quot;&gt;</expression>
		</RegExp>
	</GetIMPALink>
	<GetIMPAPosters clearbuffers="no" dest="5">
		<RegExp input="$$1" output="&lt;details&gt;&lt;url function=&quot;GetIMPAPosters&quot;&gt;http://www.impawards.com/\1&lt;/url&gt;&lt;/details&gt;" dest="5">
			<expression clear="yes">&lt;meta http-equiv=&quot;REFRESH&quot; content=&quot;0;URL=[^/]*/([^&quot;]*)&quot;&gt;</expression>
		</RegExp>
		<RegExp input="$$1" output="\1" dest="4">
			<expression clear="yes" noclean="1">value=&quot;/([^&quot;]*)/[^&quot;]*\.html&quot;&gt;</expression>
		</RegExp>
		<RegExp input="$$1" output="&lt;thumb&gt;http://www.impawards.com/$$4/posters/\1&lt;/thumb&gt;" dest="8+">
			<expression clear="yes" noclean="1">&lt;img SRC=&quot;posters/([^&quot;]*)&quot;</expression>
		</RegExp>
		<RegExp input="$$1" output="&lt;thumb&gt;http://www.impawards.com/$$4/posters/\1&lt;/thumb&gt;" dest="9+">
			<expression clear="yes" repeat="yes" noclean="1">thumbs/imp_([^&gt;]*ver[^&gt;]*.jpg)&gt;</expression>
		</RegExp>
	</GetIMPAPosters>
        <GetMoviePosterDBLink dest="6" clearbuffers="no">
         	<RegExp input="$$1" output="&lt;details&gt;&lt;url function=&quot;GetMoviePosterDB&quot;&gt;\1&lt;/url&gt;&lt;/details&gt;" dest="6">
			<expression>(http://www.movieposterdb.com/movie/[^&quot;]*)&quot;</expression>
		</RegExp>
        </GetMoviePosterDBLink>
	<GetMoviePosterDB clearbuffers="no" dest="12">
		<RegExp input="$$1" output="&lt;thumb&gt;\1l_\2&lt;/thumb&gt;" dest="10+">
			<expression clear="yes" repeat="yes" noclean="1,2">&quot;poster&quot;.*?src=&quot;(.*?)[a-z]_(.*?)&quot;</expression>
		</RegExp>
	</GetMoviePosterDB>
        <GetTrailer clearbuffers="no" dest="5">
                <RegExp conditional="trailer" 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>
	<GetIMDBPoster dest="5">
		<RegExp input="$$8$$9$$10$$11$$12" output="&lt;details&gt;&lt;thumbs&gt;\1&lt;/thumbs&gt;&lt;/details&gt;" dest="5">
                        <RegExp input="$$1" output="\1_SX$INFO[imdbscale]_SY$INFO[imdbscale]_\2" dest="6">
	                        <expression noclean="1,2">&lt;a name=&quot;poster&quot;.*?src=&quot;(.*?)_S.*?(.jpg)&quot;.*?&lt;/a&gt;</expression>
                        </RegExp>
                        <RegExp input="$$6" output="&lt;thumb&gt;\1&lt;/thumb&gt;" dest="11">
	                        <expression clear="yes" noclean="1">(.*?_SX[0-9]+_SY[0-9]+_.jpg)</expression>
                        </RegExp>
			<expression noclean="1"></expression>
		</RegExp>
	</GetIMDBPoster>
        <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>
