<scraperfunctions>

	<ParseTMDBCertifications dest="5">
		<RegExp input="$$2" output="&lt;details&gt;\1&lt;/details&gt;" dest="5">
			<RegExp input="$$1" output="&lt;mpaa&gt;Rated \1&lt;/mpaa&gt;" dest="2">
				<expression fixchars="1">&quot;$INFO[tmdbcertcountry]&quot;,&quot;certification&quot;:&quot;([^&quot;]*)</expression>
			</RegExp>
			<expression noclean="1" />
		</RegExp>
	</ParseTMDBCertifications>

	<ParseTMDBTitle dest="5">
		<RegExp input="$$2" output="&lt;details&gt;\1&lt;/details&gt;" dest="5">
			<RegExp input="$$1" output="&lt;title&gt;\1&lt;/title&gt;" dest="2">
				<expression fixchars="1">&quot;title&quot;:&quot;([^&quot;]*)</expression>
			</RegExp>
			<expression noclean="1" />
		</RegExp>
	</ParseTMDBTitle>

	<ParseTMDBPlot dest="5">
		<RegExp input="$$2" output="&lt;details&gt;\1&lt;/details&gt;" dest="5">
			<RegExp input="$$1" output="\1" dest="9">
				<expression clear="yes" fixchars="1">&quot;overview&quot;:&quot;(.*?)&quot;,&quot;</expression>
			</RegExp>
			<RegExp input="$$9" output="&lt;url function=&quot;ParseFallbackTMDBPlot&quot; cache=&quot;tmdb-en-$$8.json&quot;&gt;http://api.themoviedb.org/3/movie/$$8?api_key=57983e31fb435df4df77afb854740ea9&amp;amp;language=en&lt;/url&gt;" dest="2">
				<expression>^$</expression>
			</RegExp>
			<RegExp input="$$9" output="&lt;plot&gt;\1&lt;/plot&gt;" dest="2">
				<expression>(.+)</expression>
			</RegExp>
			<expression noclean="1" />
		</RegExp>
	</ParseTMDBPlot>

	<ParseFallbackTMDBPlot 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" fixchars="1">&quot;overview&quot;:&quot;(.*?)&quot;,&quot;</expression>
			</RegExp>
			<expression noclean="1" />
		</RegExp>
	</ParseFallbackTMDBPlot>

	<ParseTMDBTagline dest="5">
		<RegExp input="$$2" output="&lt;details&gt;\1&lt;/details&gt;" dest="5">
			<RegExp input="$$1" output="\1" dest="9">
				<expression clear="yes" fixchars="1">&quot;tagline&quot;:&quot;([^&quot;]*)</expression>
			</RegExp>
			<RegExp input="$$9" output="&lt;url function=&quot;ParseFallbackTMDBTagline&quot; cache=&quot;tmdb-en-$$8.json&quot;&gt;http://api.themoviedb.org/3/movie/$$8?api_key=57983e31fb435df4df77afb854740ea9&amp;amp;language=en&lt;/url&gt;" dest="2">
				<expression>^$</expression>
			</RegExp>
			<RegExp input="$$9" output="&lt;tagline&gt;\1&lt;/tagline&gt;" dest="2">
				<expression>(.+)</expression>
			</RegExp>
			<expression noclean="1" />
		</RegExp>
	</ParseTMDBTagline>
	<ParseFallbackTMDBTagline dest="5">
		<RegExp input="$$2" output="&lt;details&gt;\1&lt;/details&gt;" dest="5">
			<RegExp input="$$1" output="&lt;tagline&gt;\1&lt;/tagline&gt;" dest="2">
				<expression clear="yes" fixchars="1">&quot;tagline&quot;:&quot;([^&quot;]*)</expression>
			</RegExp>
			<expression noclean="1" />
		</RegExp>
	</ParseFallbackTMDBTagline>

	<ParseTMDBSet dest="5">
		<RegExp input="$$2" output="&lt;details&gt;\1&lt;/details&gt;" dest="5">
			<RegExp input="$$1" output="\1" dest="9">
				<expression noclean="1">&quot;belongs_to_collection&quot;:\{&quot;id&quot;:[0-9]+,&quot;name&quot;:&quot;([^&quot;]*)</expression>
			</RegExp>
			<RegExp input="$$9" output="&lt;url function=&quot;ParseFallbackTMDBSet&quot; cache=&quot;tmdb-en-$$8.json&quot;&gt;http://api.themoviedb.org/3/movie/$$8?api_key=57983e31fb435df4df77afb854740ea9&amp;amp;language=en&lt;/url&gt;" dest="2">
				<expression>^$</expression>
			</RegExp>
			<RegExp input="$$9" output="&lt;set&gt;\1&lt;/set&gt;" dest="2">
				<expression>(.+)</expression>
			</RegExp>
			<expression noclean="1" />
		</RegExp>
	</ParseTMDBSet>
	<ParseFallbackTMDBSet dest="5">
		<RegExp input="$$2" output="&lt;details&gt;\1&lt;/details&gt;" dest="5">
			<RegExp input="$$1" output="&lt;set&gt;\1&lt;/set&gt;" dest="2">
				<expression noclean="1">&quot;belongs_to_collection&quot;:\{&quot;id&quot;:[0-9]+,&quot;name&quot;:&quot;([^&quot;]*)</expression>
			</RegExp>
			<expression noclean="1" />
		</RegExp>
	</ParseFallbackTMDBSet>	

	<ParseTMDBCast dest="5">
		<RegExp input="$$2" output="&lt;details&gt;\1&lt;/details&gt;" dest="5">
			<RegExp input="$$1" output="\1" dest="7">
				<expression clear="yes" noclean="1">&quot;cast&quot;:\[([^\]]*)</expression>
			</RegExp>
			<RegExp input="$$7" output="&lt;actor&gt;&lt;name&gt;\2&lt;/name&gt;&lt;role&gt;\1&lt;/role&gt;&lt;order&gt;\3&lt;/order&gt;&lt;thumb&gt;$$20original\4&lt;/thumb&gt;&lt;/actor&gt;" dest="2">
				<expression repeat="yes" fixchars="1,2">&quot;character&quot;:&quot;((?:[^&quot;]|(?&lt;=\\)&quot;)*)&quot;,&quot;credit_id&quot;:&quot;[^&quot;]*&quot;,&quot;id&quot;:[0-9]*,&quot;name&quot;:&quot;([^&quot;]*)&quot;,&quot;order&quot;:([0-9]*),&quot;profile_path&quot;:&quot;([^&quot;]*)&quot;</expression>
			</RegExp>
			<RegExp input="$$7" output="&lt;actor&gt;&lt;name&gt;\2&lt;/name&gt;&lt;role&gt;\1&lt;/role&gt;&lt;order&gt;\3&lt;/order&gt;&lt;/actor&gt;" dest="2+">
				<expression repeat="yes" fixchars="1,2">&quot;character&quot;:&quot;((?:[^&quot;]|(?&lt;=\\)&quot;)*)&quot;,&quot;credit_id&quot;:&quot;[^&quot;]*&quot;,&quot;id&quot;:[0-9]*,&quot;name&quot;:&quot;([^&quot;]*)&quot;,&quot;order&quot;:([0-9]*),&quot;profile_path&quot;:null</expression>
			</RegExp>
			<expression noclean="1" />
		</RegExp>
	</ParseTMDBCast>

	<ParseTMDBDirectors dest="5">
		<RegExp input="$$2" output="&lt;details&gt;\1&lt;/details&gt;" dest="5">
			<RegExp input="$$1" output="\1" dest="7">
				<expression clear="yes" noclean="1">&quot;crew&quot;:\[([^\]]*)</expression>
			</RegExp>
			<RegExp input="$$7" output="&lt;director&gt;\1&lt;/director&gt;" dest="2">
				<expression repeat="yes" fixchars="1">&quot;department&quot;:&quot;Directing&quot;,&quot;id&quot;:[0-9]*,&quot;job&quot;:&quot;Director&quot;,&quot;name&quot;:&quot;([^&quot;]*)&quot;</expression>
			</RegExp>
			<expression noclean="1" />
		</RegExp>
	</ParseTMDBDirectors>

	<ParseTMDBWriters dest="5">
		<RegExp input="$$2" output="&lt;details&gt;\1&lt;/details&gt;" dest="5">
			<RegExp input="$$1" output="\1" dest="7">
				<expression clear="yes" noclean="1">&quot;crew&quot;:\[([^\]]*)</expression>
			</RegExp>
			<RegExp input="$$7" output="&lt;credits&gt;\1&lt;/credits&gt;" dest="2">
				<expression repeat="yes" fixchars="1">&quot;department&quot;:&quot;Writing&quot;,&quot;id&quot;:[0-9]*,&quot;job&quot;:&quot;(?:Screenplay|Writer|Author)?&quot;,&quot;name&quot;:&quot;([^&quot;]*)&quot;</expression>
			</RegExp>
			<expression noclean="1" />
		</RegExp>
	</ParseTMDBWriters>

	<ParseTMDBGenres dest="5">
		<RegExp input="$$2" output="&lt;details&gt;\1&lt;/details&gt;" dest="5">
			<RegExp input="$$1" output="\1" dest="7">
				<expression clear="yes" noclean="1">&quot;genres&quot;:\[([^\]]*)</expression>
			</RegExp>
			<RegExp input="$$7" output="&lt;genre&gt;\1&lt;/genre&gt;" dest="2">
				<expression repeat="yes" fixchars="1">&quot;name&quot;:&quot;([^&quot;]*)</expression>
			</RegExp>
			<expression noclean="1" />
		</RegExp>
	</ParseTMDBGenres>

	<ParseTMDBRating dest="5">
		<RegExp input="$$2" output="&lt;details&gt;\1&lt;/details&gt;" dest="5">
			<RegExp input="$$1" output="&lt;rating&gt;\1&lt;/rating&gt;" dest="2">
				<expression noclean="1">&quot;vote_average&quot;:([^,]*),&quot;</expression>
			</RegExp>
			<RegExp input="$$1" output="&lt;votes&gt;\1&lt;/votes&gt;" dest="2+">
				<expression noclean="1">&quot;vote_count&quot;:([0-9]+)</expression>
			</RegExp>
			<expression noclean="1" />
		</RegExp>
	</ParseTMDBRating>

	<ParseTMDBStudio dest="5">
		<RegExp input="$$2" output="&lt;details&gt;\1&lt;/details&gt;" dest="5">
			<RegExp input="$$1" output="\1" dest="7">
				<expression clear="yes" noclean="1">&quot;production_companies&quot;:\[([^\]]*)</expression>
			</RegExp>
			<RegExp input="$$7" output="&lt;studio&gt;\1&lt;/studio&gt;" dest="2">
				<expression trim="1" fixchars="1">&quot;name&quot;:&quot;([^&quot;]*)</expression>
			</RegExp>
			<expression noclean="1" />
		</RegExp>
	</ParseTMDBStudio>

	<ParseTMDBCountry dest="5">
		<RegExp input="$$2" output="&lt;details&gt;\1&lt;/details&gt;" dest="5">
			<RegExp input="$$1" output="\1" dest="7">
				<expression clear="yes" noclean="1">&quot;production_countries&quot;:\[([^\]]*)</expression>
			</RegExp>
			<RegExp input="$$7" output="&lt;country&gt;\1&lt;/country&gt;" dest="2">
				<expression trim="1" fixchars="1">&quot;name&quot;:&quot;([^&quot;]*)</expression>
			</RegExp>
			<expression noclean="1" />
		</RegExp>
	</ParseTMDBCountry>

	<ParseTMDBTrailer dest="5">
		<RegExp input="$$2" output="&lt;details&gt;\1&lt;/details&gt;" dest="5">
			<RegExp input="$$1" output="\1" dest="8">
				<expression noclean="1">&quot;id&quot;:([0-9]*),</expression>
			</RegExp>
			<RegExp input="$$1" output="\1" dest="7">
				<expression clear="yes" noclean="1">&quot;youtube&quot;:\[\{([^\}]*)</expression>
			</RegExp>
			<RegExp input="$$7" output="&lt;trailer&gt;plugin://video/youtube/?action=play_video&amp;amp;videoid=\1&lt;/trailer&gt;" dest="9">
				<expression noclean="1">&quot;source&quot;:&quot;([^&quot;]*)</expression>
			</RegExp>
			<RegExp input="$$9" output="&lt;url function=&quot;ParseTMDBEnTrailer&quot; cache=&quot;tmdb-trailer-en-$$8.json&quot;&gt;http://api.themoviedb.org/3/movie/$$8/trailers?api_key=57983e31fb435df4df77afb854740ea9&amp;amp;language=en&lt;/url&gt;" dest="2">
				<expression>^$</expression>
			</RegExp>
			<RegExp input="$$9" output="$$9" dest="2">
				<expression>(.+)</expression>
			</RegExp>
			<expression noclean="1">(.+)</expression>
		</RegExp>
	</ParseTMDBTrailer>
	<ParseTMDBEnTrailer dest="5">
		<RegExp input="$$2" output="&lt;details&gt;\1&lt;/details&gt;" dest="5">
			<RegExp input="$$1" output="\1" dest="8">
				<expression noclean="1">&quot;id&quot;:([0-9]*),</expression>
			</RegExp>
			<RegExp input="$$1" output="\1" dest="7">
				<expression clear="yes" noclean="1">&quot;youtube&quot;:\[\{([^\}]*)</expression>
			</RegExp>
			<RegExp input="$$7" output="&lt;trailer&gt;plugin://video/youtube/?action=play_video&amp;amp;videoid=\1&lt;/trailer&gt;" dest="9">
				<expression noclean="1">&quot;source&quot;:&quot;([^&quot;]*)</expression>
			</RegExp>
			<RegExp input="$$9" output="&lt;url function=&quot;ParseTMDBAllTrailer&quot; cache=&quot;tmdb-trailer-$$8.json&quot;&gt;http://api.themoviedb.org/3/movie/$$8/trailers?api_key=57983e31fb435df4df77afb854740ea9&lt;/url&gt;" dest="5">
				<expression>^$</expression>
			</RegExp>
			<RegExp input="$$9" output="$$9" dest="2">
				<expression>(.+)</expression>
			</RegExp>
			<expression noclean="1">(.+)</expression>
		</RegExp>
	</ParseTMDBEnTrailer>
	<ParseTMDBAllTrailer dest="5">
		<RegExp input="$$2" output="&lt;details&gt;\1&lt;/details&gt;" dest="5">
			<RegExp input="$$1" output="\1" dest="7">
				<expression clear="yes" noclean="1">&quot;youtube&quot;:\[\{([^\}]*)</expression>
			</RegExp>
			<RegExp input="$$7" output="&lt;trailer&gt;plugin://plugin.video.youtube/?action=play_video&amp;amp;videoid=\1&lt;/trailer&gt;" dest="2">
				<expression noclean="1">&quot;source&quot;:&quot;([^&quot;]*)</expression>
			</RegExp>
			<expression noclean="1">(.+)</expression>
		</RegExp>
	</ParseTMDBAllTrailer>

	<ParseTMDBFanart dest="5">
		<RegExp input="$$2" output="&lt;details&gt;&lt;fanart&gt;\1&lt;/fanart&gt;&lt;/details&gt;" dest="5">
			<RegExp input="$$1" output="\1" dest="7">
				<expression clear="yes" noclean="1">&quot;backdrops&quot;:\[\{([^\]]*)</expression>
			</RegExp>
			<RegExp input="$$7" output="&lt;thumb preview=&quot;http://d3gtl9l2a4fn1j.cloudfront.net/t/p/w780\1&quot;&gt;http://d3gtl9l2a4fn1j.cloudfront.net/t/p/original\1&lt;/thumb&gt;" dest="2">
				<expression repeat="yes" noclean="1">&quot;file_path&quot;:&quot;([^&quot;]*)</expression>
			</RegExp>
			<expression noclean="1">(.+)</expression>
		</RegExp>
	</ParseTMDBFanart>

	<ParseTMDBThumbs dest="5">
		<RegExp input="$$2" output="&lt;details&gt;\1&lt;/details&gt;" dest="5">
			<RegExp input="$$1" output="\1" dest="8">
				<expression noclean="1">&quot;id&quot;:([0-9]*),</expression>
			</RegExp>
			<RegExp input="$$1" output="\1" dest="7">
				<expression clear="yes" noclean="1">&quot;posters&quot;:\[\{([^\]]*)</expression>
			</RegExp>
			<RegExp input="$$7" output="&lt;thumb aspect=&quot;poster&quot; preview=&quot;http://d3gtl9l2a4fn1j.cloudfront.net/t/p/w500\1&quot;&gt;http://d3gtl9l2a4fn1j.cloudfront.net/t/p/original\1&lt;/thumb&gt;" dest="9">
				<expression repeat="yes" noclean="1">&quot;file_path&quot;:&quot;([^&quot;]*)</expression>
			</RegExp>
			<RegExp input="$$9" output="$$12" dest="2+">
				<RegExp input="$INFO[language]" output="&lt;url function=&quot;ParseTMDBAllThumbs&quot; cache=&quot;tmdb-images-$$8.json&quot;&gt;http://api.themoviedb.org/3/movie/$$8/images?api_key=57983e31fb435df4df77afb854740ea9&lt;/url&gt;" dest="12">
					<expression>en</expression>
				</RegExp>
				<expression>^$</expression>
			</RegExp>
			<RegExp input="$$9" output="$$9" dest="2+">
				<expression>(.+)</expression>
			</RegExp>
			<RegExp input="$INFO[language]" output="&lt;url function=&quot;ParseTMDBEnThumbs&quot; cache=&quot;tmdb-images-en-$$8.json&quot;&gt;http://api.themoviedb.org/3/movie/$$8/images?api_key=57983e31fb435df4df77afb854740ea9&amp;amp;language=en&lt;/url&gt;" dest="2+">
				<expression>^((?!en).)*$</expression>
			</RegExp>
			<expression noclean="1">(.+)</expression>
		</RegExp>
	</ParseTMDBThumbs>
	<ParseTMDBEnThumbs dest="5">
		<RegExp input="$$2" output="&lt;details&gt;\1&lt;/details&gt;" dest="5">
			<RegExp input="$$1" output="\1" dest="8">
				<expression noclean="1">&quot;id&quot;:([0-9]*),</expression>
			</RegExp>
			<RegExp input="$$1" output="\1" dest="7">
				<expression clear="yes" noclean="1">&quot;posters&quot;:\[\{([^\]]*)</expression>
			</RegExp>
			<RegExp input="$$7" output="&lt;thumb aspect=&quot;poster&quot; preview=&quot;http://d3gtl9l2a4fn1j.cloudfront.net/t/p/w500\1&quot;&gt;http://d3gtl9l2a4fn1j.cloudfront.net/t/p/original\1&lt;/thumb&gt;" dest="9">
				<expression repeat="yes" noclean="1">&quot;file_path&quot;:&quot;([^&quot;]*)</expression>
			</RegExp>
			<RegExp input="$$9" output="&lt;url function=&quot;ParseTMDBAllThumbs&quot; cache=&quot;tmdb-images-$$8.json&quot;&gt;http://api.themoviedb.org/3/movie/$$8/images?api_key=57983e31fb435df4df77afb854740ea9&lt;/url&gt;" dest="2">
				<expression>^$</expression>
			</RegExp>
			<RegExp input="$$9" output="$$9" dest="2">
				<expression>(.+)</expression>
			</RegExp>
			<expression noclean="1">(.+)</expression>
		</RegExp>
	</ParseTMDBEnThumbs>
	<ParseTMDBAllThumbs dest="5">
		<RegExp input="$$2" output="&lt;details&gt;\1&lt;/details&gt;" dest="5">
			<RegExp input="$$1" output="\1" dest="7">
				<expression clear="yes" noclean="1">&quot;posters&quot;:\[\{([^\]]*)</expression>
			</RegExp>
			<RegExp input="$$7" output="&lt;thumb aspect=&quot;poster&quot; preview=&quot;http://d3gtl9l2a4fn1j.cloudfront.net/t/p/w500\1&quot;&gt;http://d3gtl9l2a4fn1j.cloudfront.net/t/p/original\1&lt;/thumb&gt;" dest="2">
				<expression repeat="yes" noclean="1">&quot;file_path&quot;:&quot;([^&quot;]*)</expression>
			</RegExp>
			<expression noclean="1">(.+)</expression>
		</RegExp>
	</ParseTMDBAllThumbs>

</scraperfunctions>
