<?xml version="1.0" encoding="UTF-8"?>
<scraper framework="1.0" date="2009-06-05" name="allmusic &amp; merlin.pl &amp; lastfm.pl" content="albums" thumb="allmusic.gif">
	<NfoUrl dest="3">
		<RegExp input="$$1" output="\1" dest="3">
			<expression>(http://www.allmusic.com/cg/.*)</expression>
		</RegExp>
	</NfoUrl>
	<CreateAlbumSearchUrl dest="3">
		<RegExp input="$$1" output="&lt;url post=&quot;yes&quot;&gt;http://www.allmusic.com/cg/amg.dll?P=amg&amp;amp;SQL=\1&amp;amp;OPT1=2&lt;/url&gt;" dest="3">
			<expression></expression>
		</RegExp>
	</CreateAlbumSearchUrl>
	<GetAlbumSearchResults dest="8">
		<RegExp input="$$5" output="&lt;results&gt;\1&lt;/results&gt;" dest="8">
			<RegExp input="$$1" output="&lt;entity&gt;&lt;title&gt;\1&lt;/title&gt;&lt;/entity&gt;" dest="5">
				<expression repeat="yes" noclean="1">&lt;TITLE&gt;allmusic[ (]+ ([^&gt;]*) &gt; Overview</expression>
			</RegExp>
			<RegExp input="$$1" output="&lt;entity&gt;&lt;year&gt;\1&lt;/year&gt;&lt;artist&gt;\2&lt;/artist&gt;&lt;title&gt;\4&lt;/title&gt;&lt;url&gt;http://www.allmusic.com/cg/amg.dll?p=amg&amp;amp;SQL=\3&lt;/url&gt;&lt;/entity&gt;" dest="5+">
				<expression repeat="yes" noclean="1,2,3">&gt;([0-9]+)&lt;/.*?&gt;([a-zA-Z0-9].*?)&lt;.*?sql=([0-9:a-z]*)&quot;&gt;(.*?)&lt;.</expression>
			</RegExp>
			<expression noclean="1"></expression>
		</RegExp>		
	</GetAlbumSearchResults>
	<GetAlbumDetails 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 noclean="1">&lt;TITLE&gt;allmusic[ (]+ ([^&gt;]*) &gt; Overview</expression>
			</RegExp>
			<RegExp input="$$1" output="&lt;artist&gt;\1&lt;/artist&gt;" dest="5+">
				<expression noclean="1">&lt;span&gt;Artist&lt;/span&gt;[^;]*[^&gt;]*&gt;[^&gt;]*&gt;([^&lt;]*)</expression>
			</RegExp>
			<RegExp input="$$1" output="&lt;rating&gt;\1&lt;/rating&gt;" dest="5+">
				<expression noclean="1">&lt;span&gt;Rating&lt;/span&gt;[^_]*_r([0-9^]*)</expression>
			</RegExp>
			<RegExp input="$$1" output="&lt;label&gt;\1&lt;/label&gt;" dest="5+">
				<expression noclean="1">&lt;span&gt;Label&lt;/span&gt;[^;]*[^&gt;]*&gt;([^&lt;]*)</expression>
			</RegExp>
			<RegExp input="$$1" output="&lt;type&gt;\1&lt;/type&gt;" dest="5+">
				<expression noclean="1">&lt;span&gt;Type&lt;/span&gt;[^;]*[^&gt;]*&gt;([^&lt;]*)</expression>
			</RegExp>
			<RegExp input="$$1" output="&lt;releasedate&gt;\1&lt;/releasedate&gt;" dest="5+">
				<expression noclean="1">&lt;span&gt;Release Date&lt;/span&gt;[^;]*[^&gt;]*&gt;([^&lt;]*)</expression>
			</RegExp>
			<RegExp input="$$1" output="&lt;year&gt;\1&lt;/year&gt;" dest="5+">
				<expression noclean="1">&lt;span&gt;Release Date.*?([0-9]+)&lt;/</expression>
			</RegExp>
			<RegExp input="$$1" output="\1" dest="6">
				<expression noclean="1">Genre[s]* Listing--&gt;([^!]*)&lt;!--Genre[s]* Listing</expression>
			</RegExp>
			<RegExp input="$$6" output="&lt;genre&gt;\1&lt;/genre&gt;" dest="5+">
				<expression noclean="1" repeat="yes">&lt;li&gt;[^&gt;]*&gt;([^&lt;]*)&lt;/a&gt;&lt;/li&gt;</expression>
			</RegExp>
			<RegExp input="$$1" output="\1" dest="7">
				<expression noclean="1">Style[s]* Listing--&gt;([^!]*)&lt;!--Style[s]* Listing</expression>
			</RegExp>
			<RegExp input="$$7" output="&lt;style&gt;\1&lt;/style&gt;" dest="5+">
				<expression noclean="1" repeat="yes">&lt;li&gt;[^&gt;]*&gt;([^&lt;]*)&lt;/a&gt;&lt;/li&gt;</expression>
			</RegExp>
			<RegExp input="$$1" output="\1" dest="8">
				<expression noclean="1">Mood[s]* Listing--&gt;([^!]*)&lt;!--Mood[s]* Listing</expression>
			</RegExp>
			<RegExp input="$$8" output="&lt;mood&gt;\1&lt;/mood&gt;" dest="5+">
				<expression noclean="1" repeat="yes">&lt;li&gt;[^&gt;]*&gt;([^&lt;]*)&lt;/a&gt;&lt;/li&gt;</expression>
			</RegExp>
			<RegExp input="$$1" output="\1" dest="9">
				<expression noclean="1">Theme[s]* Listing--&gt;([^!]*)&lt;!--Theme[s]* Listing</expression>
			</RegExp>
			<RegExp input="$$9" output="&lt;theme&gt;\1&lt;/theme&gt;" dest="5+">
				<expression noclean="1" repeat="yes">&lt;li&gt;[^&gt;]*&gt;([^&lt;]*)&lt;/a&gt;&lt;/li&gt;</expression>
			</RegExp>
			<RegExp input="$$1" output="&lt;track&gt;&lt;position&gt;\1&lt;/position&gt;&lt;title&gt;\3&lt;/title&gt;&lt;duration&gt;\4&lt;/duration&gt;&lt;/track&gt;" dest="5+">
				<expression noclean="1,2,3" repeat="yes">&quot;cell&quot;&gt;([0-9]+)&lt;/.*?sql=([0-9:a-z]*)&quot;&gt;(.*?)&lt;/a&gt;.*?&quot;right&quot;.*?&gt;(.*?)&lt;/</expression>
			</RegExp>
			<RegExp input="$$1" output="&lt;thumb&gt;http://image.allmusic.com/\1&lt;/thumb&gt;" dest="5+">
				<expression noclean="1">http://image.allmusic.com/([^&quot;]*)&quot;</expression>
			</RegExp>
			<RegExp input="$$1" output="\1" dest="8">
				<expression noclean="1">&lt;TITLE&gt;allmusic[ (]+ ([^&gt;]*) &gt; Overview</expression>
			</RegExp>
			<RegExp input="$$9" output="\1" dest="6">
				<RegExp input="$$8" output="+\1" dest="9">
					<expression repeat="yes">([^ ]+)</expression>
				</RegExp>
				<expression>\+(.*)</expression>
			</RegExp>
			<RegExp input="$$1" output="\1" dest="8">
				<expression noclean="1">&lt;span&gt;Artist&lt;/span&gt;[^;]*[^&gt;]*&gt;[^&gt;]*&gt;([^&lt;]*)</expression>
			</RegExp>
			<RegExp input="$$9" output="\1" dest="7">
				<RegExp input="$$8" output="+\1" dest="9">
					<expression repeat="yes">([^ ]+)</expression>
				</RegExp>
				<expression>\+(.*)</expression>
			</RegExp>
			<RegExp input="$$1" output="&lt;url function=&quot;MerlinLink&quot;&gt;http://merlin.pl/xbmc/browse/search/4,,1.html?phrase=&amp;amp;place=4+simple&amp;amp;carrier=3&amp;amp;offer=O&amp;amp;category=&amp;amp;title=$$6&amp;amp;person=$$7&amp;amp;firm=&amp;amp;date=&amp;amp;isbn=&amp;amp;sort=rank&amp;amp;x=40&amp;amp;y=12&lt;/url&gt;" dest="5+">
				<expression noclean="1"></expression>
			</RegExp>
			<expression noclean="1"></expression>
		</RegExp>
	</GetAlbumDetails>
	<MerlinLink dest="5">
		<RegExp input="$$2" output="&lt;details&gt;\1&lt;/details&gt;" dest="5">
			<RegExp input="$$1" output="&lt;url function=&quot;GetReview&quot;&gt;http://merlin.pl\1&lt;/url&gt;" dest="2">
				<expression>Liczba towar[^f]+f=&quot;([^&quot;]+)</expression>
			</RegExp>
			<expression noclean="1"></expression>
		</RegExp>
	</MerlinLink>
	<GetReview dest="5">
		<RegExp input="$$2" output="&lt;?xml version=&quot;1.0&quot; encoding=&quot;iso-8859-2&quot; standalone=&quot;yes&quot;?&gt;&lt;details&gt;&lt;review&gt;\1&lt;/review&gt;&lt;/details&gt;" dest="5">
			<RegExp input="$$1" output="\1" dest="2">
				<expression>class=&quot;productDesc&quot;&gt;(.*?)&lt;/div&gt;</expression>
			</RegExp>
			<RegExp input="$$1" output="\1" dest="2+">
				<expression>piorka_merlina.*?contents&quot;&gt;([^&lt;]*)&lt;</expression>
			</RegExp>
			<RegExp input="$$1" output="\1" dest="2+">
				<expression>contents&quot;&gt;([^&lt;]*)&lt;</expression>
			</RegExp>
			<expression noclean="1"></expression>
		</RegExp>
	</GetReview>
	<CreateArtistSearchUrl dest="3">
		<RegExp input="$$1" output="&lt;url post=&quot;yes&quot;&gt;http://www.allmusic.com/cg/amg.dll?P=amg&amp;amp;SQL=\1&amp;amp;OPT1=1&lt;/url&gt;" dest="3">
			<expression></expression>
		</RegExp>
	</CreateArtistSearchUrl>
	<GetArtistSearchResults dest="8">
		<RegExp input="$$5" output="&lt;results&gt;\1&lt;/results&gt;" dest="8">
			<RegExp input="$$1" output="&lt;entity&gt;&lt;title&gt;\1&lt;/title&gt;&lt;/entity&gt;" dest="5">
				<expression repeat="yes" noclean="1">&lt;TITLE&gt;allmusic[ (]+ ([^&gt;]*) &gt; Overview</expression>
			</RegExp>
			<RegExp input="$$1" output="&lt;entity&gt;&lt;title&gt;\2&lt;/title&gt;&lt;genre&gt;\3&lt;/genre&gt;&lt;year&gt;\5&lt;/year&gt;&lt;url&gt;http://www.allmusic.com/cg/amg.dll?p=amg&amp;amp;SQL=\1&lt;/url&gt;&lt;/entity&gt;" dest="5+">
				<expression repeat="yes" noclean="1,2">style=&quot;[^=]*&lt;a href=&quot;[^&quot;]*sql=([^&quot;]*)&quot;&gt;([^&lt;]*)&lt;/a&gt;[^-]*[^&gt;]*&gt;([^&lt;]*)&lt;/TD&gt;[^&gt;]*&gt;(&amp;nbsp;)?([^&lt;]*)&lt;/td&gt;</expression>
			</RegExp>
			<expression noclean="1"></expression>
		</RegExp>		
	</GetArtistSearchResults>
	<GetArtistDetails dest="3" clearbuffers="no">
		<RegExp input="$$5" output="&lt;details&gt;\1&lt;/details&gt;" dest="3">
			<RegExp input="$$1" output="&lt;name&gt;\1&lt;/name&gt;" dest="5">
				<expression noclean="1">&lt;TITLE&gt;allmusic[ (]+ ([^&gt;]*) &gt; Overview</expression>
			</RegExp>
			<RegExp input="$$1" output="&lt;born&gt;\1&lt;/born&gt;" dest="5+">
				<expression>&lt;span&gt;Born.*?;&quot;&gt;(.*?)&lt;/td&gt;</expression>
			</RegExp>
			<RegExp input="$$1" output="&lt;died&gt;\1&lt;/died&gt;" dest="5+">
				<expression>&lt;span&gt;Died.*?;&quot;&gt;(.*?)&lt;/td&gt;</expression>
			</RegExp>
			<RegExp input="$$1" output="&lt;formed&gt;\1&lt;/formed&gt;" dest="5+">
				<expression>&lt;span&gt;Formed.*?;&quot;&gt;(.*?)&lt;/td&gt;</expression>
			</RegExp>
			<RegExp input="$$1" output="&lt;disbanded&gt;\1&lt;/disbanded&gt;" dest="5+">
				<expression>&lt;span&gt;Disbanded.*?;&quot;&gt;(.*?)&lt;/td&gt;</expression>
			</RegExp>
			<RegExp input="$$1" output="&lt;yearsactive&gt;\1&lt;/yearsactive&gt;" dest="5+">
				<expression>&lt;span&gt;Years Active.*?sub&quot;&gt;(.*?)&lt;/div&gt;</expression>
			</RegExp>
			<RegExp input="$$1" output="\1" dest="6">
				<expression noclean="1">Genre Listing--&gt;([^!]*)&lt;!--Genre Listing</expression>
			</RegExp>
			<RegExp input="$$6" output="&lt;genre&gt;\1&lt;/genre&gt;" dest="5+">
				<expression noclean="1" repeat="yes">&lt;li&gt;[^&gt;]*&gt;([^&lt;]*)&lt;/a&gt;&lt;/li&gt;</expression>
			</RegExp>
			<RegExp input="$$1" output="\1" dest="7">
				<expression noclean="1">Style Listing--&gt;([^!]*)&lt;!--Style Listing</expression>
			</RegExp>
			<RegExp input="$$7" output="&lt;style&gt;\1&lt;/style&gt;" dest="5+">
				<expression noclean="1" repeat="yes">&lt;li&gt;[^&gt;]*&gt;([^&lt;]*)&lt;/a&gt;&lt;/li&gt;</expression>
			</RegExp>
			<RegExp input="$$1" output="\1" dest="8">
				<expression noclean="1">Moods Listing--&gt;([^!]*)&lt;!--Moods Listing</expression>
			</RegExp>
			<RegExp input="$$8" output="&lt;mood&gt;\1&lt;/mood&gt;" dest="5+">
				<expression noclean="1" repeat="yes">&lt;li&gt;[^&gt;]*&gt;([^&lt;]*)&lt;/a&gt;&lt;/li&gt;</expression>
			</RegExp>
			<RegExp input="$$1" output="\1" dest="9">
				<expression noclean="1">Instruments Listing--&gt;([^!]*)&lt;!--Instruments Listing</expression>
			</RegExp>
			<RegExp input="$$9" output="&lt;instruments&gt;\1&lt;/instruments&gt;" dest="5+">
				<expression noclean="1" repeat="yes">&lt;li&gt;[^&gt;]*&gt;([^&lt;]*)&lt;/a&gt;&lt;/li&gt;</expression>
			</RegExp>
			<RegExp input="$$1" output="&lt;thumb&gt;\1&lt;/thumb&gt;" dest="7">
				<expression noclean="1">&lt;img src=&quot;([^&quot;]*)&quot; id=&quot;Picture&quot;</expression>
			</RegExp>
			<RegExp input="$$1" output="&lt;thumb&gt;http://image.allmusic.com/00/amg/pic200/dr\1\200/\1\2\3\4/\1\2\3\4\5.jpg&lt;/thumb&gt;" dest="7+">
				<expression noclean="1" repeat="yes">&quot;([A-Z^])([0-9^])([0-9^])([0-9^])([^&quot;]*)&quot;</expression>
			</RegExp>
			<RegExp input="$$2" output="&lt;url function=&quot;GetThumbs&quot; post=&quot;yes&quot;&gt;http://www.htbackdrops.com/search.php?search_terms=all&amp;amp;cat_id=5&amp;amp;search_keywords=\1&lt;/url&gt;" dest="5+">
				<expression/>
			</RegExp>
			<RegExp input="$$2" output="&lt;url function=&quot;GetFanart&quot; post=&quot;yes&quot;&gt;http://www.htbackdrops.com/search.php?search_terms=all&amp;amp;cat_id=1&amp;amp;search_keywords=\1&lt;/url&gt;" dest="5+">
				<expression/>
			</RegExp>
			<RegExp input="$$1" output="\1" dest="8">
				<expression noclean="1">&lt;TITLE&gt;allmusic[ (]+ ([^&gt;]*) &gt; Overview</expression>
			</RegExp>
			<RegExp input="$$9" output="\1" dest="6">
				<RegExp input="$$8" output="+\1" dest="9">
					<expression repeat="yes">([^ ]+)</expression>
				</RegExp>
				<expression>\+(.*)</expression>
			</RegExp>
			<RegExp input="$$1" output="&lt;url function=&quot;LastfmLink&quot;&gt;http://ws.audioscrobbler.com/2.0/?method=artist.search&amp;amp;artist=$$6&amp;amp;api_key=71e468a84c1f40d4991ddccc46e40f1b&lt;/url&gt;" dest="5+">
				<expression noclean="1"></expression>
			</RegExp>            
			<RegExp input="$$1" output="&lt;url function=&quot;GetDiscography&quot;&gt;http://www.allmusic.com/cg/amg.dll?p=amg&amp;amp;sql=\1&lt;/url&gt;" dest="5+">
				<expression noclean="1">sql=([^&quot;]*)&quot;&gt;Discography</expression>
			</RegExp>
			<expression noclean="1"></expression>
		</RegExp>
	</GetArtistDetails>
	<LastfmLink dest="5">
		<RegExp input="$$2" output="&lt;details&gt;\1&lt;/details&gt;" dest="5">
			<RegExp input="$$1" output="&lt;url function=&quot;GetBiography&quot;&gt;http://ws.audioscrobbler.com/2.0/?method=artist.getinfo&amp;amp;mbid=\2&amp;amp;lang=pl&amp;amp;api_key=71e468a84c1f40d4991ddccc46e40f1b&lt;/url&gt;" dest="2">
				<expression noclean="1">&lt;artist&gt;.*?&lt;name&gt;([^&lt;]*)&lt;/name&gt;.*?&lt;mbid&gt;([^&lt;]*)&lt;/mbid&gt;</expression>
			</RegExp>
			<expression noclean="1"></expression>
		</RegExp>
	</LastfmLink>
	<GetBiography dest="5">
		<RegExp input="$$2" output="&lt;details&gt;\1&lt;/details&gt;" dest="5">
			<RegExp input="$$1" output="&lt;biography&gt;\1&lt;/biography&gt;" dest="2">
				<expression clear="yes">&lt;content&gt;&lt;!\[CDATA\[(.*?)\]</expression>
			</RegExp>
			<expression noclean="1"></expression>
		</RegExp>
	</GetBiography>
	<GetDiscography dest="5">
		<RegExp input="$$2$$3" output="&lt;details&gt;\1&lt;/details&gt;" dest="5">
			<RegExp input="$$1" output="&lt;album&gt;&lt;year&gt;\1&lt;/year&gt;&lt;title&gt;\3&lt;/title&gt;&lt;label&gt;\4&lt;/label&gt;&lt;/album&gt;" dest="2">
				<expression repeat="yes" clear="yes" noclean="1,3,4">sorted-cell&quot;&gt;([0-9]+)&lt;/td&gt;&lt;td[^&gt;]*&gt;(&lt;a href=[^&gt;]*&gt;&lt;img [^&gt;]*/&gt;&lt;/a&gt;|[^&lt;]*)?&lt;/td&gt;&lt;td[^&gt;]*&gt;&lt;a href=[^&gt;]*&gt;([^&lt;]*)&lt;/a&gt;&lt;/td&gt;&lt;td[^&lt;]*&lt;/td&gt;&lt;td[^&gt;]*&gt;([^&lt;]+)&lt;/td&gt;</expression>
			</RegExp>
			<RegExp input="$$2" output="\1&amp;amp;\2" dest="3">
				<expression noclean="1,2" repeat="yes">(.*?)&amp;(.+)</expression>
			</RegExp>
			<RegExp input="$$3" output="" dest="2">
				<expression>(.+)</expression>
			</RegExp>
			<expression noclean="1"></expression>
		</RegExp>
	</GetDiscography>
	<GetFanart dest="5">
		<RegExp input="$$13" output="&lt;details&gt;&lt;fanart url=&quot;http://www.htbackdrops.com/&quot;&gt;\1&lt;/fanart&gt;&lt;/details&gt;" dest="5">
			<RegExp input="$$1" output="&lt;thumb preview=&quot;data/thumbnails/\2&quot;&gt;data/media/\2&lt;/thumb&gt;" dest="13">
				<expression noclean="1" repeat="yes">mode=search(&amp;amp;sessionid=[^&quot;]*)?&quot;&gt;&lt;img src=&quot;./data/thumbnails/([^&quot;]+)&quot;</expression>
			</RegExp>
			<expression noclean="1"/>
		</RegExp>
	</GetFanart>
	<GetThumbs dest="5">
		<RegExp input="$$13" output="&lt;details&gt;&lt;thumbs&gt;\1$$7&lt;/thumbs&gt;&lt;/details&gt;" dest="5">
			<RegExp input="$$1" output="&lt;thumb preview=&quot;http://www.htbackdrops.com/data/thumbnails/\2&quot;&gt;http://www.htbackdrops.com/data/media/\2&lt;/thumb&gt;" dest="13">
				<expression noclean="1" repeat="yes">mode=search(&amp;amp;sessionid=[^&quot;]*)?&quot;&gt;&lt;img src=&quot;./data/thumbnails/([^&quot;]+)&quot;</expression>
			</RegExp>
			<expression noclean="1"/>
		</RegExp>
	</GetThumbs>
</scraper>
