<?xml version="1.0" encoding="utf-8"?>
<scraper framework="11" date="2010-02-23" name="FilmAffinity.es" content="movies" thumb="filmaffinity.gif" language="es">
	<include>common/tmdb.xml</include>
	<include>common/movieposterdb.xml</include>
	<include>common/impa.xml</include>
	<include>common/imdb.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;Descargar Casting Completo&quot; type=&quot;bool&quot; id=&quot;EnableFullCast&quot; default=&quot;true&quot;&gt;&lt;/setting&gt;" dest="5+">
				<expression />
			</RegExp>
			<RegExp input="$$1" output="&lt;setting label=&quot;Habilitar trailers&quot; type=&quot;bool&quot; id=&quot;EnableTrailers&quot; default=&quot;true&quot;&gt;&lt;/setting&gt;" dest="5+">
				<expression />
			</RegExp>
			<RegExp input="$$1" output="&lt;setting label=&quot;Sólo póster de FilmAffinity y sin FanArt (rápido)&quot; type=&quot;bool&quot; id=&quot;OnlyFilmAffinity&quot; default=&quot;false&quot;&gt;&lt;/setting&gt;" dest="5+">
				<expression />
			</RegExp>
			<RegExp input="$$1" output="&lt;setting label=&quot;Habilitar FanArt&quot; type=&quot;bool&quot; id=&quot;EnableFanArt&quot; default=&quot;true&quot;&gt;&lt;/setting&gt;" dest="5+">
				<expression />
			</RegExp>
			<RegExp input="$$1" output="&lt;setting label=&quot;Descargar pósters de IMPAwards&quot; type=&quot;bool&quot; id=&quot;EnableIMPAwards&quot; default=&quot;true&quot;&gt;&lt;/setting&gt;" dest="5+">
				<expression />
			</RegExp>
			<RegExp input="$$1" output="&lt;setting label=&quot;Descargar pósters de MoviePosterDB&quot; type=&quot;bool&quot; id=&quot;movieposterdb&quot; default=&quot;true&quot;&gt;&lt;/setting&gt;" dest="5+">
				<expression />
			</RegExp>
			<RegExp input="$$1" output="&lt;setting label=&quot;Descargar póster de IMDB&quot; type=&quot;bool&quot; id=&quot;EnableIMDBPosters&quot; default=&quot;true&quot;&gt;&lt;/setting&gt;" dest="5+">
				<expression />
			</RegExp>
			<RegExp input="$$1" output="&lt;setting label=&quot;Tamaño del póster de IMDB&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 />
			</RegExp>
			<RegExp input="$$1" output="&lt;setting label=&quot;Compatibilidad con miniaturas de Estudio&quot; type=&quot;bool&quot; id=&quot;StudioFlagsON&quot; default=&quot;true&quot;&gt;&lt;/setting&gt;" dest="5+">
				<expression />
			</RegExp>
			<RegExp input="$$1" output="&lt;setting label=&quot;Descargar Información Extra de iMDB&quot; type=&quot;bool&quot; id=&quot;ExtraiMDB&quot; default=&quot;true&quot;&gt;&lt;/setting&gt;" dest="5+">
				<expression />
			</RegExp>
			<RegExp input="$$1" output="&lt;setting label=&quot;Descargar Puntuaciones desde iMDB&quot; type=&quot;bool&quot; id=&quot;iMDBRatings&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;http://www.filmaffinity.com/es/film\1.html/&lt;/url&gt;" dest="3">
			<expression noclean="1">filmaffinity.com/es/film([0-9]*)</expression>
		</RegExp>
	</NfoUrl>
	<CreateSearchUrl SearchStringEncoding="iso-8859-1" dest="3">
		<RegExp input="$$1" output="&lt;url&gt;http://www.filmaffinity.com/es/search.php?stext=\1&amp;amp;stype=none&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&gt;\1&lt;/results&gt;" dest="8">
			<RegExp input="$$1" output="\1" dest="7">
				<expression>&lt;img src="http://www.filmaffinity.com/imgs/movies/full/[0-9]*/([0-9]*).jpg"&gt;</expression>
			</RegExp>
			<RegExp input="$$1" output="&lt;entity&gt;&lt;title&gt;\1 (\2)&lt;/title&gt;&lt;url&gt;http://www.filmaffinity.com/es/film$$7.html&lt;/url&gt;&lt;id&gt;$$7&lt;/id&gt;&lt;/entity&gt;" dest="5">
				<expression noclean="1">&lt;title&gt;([^&lt;]*)\(([0-9]*)\) - FilmAffinity</expression>
			</RegExp>
			<RegExp input="$$1" output="\1" dest="4">
				<expression noclean="1">(&lt;b&gt;&lt;a href="/es/film.*)</expression>
			</RegExp>
			<RegExp input="$$1" output="&lt;entity&gt;&lt;title&gt;\2 (\3)&lt;/title&gt;&lt;url&gt;http://www.filmaffinity.com/es/film\1.html&lt;/url&gt;&lt;id&gt;\1&lt;/id&gt;&lt;/entity&gt;" dest="5+">
				<expression repeat="yes" noclean="1,2">&lt;a href="/es/film([0-9]*).html[^&gt;]*&gt;([^&lt;]*)&lt;/a&gt;[^\(]*\(([0-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 trim="1" noclean="1">&lt;img src="http://www.filmaffinity.com/images/movie.gif" border="0"&gt; ([^&lt;]*)</expression>
			</RegExp>
			<RegExp input="$$1" output="&lt;originaltitle&gt;\1&lt;/originaltitle&gt;" dest="5+">
				<expression>&lt;b&gt;T.TULO ORIGINAL&lt;/b&gt;&lt;/td&gt;.*&lt;td &gt;&lt;b&gt;([^&lt;]+)</expression>
			</RegExp>
			<RegExp input="$$1" output="&lt;plot&gt;\1&lt;/plot&gt;" dest="5+">
				<expression>&lt;b&gt;SINOPSIS&lt;/b&gt;&lt;/td&gt;.*&lt;td&gt;(.*) \(FILMAFFINITY\)&lt;/td&gt;</expression>
			</RegExp>
			<RegExp input="$$1" output="&lt;country&gt;\1&lt;/country&gt;" dest="5+">
				<expression>&lt;td &gt;&lt;img src="/imgs/countries/...jpg" title="([^"]*)</expression>
			</RegExp>
			<RegExp input="$$9" output="&lt;year&gt;\1&lt;/year&gt;" dest="5+">
				<RegExp input="$$1" output="\1" dest="9">
					<expression noclean="1">&lt;b&gt;A.O&lt;/b&gt;&lt;/td&gt;(.*)&lt;b&gt;DURACI.N&lt;/b&gt;</expression>
				</RegExp>
				<expression repeat="yes">&lt;td &gt;([0-9]*)</expression>
			</RegExp>
			<RegExp input="$$1" output="&lt;genre&gt;\1&lt;/genre&gt;" dest="5+">
				<expression repeat="yes">"/es/moviegenre.php?[^&gt;]*&gt;([^&lt;]*)</expression>
			</RegExp>
			<RegExp conditional="!StudioFlagsON" input="$$1" output="&lt;studio&gt;\1&lt;/studio&gt;" dest="5+">
				<expression>&lt;b&gt;PRODUCTORA&lt;/b&gt;&lt;/td&gt;[^&gt;]*&gt;([^&lt;]*)&lt;/td&gt;</expression>
			</RegExp>
			<RegExp conditional="StudioFlagsON" input="$$9" output="&lt;studio&gt;\1&lt;/studio&gt;" dest="5+">
				<RegExp input="$$1" output="\1" dest="9">
					<expression noclean="1">&lt;b&gt;PRODUCTORA&lt;/b&gt;&lt;/td&gt;[^&gt;]*&gt;([^&lt;]*)&lt;/td&gt;</expression>
				</RegExp>
				<expression>([^/&lt;]*)</expression>
			</RegExp>
			<RegExp input="$$9" output="&lt;director&gt;\1&lt;/director&gt;" dest="5+">
				<RegExp input="$$1" output="\1" dest="9">
					<expression noclean="1">&lt;b&gt;DIRECTOR&lt;/b&gt;&lt;/td&gt;(.*)&lt;b&gt;GUI.N&lt;/b&gt;</expression>
				</RegExp>
				<expression repeat="yes">stext=[^&gt;]*&gt;([^&lt;]+)</expression>
			</RegExp>
			<RegExp input="$$9" output="&lt;credits&gt;\1&lt;/credits&gt;" dest="5+">
				<RegExp input="$$1" output="\1" dest="9">
					<expression noclean="1">&lt;b&gt;GUI.N&lt;/b&gt;&lt;/td&gt;(.*)&lt;b&gt;M.SICA&lt;/b&gt;</expression>
				</RegExp>
				<expression repeat="yes">&lt;td &gt;([^&lt;]+)</expression>
			</RegExp>
			<RegExp conditional="!iMDBRatings" input="$$1" output="&lt;rating&gt;\1.\2&lt;/rating&gt;" dest="5+">
				<expression>&lt;tr&gt;&lt;td align="center" style="color:#990000; font-size:22px; font-weight: bold;"&gt;([1-9]),([0-9])&lt;/td&gt;&lt;/tr&gt;</expression>
			</RegExp>
			<RegExp conditional="!iMDBRatings" input="$$1" output="&lt;votes&gt;\1\2&lt;/votes&gt;" dest="5+">
				<expression>&lt;tr&gt;&lt;td align="center"&gt;\((.*) votos\)&lt;/td&gt;&lt;/tr&gt;</expression>
			</RegExp>
			<RegExp input="$$9" output="&lt;runtime&gt;\1 minutos&lt;/runtime&gt;" dest="5+">
				<RegExp input="$$1" output="\1" dest="9">
					<expression noclean="1">&lt;b&gt;DURACI.N&lt;/b&gt;&lt;/td&gt;(.*)&lt;b&gt;PA.S&lt;/b&gt;</expression>
				</RegExp>
				<expression repeat="yes">&lt;td&gt;([0-9]*) min\.</expression>
			</RegExp>
			<RegExp conditional="!ExtraiMDB" input="$$1" output="&lt;actor&gt;&lt;name&gt;\1&lt;/name&gt;&lt;/actor&gt;" dest="5+">
				<expression repeat="yes">"search.php\?stype=cast&amp;[^&gt;]*&gt;([^&lt;]*)</expression>
			</RegExp>
			<RegExp conditional="EnableTrailers" input="$$1" output="&lt;url function=&quot;SearchTrailerPage&quot;&gt;http://www.filmaffinity.com/es/evideos.php\1&lt;/url&gt;" dest="5+">
				<expression noclean="1">&lt;a href="/es/evideos.php([^"]+)</expression>
			</RegExp>
			<RegExp input="$$1" output="&lt;thumb&gt;http://pics.filmaffinity.com/\1&lt;/thumb&gt;" dest="5+">
				<expression noclean="1,2">href="http://pics.filmaffinity.com/([^=]*large.jpg)"</expression>
			</RegExp>
			<RegExp input="$$1" output="&lt;url function=&quot;GetFilmAffinityPosters&quot;&gt;http://www.filmaffinity.com/es/filmimages.php?movie_id=\1&lt;/url&gt;" dest="5+">
				<expression noclean="1,2">href="/es/filmimages.php.movie_id=([^"]+)</expression>
			</RegExp>
			<!--URL to Google and IMDB (Original+title+year)-->
			<RegExp conditional="ExtraiMDB" input="$$9" output="&lt;url function=&quot;GoogleToIMDB&quot;&gt;http://www.google.com/search?q=site:imdb.com\1&lt;/url&gt;" dest="5+">
				<RegExp input="$$8" output="+\1" dest="9">
					<RegExp input="$$7" output="\1" dest="8">
						<RegExp input="$$1" output="\1" dest="7">
							<expression noclean="1">&lt;b&gt;T.TULO ORIGINAL&lt;/b&gt;&lt;/td&gt;(.*)&lt;b&gt;A.O&lt;/b&gt;</expression>
						</RegExp>
						<expression>&lt;td &gt;&lt;b&gt;([^&lt;]+)&lt;/b&gt;&lt;/td&gt;</expression>
					</RegExp>
					<expression repeat="yes">([^ ,]+)</expression>
				</RegExp>
				<RegExp input="$$6" output="+\1" dest="9+">
					<RegExp input="$$1" output="\1" dest="6">
						<expression noclean="1">&lt;b&gt;A.O&lt;/b&gt;&lt;/td&gt;(.*)&lt;b&gt;DURACI.N&lt;/b&gt;</expression>
					</RegExp>
					<expression repeat="yes">&lt;td &gt;([0-9]*)</expression>
				</RegExp>
				<expression />
			</RegExp>
			<RegExp input="$$1" output="&lt;thumb&gt;http://pics.filmaffinity.com/\1&lt;/thumb&gt;" dest="5+">
				<expression noclean="1,2">img src="http://pics.filmaffinity.com/([^=]*full.jpg)"</expression>
			</RegExp>
			<expression noclean="1" />
		</RegExp>
	</GetDetails>
	<SearchTrailerPage dest="5">
		<RegExp input="$$1" output="&lt;details&gt;&lt;trailer&gt;http://www.yobajo.com/watch?v=\1&lt;/trailer&gt;&lt;/details&gt;" dest="5+">
			<expression noclean="1">http://www.youtube.com/v/([^&amp;|^\\]*)</expression>
		</RegExp>
	</SearchTrailerPage>
	<GoogleToIMDB dest="3">
		<RegExp input="$$5" output="&lt;details&gt;\1&lt;/details&gt;" dest="3">
			<RegExp input="$$1" output="\1" dest="6">
				<expression noclean="1">/title/tt([0-9]*)</expression>
			</RegExp>
			<RegExp input="" output="&lt;id&gt;tt$$6&lt;/id&gt;" dest="5">
				<expression noclean="1" />
			</RegExp>
			<RegExp conditional="EnableFanArt" input="" output="&lt;url function=&quot;GetTMDBFanartById&quot;&gt;http://www.imdb.com/title/tt$$6&lt;/url&gt;" dest="5+">
				<expression />
			</RegExp>
			<RegExp conditional="EnableIMPAwards" input="" output="&lt;url function=&quot;GetIMPALink&quot;cache=&quot;$$2.html&quot;&gt;http://www.imdb.com/title/tt$$6/posters&lt;/url&gt;" dest="5+">
				<expression />
			</RegExp>
			<RegExp conditional="movieposterdb" input="" output="&lt;url function=&quot;GetMoviePosterDBLink&quot;&gt;http://www.movieposterdb.com/browse/search?type=movies&amp;amp;query=$$6&lt;/url&gt;" dest="5+">
				<expression />
			</RegExp>
			<RegExp conditional="EnableIMDBPosters" input="" output="&lt;url function=&quot;GetIMDBPoster&quot;cache=&quot;$$2.html&quot;&gt;http://www.imdb.com/title/tt$$6/posters&lt;/url&gt;" dest="5+">
				<expression />
			</RegExp>
			<RegExp conditional="EnableFullCast" input="" output="&lt;url function=&quot;GetIMDBCast&quot;&gt;http://www.imdb.com/title/tt$$6/fullcredits&lt;/url&gt;" dest="5+">
				<expression />
			</RegExp>
			<RegExp conditional="!EnableFullCast" input="" output="&lt;url function=&quot;GetIMDBCast&quot;&gt;http://www.imdb.com/title/tt$$6&lt;/url&gt;" dest="5+">
				<expression />
			</RegExp>
			<RegExp conditional="ExtraiMDB" input="" output="&lt;url function=&quot;GetImdbStuff&quot;&gt;http://www.imdb.com/title/tt$$6&lt;/url&gt;" dest="5+">
				<expression />
			</RegExp>
			<expression noclean="1" />
		</RegExp>
	</GoogleToIMDB>
	<GetFilmAffinityPosters dest="5">
		<RegExp input="$$10" output="&lt;details&gt;\1&lt;/details&gt;" dest="5">
			<RegExp input="$$1" output="&lt;thumb&gt;http://pics.filmaffinity.com/\1&lt;/thumb&gt;" dest="10">
				<expression repeat="yes" noclean="1">url_l: 'http://pics.filmaffinity.com/([^']*)</expression>
			</RegExp>
			<expression noclean="1" />
		</RegExp>
	</GetFilmAffinityPosters>
	<GetImdbStuff dest="5">
		<RegExp input="$$6" output="&lt;details&gt;\1&lt;/details&gt;" dest="5">
			<RegExp input="$$1" output="&lt;top250&gt;\1&lt;/top250&gt;" dest="6">
				<expression>Top 250: #([0-9]*)&lt;/a&gt;</expression>
			</RegExp>
			<RegExp input="$$1" output="&lt;mpaa&gt;\1&lt;/mpaa&gt;" dest="6+">
				<expression>MPAA&lt;/a&gt;:&lt;/h5&gt;[^&gt;]*.(.[^&lt;]*)</expression>
			</RegExp>
			<RegExp input="$$1" output="&lt;certification&gt;\1&lt;/certification&gt;" dest="6+">
				<expression repeat="yes" noclean="1">&lt;a href="[^?]*.certificates=..[^"]*"&gt;([^&lt;]*)&lt;/a&gt;</expression>
			</RegExp>
			<RegExp conditional="iMDBRatings" input="$$1" output="&lt;rating&gt;\1&lt;/rating&gt;&lt;votes&gt;\2&lt;/votes&gt;" dest="6+">
				<expression>&lt;b&gt;([0-9.]+)/10&lt;/b&gt;[^&lt;]*&lt;a href="ratings" class="tn15more"&gt;([0-9,]+) votes&lt;/a&gt;</expression>
			</RegExp>
			<RegExp input="$$1" output="&lt;tagline&gt;\1&lt;/tagline&gt;" dest="6+">
				<expression>&lt;h5&gt;Tagline:&lt;/h5&gt;\n&lt;div class="info-content"&gt;([^&lt;]*)</expression>
			</RegExp>
			<expression noclean="1" />
		</RegExp>
	</GetImdbStuff>
</scraper>
