<?xml version="1.0" encoding="UTF-8"?>
<scraper framework="1.1" date="2013-05-29">
	<NfoUrl dest="3">
		<RegExp input="$$1" output="&lt;url&gt;$INFO[mbsite]/ws/2/artist/\1?inc=url-rels&lt;/url&gt;" dest="3">
			<expression>http://musicbrainz.org/artist/(.+)</expression>
		</RegExp>
	</NfoUrl>
	<ResolveIDToUrl dest="3">
		<RegExp input="$$1" output="&lt;url&gt;$INFO[mbsite]/ws/2/artist/\1?inc=url-rels&lt;/url&gt;" dest="3">
			<expression>(.+)</expression>
		</RegExp>
	</ResolveIDToUrl>

	<CreateArtistSearchUrl dest="3">
		<RegExp input="$$1" output="&lt;url&gt;$INFO[mbsite]/ws/2/artist/?fmt=xml&amp;query=artist:&quot;$$4&quot;&amp;limit=100&lt;/url&gt;" dest="3">
			<RegExp input="$$1" output="\1" dest="4">
				<expression noclean="1">(.+)</expression>
			</RegExp>
			<RegExp input="$$1" output="\1/\2\3" dest="7">
				<expression noclean="1">(.+)([-!])(.+)</expression>
			</RegExp>
			<RegExp input="$$1" output="\1" dest="6">
				<expression noclean="1">(.+)(?:Ft%2e|Feat%2e|%20Ft\.|%20Feat\.|%20and%20)</expression>
			</RegExp>
			<RegExp input="$$7" output="\1" dest="4">
				<expression>(.+)</expression>
			</RegExp>
			<RegExp input="$$6" output="\1" dest="4">
				<expression>(.+)</expression>
			</RegExp>
			<expression/>
		</RegExp>
	</CreateArtistSearchUrl>
	<GetArtistSearchResults dest="8">
		<RegExp input="$$5" output="&lt;results sorted=&quot;yes&quot;&gt;\1&lt;/results&gt;" dest="8">
			<RegExp input="$$1" output="&lt;entity&gt;&lt;title&gt;\2&lt;/title&gt;&lt;genre&gt;\7&lt;/genre&gt;&lt;url cache=&quot;mb-\1-artist.xml&quot;&gt;$INFO[mbsite]/ws/2/artist/\1?inc=url-rels&lt;/url&gt;&lt;/entity&gt;" dest="9">
				<expression repeat="yes" noclean="1">artist id=&quot;([^&quot;]*)&quot;(?:\stype=&quot;[^&quot;]*&quot;)* ext:score=&quot;[^&quot;]*&quot;&gt;&lt;name&gt;([^&lt;]*)&lt;/name&gt;(&lt;sort-name&gt;[^&lt;]*&lt;/sort-name&gt;)?(&lt;gender&gt;[^&lt;]*&lt;/gender&gt;)?(&lt;country&gt;[^&lt;]*&lt;/country&gt;)?(&lt;disambiguation&gt;([^&lt;]*))?</expression>
			</RegExp>
			<RegExp input="$$1" output="&lt;entity&gt;&lt;title&gt;\2&lt;/title&gt;&lt;genre&gt;\7&lt;/genre&gt;&lt;url cache=&quot;mb-\1-artist.xml&quot;&gt;$INFO[mbsite]/ws/2/artist/\1?inc=url-rels&lt;/url&gt;&lt;/entity&gt;" dest="9">
				<expression repeat="yes" noclean="1">artist ext:score=&quot;[^&quot;]*&quot;(?:\stype=&quot;[^&quot;]*&quot;)* id=&quot;([^&quot;]*)&quot;&gt;&lt;name&gt;([^&lt;]*)&lt;/name&gt;(&lt;sort-name&gt;[^&lt;]*&lt;/sort-name&gt;)?(&lt;gender&gt;[^&lt;]*&lt;/gender&gt;)?(&lt;country&gt;[^&lt;]*&lt;/country&gt;)?(&lt;disambiguation&gt;([^&lt;]*))?</expression>
			</RegExp>
			<RegExp input="$$9" output="\1" dest="5">
				<expression noclean="1">(.+)</expression>
			</RegExp>
			<expression noclean="1"/>
		</RegExp>
	</GetArtistSearchResults>
	<GetArtistDetails dest="3" clearbuffers="no">
		<RegExp input="$$5" output="&lt;details&gt;\1&lt;/details&gt;" dest="3">
			<!--MBID - Artist-->
			<RegExp input="$$1" output="\1" dest="5">
				<expression noclean="1">&lt;artist(.*?)&lt;name&gt;([^&lt;]*)</expression>
			</RegExp>
			<RegExp input="$$5" output="\1" dest="8">
				<expression noclean="1">\sid=&quot;([^&quot;]*)&quot;</expression>
			</RegExp>
			<!--AMGID - Artist-->
			<RegExp input="$$1" output="\2" dest="9">
				<expression noclean="1">&gt;http://(www.)?allmusic.com/artist/([^&lt;]*)</expression>
			</RegExp>
			<RegExp input="$$1" output="&lt;musicBrainzArtistID&gt;$$8&lt;/musicBrainzArtistID&gt;&lt;name&gt;\2&lt;/name&gt;" dest="5">
				<expression noclean="1">&lt;artist(.*?)&lt;name&gt;([^&lt;]*)</expression>
			</RegExp>
			<RegExp input="$$8" conditional="fanarttvthumbs" output="&lt;chain function=&quot;GetFanartTvArtistThumbsByMBID&quot;&gt;\1&lt;/chain&gt;" dest="5+">
				<expression noclean="1">(.+)</expression>
			</RegExp>
			<RegExp input="$$8" conditional="tadbthumbs" output="&lt;chain function=&quot;GetTADBArtistThumbsByMBID&quot;&gt;$$8&lt;/chain&gt;" dest="5+">
				<expression noclean="1">(.+)</expression>
			</RegExp>
			<RegExp input="$$8" conditional="fanarttvfanart" output="&lt;chain function=&quot;GetFanartTvArtistFanartsByMBID&quot;&gt;\1&lt;/chain&gt;" dest="5+">
				<expression noclean="1">(.+)</expression>
			</RegExp>
			<RegExp input="$$8" conditional="tadbfanart" output="&lt;chain function=&quot;GetTADBArtistFanartsByMBID&quot;&gt;$$8&lt;/chain&gt;" dest="5+">
				<expression noclean="1">(.+)</expression>
			</RegExp>
			<RegExp input="$$9" output="&lt;chain function=&quot;GetAMGData&quot;&gt;\1&lt;/chain&gt;" dest="5+">
				<expression noclean="1">(.+)</expression>
			</RegExp>
			<RegExp input="$$9" output="&lt;chain function=&quot;AMGFallback&quot;&gt;\1&lt;/chain&gt;" dest="5+">
				<expression noclean="1">^$</expression>
			</RegExp>
			<RegExp input="$INFO[discogsource]" output="&lt;chain function=&quot;GetMBDiscographyByMBID&quot;&gt;$$8&lt;/chain&gt;" dest="5+">
				<expression>MusicBrainz</expression>
			</RegExp>
			<RegExp input="$INFO[lifespansource]" output="&lt;chain function=&quot;GetMBLafeSpanByMBID&quot;&gt;$$8&lt;/chain&gt;" dest="5+">
				<expression>MusicBrainz</expression>
			</RegExp>
			<RegExp input="$INFO[biogsource]" output="&lt;chain function=&quot;GetTADBBiographyByMBID&quot;&gt;$$8&lt;/chain&gt;" dest="5+">
				<expression>TheAudioDb.com</expression>
			</RegExp>
			<RegExp input="$INFO[genressource]" output="&lt;chain function=&quot;GetTADBArtistGenresByMBID&quot;&gt;$$8&lt;/chain&gt;" dest="5+">
				<expression>TheAudioDb.com</expression>
			</RegExp>
			<RegExp input="$INFO[stylessource]" output="&lt;chain function=&quot;GetTADBArtistStylesByMBID&quot;&gt;$$8&lt;/chain&gt;" dest="5+">
				<expression>TheAudioDb.com</expression>
			</RegExp>
			<RegExp input="$INFO[moodssource]" output="&lt;chain function=&quot;GetTADBArtistMoodsByMBID&quot;&gt;$$8&lt;/chain&gt;" dest="5+">
				<expression>TheAudioDb.com</expression>
			</RegExp>
			<RegExp input="$INFO[discogsource]" output="&lt;chain function=&quot;GetTADBDiscographyByMBID&quot;&gt;$$8&lt;/chain&gt;" dest="5+">
				<expression>TheAudioDb.com</expression>
			</RegExp>
			<RegExp input="$INFO[lifespansource]" output="&lt;chain function=&quot;GetTADBLifeSpanByMBID&quot;&gt;$$8&lt;/chain&gt;" dest="5+">
				<expression>TheAudioDb.com</expression>
			</RegExp>
			<expression noclean="1"/>
		</RegExp>
	</GetArtistDetails>

	<GetAMGData dest="5" clearbuffers="no">
		<RegExp input="$$2" output="&lt;details&gt;\1&lt;/details&gt;" dest="5">
			<RegExp input="$$1" output="\1" dest="9">
				<expression/>
			</RegExp>
			<RegExp input="" output="" dest="2">
				<expression />
			</RegExp>
			<RegExp input="$INFO[discogsource]" output="&lt;chain function=&quot;GetAMGDiscographyByAMGID&quot;&gt;$$9&lt;/chain&gt;" dest="2">
				<expression>allmusic.com</expression>
			</RegExp>
			<RegExp input="$INFO[lifespansource]" output="&lt;chain function=&quot;GetAMGArtistLifeSpanByAMGID&quot;&gt;$$9&lt;/chain&gt;" dest="2+">
				<expression>allmusic.com</expression>
			</RegExp>
			<RegExp input="$INFO[biogsource]" output="&lt;chain function=&quot;GetAMGBiographyByAMGID&quot;&gt;$$9&lt;/chain&gt;" dest="2+">
				<expression>allmusic.com</expression>
			</RegExp>
			<RegExp input="$INFO[genressource]" output="&lt;chain function=&quot;GetAMGArtistGenresByAMGID&quot;&gt;$$9&lt;/chain&gt;" dest="2+">
				<expression>allmusic.com</expression>
			</RegExp>
			<RegExp input="$INFO[stylessource]" output="&lt;chain function=&quot;GetAMGArtistStylesByAMGID&quot;&gt;$$9&lt;/chain&gt;" dest="2+">
				<expression>allmusic.com</expression>
			</RegExp>
			<RegExp input="$INFO[moodssource]" output="&lt;chain function=&quot;GetAMGArtistMoodsByAMGID&quot;&gt;$$9&lt;/chain&gt;" dest="2+">
				<expression>allmusic.com</expression>
			</RegExp>
			<RegExp input="$INFO[yearsasource]" output="&lt;chain function=&quot;GetAMGArtistYearsActiveByAMGID&quot;&gt;$$9&lt;/chain&gt;" dest="2+">
				<expression>allmusic.com</expression>
			</RegExp>
			<expression noclean="1" />
		</RegExp>
	</GetAMGData>

	<AMGFallback dest="5" clearbuffers="no">
		<RegExp input="$$11" output="&lt;details&gt;\1&lt;/details&gt;" dest="5">
			<RegExp input="$INFO[discogfbsource]" output="&lt;chain function=&quot;GetMBDiscographyByMBID&quot;&gt;$$8&lt;/chain&gt;" dest="11+">
				<expression>MusicBrainz</expression>
			</RegExp>
			<RegExp input="$INFO[lifespanfbsource]" output="&lt;chain function=&quot;GetMBLafeSpanByMBID&quot;&gt;$$8&lt;/chain&gt;" dest="11+">
				<expression>MusicBrainz</expression>
			</RegExp>
			<RegExp input="$INFO[stylesfbsource]" output="&lt;chain function=&quot;GetTADBArtistStylesByMBID&quot;&gt;$$8&lt;/chain&gt;" dest="5+">
				<expression>TheAudioDb.com</expression>
			</RegExp>
			<RegExp input="$INFO[moodsfbsource]" output="&lt;chain function=&quot;GetTADBArtistMoodsByMBID&quot;&gt;$$8&lt;/chain&gt;" dest="5+">
				<expression>TheAudioDb.com</expression>
			</RegExp>
			<expression noclean="1" />
		</RegExp>
	</AMGFallback>

</scraper>
