<?xml version="1.0" encoding="gb2312"?>
<scraper framework="1.1" date="2009-08-10" name="IMDb.cn" content="movies" thumb="imdb-cn.gif" language="zh">
	<include>common/tmdb.xml</include>
	<include>common/movieposterdb.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;Enable MoviePosterDB&quot; type=&quot;bool&quot; id=&quot;movieposterdb&quot; default=&quot;false&quot;&gt;&lt;/setting&gt;" dest="5">
				<expression/>
			</RegExp>
			<RegExp input="$$1" output="&lt;setting label=&quot;Enable Fanart&quot; type=&quot;bool&quot; id=&quot;fanart&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.imdb.cn/title/tt\1&lt;/url&gt;&lt;id&gt;tt\1&lt;/id&gt;"  dest="3">
			<expression clear="yes" noclean="1">imdb.cn/title/tt([0-9]*)</expression>
		</RegExp>
		<RegExp input="$$1" output="&lt;url&gt;http://www.imdb.cn/title/tt\1&lt;/url&gt;&lt;id&gt;tt\1&lt;/id&gt;"  dest="3+">
			<expression clear="yes" noclean="1">imdb.com/Title\?([0-9]*)</expression>
		</RegExp>
		<RegExp input="$$1" output="&lt;url&gt;http://www.imdb.cn/title/tt\1&lt;/url&gt;&lt;id&gt;tt\1&lt;/id&gt;"  dest="3+">
			<expression clear="yes" noclean="1">imdb.com/title/tt([0-9]*)</expression>
		</RegExp>
	</NfoUrl>
	<CreateSearchUrl dest="3" SearchStringEncoding="gb2312">
		<RegExp input="$$1" output="&lt;url&gt;http://www.imdb.cn/searchh.php?keyword=\1&amp;amp;a=search&amp;amp;Type=movie&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;gb2312&quot; standalone=&quot;yes&quot;?&gt;&lt;results&gt;\1&lt;/results&gt;" dest="8">
			<RegExp input="$$1" output="\1" dest="7">
				<expression clear="yes">http://www.imdb.cn/title/([t0-9]*)&quot;&gt;本片首页</expression>
			</RegExp>
			<RegExp input="$$1" output="\1" dest="6">
				<expression clear="yes">&lt;td colspan=2&gt;&lt;span class=mn&gt;([^&lt;]*)&lt;/span&gt;</expression>
			</RegExp>
			<RegExp input="$$1" output="&lt;entity&gt;&lt;title&gt;\1 - $$6 (\2)&lt;/title&gt;&lt;url&gt;http://www.imdb.cn/title/$$7&lt;/url&gt;&lt;id&gt;\$$7&lt;/id&gt;&lt;/entity&gt;" dest="5">
				<expression clear="yes" noclean="1">&lt;h1&gt;([^&lt;]*)&lt;/h1&gt;[^&quot;]*&quot;http://www.imdb.cn/Sections/Years/([0-9]*)&quot;</expression>
			</RegExp>
			<RegExp input="$$1" output="&lt;entity&gt;&lt;title&gt;\2 - \3 (\4)&lt;/title&gt;&lt;url&gt;http://www.imdb.cn/title/\1&lt;/url&gt;&lt;id&gt;\1&lt;/id&gt;&lt;/entity&gt;" dest="5+">
				<expression repeat="yes" noclean="1,4">&lt;a href=&quot;title/([t0-9]*)&quot; target=&quot;_blank&quot;&gt;(.[^-]*)-(.[^-]*)- \(([0-9]*)\)</expression>
			</RegExp>
			<expression clear="yes" noclean="1"/>
		</RegExp>
	</GetSearchResults>
	<GetDetails dest="3">
		<RegExp input="$$5" output="&lt;details&gt;\1&lt;/details&gt;" dest="3">
			<RegExp input="$$2" output="&lt;id&gt;\1&lt;/id&gt;" dest="5">
				<expression/>
			</RegExp>
			<RegExp input="$$1" output="&lt;title&gt;\1&lt;/title&gt;" dest="5+">
				<expression trim="1" noclean="1">&lt;title&gt;([^&lt;|^-]*)</expression>
			</RegExp>
			<RegExp input="$$1" output="&lt;originaltitle&gt;\1&lt;/originaltitle&gt;" dest="5+">
				<expression trim="1" noclean="1">片 名：&lt;/span&gt;.*?class=mn&gt;(.[^&lt;]*)</expression>
			</RegExp>
			<RegExp input="$$1" output="&lt;year&gt;\1&lt;/year&gt;" dest="5+">
				<expression>&lt;span class=hhh2&gt;\(([0-9]*)\)</expression>
			</RegExp>
			<RegExp input="$$1" output="&lt;top250&gt;\1&lt;/top250&gt;" dest="5+">
				<expression>TOP  &lt;font color=red&gt;([0-9]*)  &lt;/font>&gt;</expression>
			</RegExp>
			<RegExp input="$$4" output="\1" dest="5+">
				<RegExp input="$$1" output="&lt;mpaa&gt;\1&lt;/mpaa&gt;\n" dest="4">
					<expression>MPAA[^&lt;]*&lt;/span&gt;&lt;br&gt;(.[^&lt;]*)</expression>
				</RegExp>
				<expression repeat="yes" noclean="1">(.*?)\n</expression>
			</RegExp>
			<RegExp input="$$1" output="&lt;certification&gt;\1&lt;/certification&gt;" dest="5+">
				<expression repeat="yes">&lt;a href=http://www.imdb.cn/Sections/Certification/[^&gt;]*&gt;([^&lt;]*)&lt;/a&gt;</expression>
			</RegExp>
			<RegExp input="$$4" output="\1" dest="5+">
				<RegExp input="$$1" output="&lt;runtime&gt;\1&lt;/runtime&gt;\n" dest="4">
					<expression trim="1">&lt;td colspan=&quot;2&quot;&gt;&lt;font color=red&gt;([^&lt;]*)</expression>
				</RegExp>
				<expression repeat="yes" noclean="1">(.*?)\n</expression>
			</RegExp>
			<RegExp input="$$1" output="&lt;rating&gt;\1&lt;/rating&gt;&lt;votes&gt;\2&lt;/votes&gt;" dest="5+">
				<expression>\.gif&quot; &gt;&lt;b&gt;([0-9.]+)/10&lt;/b&gt; \( ([0-9]+)</expression>
			</RegExp>
			<RegExp input="$$1" output="&lt;genre&gt;\1&lt;/genre&gt;" dest="5+">
				<expression repeat="yes">&lt;a href=http://www.imdb.cn/Sections/Genre/[^&gt;]*&gt;([^&lt;]*)&lt;/a&gt;</expression>
			</RegExp>
			<RegExp input="$$1" output="&lt;outline&gt;\1&lt;/outline&gt;&lt;plot&gt;\1&lt;/plot&gt;" dest="5+">
				<expression>&lt;div id=imdbjqbody&gt;&lt;h2&gt;[^&lt;]*&lt;/h2&gt;&lt;br&gt;(.*?)&lt;/div</expression>
			</RegExp>
			<RegExp input="$$2" output="&lt;url cache=&quot;$$2-fullcredits.html&quot; function=&quot;GetFullcredits&quot;&gt;$$3/fulldredits&lt;/url&gt;" dest="5+">
				<expression/>
			</RegExp>
			<RegExp conditional="movieposterdb" input="$$1" output="&lt;url function=&quot;GetMoviePosterDBLink&quot;&gt;http://www.movieposterdb.com/browse/search?type=movies&amp;amp;query=\1&lt;/url&gt;" dest="5+">
				<expression>/title/tt([0-9]*)/ratings</expression>
			</RegExp>
			<RegExp input="$$1" output="&lt;url function=&quot;GetIMDBCNPoster&quot;&gt;\1&lt;/url&gt;" dest="5+">
				<expression>&lt;a href=(http://posters.imdb.cn/poster/[0-9]*)</expression>
			</RegExp>
			<RegExp conditional="fanart" input="$$2" output="&lt;url function=&quot;GetTMDBFanartById&quot;&gt;$$3&lt;/url&gt;" dest="5+">
				<expression/>
			</RegExp>
			<expression noclean="1"/>
		</RegExp>
	</GetDetails>	
	<GetFullcredits clearbuffers="no" dest="5">
		<RegExp input="$$2" output="&lt;details&gt;\1&lt;/details&gt;" dest="5">
			<RegExp input="$$1" output="\1" dest="6">
				<expression clear="yes" noclean="1">演员         &lt;table(.*?)&lt;/table&gt;</expression>
			</RegExp>
			<RegExp input="$$6" output="&lt;actor&gt;&lt;name&gt;\1&lt;/name&gt;&lt;role&gt;\2&lt;/role&gt;&lt;/actor&gt;" dest="2">
				<expression repeat="yes" trim="1,2">href=&apos;/name/nm[0-9]+&apos;&gt;([^&lt;]*)&lt;/a&gt;[^\.]*\.\.\.\.\.\.([^&lt;]*)&lt;/td&gt;</expression>
			</RegExp>
			<RegExp input="$$1" output="\1" dest="7">
				<expression clear="yes" noclean="1">导演         &lt;table(.*?)&lt;/table&gt;</expression>
			</RegExp>
			<RegExp input="$$7" output="&lt;director&gt;\1&lt;/director&gt;" dest="2+">
				<expression repeat="yes">href=&apos;/name/nm[0-9]+&apos;&gt;([^&lt;]*)&lt;/a&gt;</expression>
			</RegExp>
			<RegExp input="$$1" output="\1" dest="8">
				<expression clear="yes" noclean="1">编剧         &lt;table(.*?)&lt;/table&gt;</expression>
			</RegExp>
			<RegExp input="$$8" output="&lt;credits&gt;\1&lt;/credits&gt;" dest="2+">
				<expression repeat="yes">href=&apos;/name/nm[0-9]+&apos;&gt;([^&lt;]*)&lt;/a&gt;</expression>
			</RegExp>
			<expression noclean="1"/>
		</RegExp>
	</GetFullcredits>
	<GetIMDBCNPoster dest="5">
		<RegExp input="$$6" output="&lt;details&gt;\1&lt;/details&gt;" dest="5">
			<RegExp input="$$1" output="&lt;thumb&gt;\1&lt;/thumb&gt;" dest="6">
				<expression clear="yes" noclean="1">&lt;img src=&quot;(.*?/poster-pic/.*?.jpg)&quot;</expression>
			</RegExp>
			<expression noclean="1"/>
		</RegExp>
	</GetIMDBCNPoster>
</scraper>
