202 lines
15 KiB
XML
202 lines
15 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<scraper framework="1.1" date="2013-05-29">
|
|
<NfoUrl dest="3">
|
|
<RegExp input="$$1" output="<url cache="mb-\1-album.xml">$INFO[mbsite]/ws/2/release/\1?inc=recordings+release-groups+artists+labels+ratings</url>" dest="3">
|
|
<expression>release/(.+)</expression>
|
|
</RegExp>
|
|
</NfoUrl>
|
|
<ResolveIDToUrl dest="3">
|
|
<RegExp input="$$1" output="<url cache="mb-\1-album.xml">$INFO[mbsite]/ws/2/release/\1?inc=recordings+release-groups+artists+labels+ratings</url>" dest="3">
|
|
<expression>(.+)</expression>
|
|
</RegExp>
|
|
</ResolveIDToUrl>
|
|
<CreateAlbumSearchUrl dest="3">
|
|
<RegExp input="$$1" output="<url>$INFO[mbsite]/ws/2/release/?fmt=xml&query=release:%22\1%22%20AND%20(artistname:%22$$4%22%20OR%20artist:%22$$4%22)</url>" dest="3">
|
|
<RegExp input="$$2" output="\1" dest="4">
|
|
<expression noclean="1">(.+)</expression>
|
|
</RegExp>
|
|
<RegExp input="$$2" output="\1" dest="6">
|
|
<expression noclean="1">(.+)(?:Ft%2e|Feat%2e|%20Ft\.|%20Feat\.|%20and%20|%20\/)</expression>
|
|
</RegExp>
|
|
<RegExp input="$$6" output="\1" dest="4">
|
|
<expression>(.+)</expression>
|
|
</RegExp>
|
|
<expression/>
|
|
</RegExp>
|
|
</CreateAlbumSearchUrl>
|
|
<GetAlbumSearchResults dest="8">
|
|
<RegExp input="$$5" output="<results sorted="yes">\1</results>" dest="8">
|
|
<RegExp input="$$1" output="<entity><year>\6-\5-T#\7</year><artist>\4</artist><title>\3</title><relevance scale="100">\2</relevance><url cache="mb-\1-album.xml">$INFO[mbsite]/ws/2/release/\1?inc=recordings+release-groups+artists+labels+ratings</url></entity>" dest="5">
|
|
<expression repeat="yes">release\sid="([^"]*)"[^:]*:score="(\d*)"><title>([^<]*)</title><status>Official</status>(?:<disambiguation>[^<]*</disambiguation>)*(?:<packaging[^<]*</packaging>)*<text-representation>(?:<language>[^<]*</language>)*(?:<script>[^<]*</script>)*</text-representation><artist-credit><name-credit(?:>)*(?:\sjoinphrase="[^"]*">)*(?:<name>[^<]*</name)*(?:>)*<artist\sid="[^"]*"><name>([^<]*)</name>(?:<sort-name>[^<]*</sort-name>)*(?:<disambiguation>[^<]*</disambiguation>)*(?:<alias-list>(?:<alias[^<]*</alias>)*</alias-list>)*</artist></name-credit>(?:<name-credit(?:>)*(?:\sjoinphrase="[^"]*">)*(?:<name>[^<]*</name)*(?:>)*<artist\sid="[^"]*"><name>[^<]*</name>(?:<sort-name>[^<]*</sort-name>)*(?:<disambiguation>[^<]*</disambiguation>)*(?:<alias-list>(?:<alias[^<]*</alias>)*</alias-list>)*</artist></name-credit>)*</artist-credit><release-group\sid="[^"]*"\stype="Album"\stype-id="[^"]*"><title>[^<]*</title>(?:<disambiguation>[^<]*</disambiguation>)*(?:<primary-type\sid="[^"]*">[^<]*</primary-type>)*(?:<secondary-type-list>(?:<secondary-type\sid="[^"]*">[^<]*</secondary-type>)+</secondary-type-list>)*</release-group>(?:<date>(\d{4})[^<]*</date>)*(?:<country>)*([^<]*)?.*?<track-list\scount="(\d+).*?</release></expression>
|
|
</RegExp>
|
|
<RegExp input="$$1" output="<entity><year>\6-\5-T#\7</year><artist>\4</artist><title>\3</title><relevance scale="100">\2</relevance><url cache="mb-\1-album.xml">$INFO[mbsite]/ws/2/release/\1?inc=recordings+release-groups+artists+labels+ratings</url></entity>" dest="5+">
|
|
<expression repeat="yes">release\sid="([^"]*)"[^:]*:score="(\d*)"><title>([^<]*)</title><status>Official</status>(?:<disambiguation>[^<]*</disambiguation>)*(?:<packaging[^<]*</packaging>)*<text-representation>(?:<language>[^<]*</language>)*(?:<script>[^<]*</script>)*</text-representation><artist-credit><name-credit(?:>)*(?:\sjoinphrase="[^"]*">)*(?:<name>[^<]*</name)*(?:>)*<artist\sid="[^"]*"><name>([^<]*)</name>(?:<sort-name>[^<]*</sort-name>)*(?:<disambiguation>[^<]*</disambiguation>)*(?:<alias-list>(?:<alias[^<]*</alias>)*</alias-list>)*</artist></name-credit>(?:<name-credit(?:>)*(?:\sjoinphrase="[^"]*">)*(?:<name>[^<]*</name)*(?:>)*<artist\sid="[^"]*"><name>[^<]*</name>(?:<sort-name>[^<]*</sort-name>)*(?:<disambiguation>[^<]*</disambiguation>)*(?:<alias-list>(?:<alias[^<]*</alias>)*</alias-list>)*</artist></name-credit>)*</artist-credit><release-group\sid="[^"]*"\stype="[^"]*"\stype-id="[^"]*"><title>[^<]*</title>(?:<disambiguation>[^<]*</disambiguation>)*(?:<primary-type\sid="[^"]*">[^<]*</primary-type>)*(?:<secondary-type-list>(?:<secondary-type\sid="[^"]*">[^<]*</secondary-type>)+</secondary-type-list>)*</release-group>(?:<date>(\d{4})[^<]*</date>)*(?:<country>)*([^<]*)?.*?<track-list\scount="(\d+).*?</release></expression>
|
|
</RegExp>
|
|
<expression noclean="1" />
|
|
</RegExp>
|
|
</GetAlbumSearchResults>
|
|
<GetAlbumDetails dest="3">
|
|
<RegExp input="$$5" output="<details>\1</details>" dest="3">
|
|
<!--MBID - release-->
|
|
<RegExp input="$$1" output="\1" dest="3">
|
|
<expression>id="([^"]*)</expression>
|
|
</RegExp>
|
|
<!--MBID - release group-->
|
|
<RegExp input="$$1" output="\1" dest="4">
|
|
<expression><release-group\stype="[^"]*"\sid="([^"]*)"</expression>
|
|
</RegExp>
|
|
<RegExp input="$$1" output="\1" dest="4+">
|
|
<expression><release-group\stype="[^"]*"\stype-id="[^"]*"\sid="([^"]*)"</expression>
|
|
</RegExp>
|
|
<RegExp input="$$1" output="\1" dest="4+">
|
|
<expression><release-group\sid="([^"]*)"\stype="[^"]*"</expression>
|
|
</RegExp>
|
|
<RegExp input="$$1" output="\1" dest="4+">
|
|
<expression><release-group\sid="([^"]*)"\stype-id="[^"]*"</expression>
|
|
</RegExp>
|
|
<RegExp input="$$1" output="\1" dest="4+">
|
|
<expression><release-group\stype-id="[^"]*"\sid="([^"]*)"</expression>
|
|
</RegExp>
|
|
<RegExp input="$$1" output="\1" dest="4+">
|
|
<expression><release-group\stype-id="[^"]*"\stype="[^"]*"\sid="([^"]*)"</expression>
|
|
</RegExp>
|
|
<!--Album title-->
|
|
<RegExp input="$$1" output="\1" dest="7">
|
|
<expression trim="1"><release\sid="[^"]*"><title>([^<]*)<</expression>
|
|
</RegExp>
|
|
<!--Artist name-->
|
|
<RegExp input="$$1" output="\1" dest="8">
|
|
<expression trim="1"><release\sid="[^"]*"><title>[^<]*<.*?<artist\sid="[^"]*"><name>([^<]*)<</expression>
|
|
</RegExp>
|
|
<RegExp input="$$3" output="<chain function="GetMBAlbumTitleByMBID">\1</chain>" dest="5">
|
|
<expression noclean="1">(.+)</expression>
|
|
</RegExp>
|
|
<RegExp input="$$3" output="<chain function="GetMBAlbumArtistsByMBID">\1</chain>" dest="5+">
|
|
<expression noclean="1">(.+)</expression>
|
|
</RegExp>
|
|
<RegExp input="$$3" output="<chain function="GetMBAlbumArtistByMBID">\1</chain>" dest="5+">
|
|
<expression noclean="1">(.+)</expression>
|
|
</RegExp>
|
|
<RegExp input="$$3" output="<chain function="GetMBAlbumLabelByMBID">\1</chain>" dest="5+">
|
|
<expression noclean="1">(.+)</expression>
|
|
</RegExp>
|
|
<RegExp input="$$3" output="<chain function="GetMBAlbumDateByMBID">\1</chain>" dest="5+">
|
|
<expression noclean="1">(.+)</expression>
|
|
</RegExp>
|
|
<RegExp input="$$3" output="<chain function="GetMBAlbumTracksByMBID">\1</chain>" dest="5+">
|
|
<expression noclean="1">(.+)</expression>
|
|
</RegExp>
|
|
<RegExp input="$INFO[albumreviewsource]" output="<url function="GetAMGAlbumReview" cache="mb-$$4-rg.xml">$INFO[mbsite]/ws/2/release-group/$$4?inc=url-rels</url>" dest="5+">
|
|
<expression>allmusic.com</expression>
|
|
</RegExp>
|
|
<RegExp input="$INFO[albumreviewsource]" output="<chain function="GetTADBAlbumReviewByMBID">$$4</chain>" dest="5+">
|
|
<expression>TheAudioDb.com</expression>
|
|
</RegExp>
|
|
<RegExp input="$INFO[albumratingsource]" output="<chain function="GetMBAlbumRatingByMBID">$$3</chain>" dest="5+">
|
|
<expression>MusicBrainz</expression>
|
|
</RegExp>
|
|
<RegExp input="$INFO[albumratingsource]" output="<url function="GetAMGAlbumRating" cache="mb-$$4-rg.xml">$INFO[mbsite]/ws/2/release-group/$$4?inc=url-rels</url>" dest="5+">
|
|
<expression>allmusic.com</expression>
|
|
</RegExp>
|
|
<RegExp input="$INFO[albumratingsource]" output="<chain function="GetTADBAlbumRatingByMBID">$$4</chain>" dest="5+">
|
|
<expression>TheAudioDb.com</expression>
|
|
</RegExp>
|
|
<RegExp input="$INFO[albumstylessource]" output="<url function="GetAMGAlbumStyles" cache="mb-$$4-rg.xml">$INFO[mbsite]/ws/2/release-group/$$4?inc=url-rels</url>" dest="5+">
|
|
<expression>allmusic.com</expression>
|
|
</RegExp>
|
|
<RegExp input="$INFO[albumstylessource]" output="<chain function="GetTADBAlbumStylesByMBID">$$4</chain>" dest="5+">
|
|
<expression>TheAudioDb.com</expression>
|
|
</RegExp>
|
|
<RegExp input="$INFO[albummoodssource]" output="<url function="GetAMGAlbumMoods" cache="mb-$$4-rg.xml">$INFO[mbsite]/ws/2/release-group/$$4?inc=url-rels</url>" dest="5+">
|
|
<expression>allmusic.com</expression>
|
|
</RegExp>
|
|
<RegExp input="$INFO[albummoodssource]" output="<chain function="GetTADBAlbumMoodsByMBID">$$4</chain>" dest="5+">
|
|
<expression>TheAudioDb.com</expression>
|
|
</RegExp>
|
|
<RegExp input="$INFO[albumthemessource]" output="<url function="GetAMGAlbumThemes" cache="mb-$$4-rg.xml">$INFO[mbsite]/ws/2/release-group/$$4?inc=url-rels</url>" dest="5+">
|
|
<expression>allmusic.com</expression>
|
|
</RegExp>
|
|
<RegExp input="$INFO[albumthemessource]" output="<chain function="GetTADBAlbumThemeByMBID">$$4</chain>" dest="5+">
|
|
<expression>TheAudioDb.com</expression>
|
|
</RegExp>
|
|
<RegExp conditional="fanarttvalbumthumbs" input="$$4" output="<chain function="GetFanartTvAlbumThumbsByMBID">\1</chain>" dest="5+">
|
|
<expression noclean="1">(.+)</expression>
|
|
</RegExp>
|
|
<RegExp conditional="fanarttvalbumdiscart" input="$$4" output="<chain function="GetFanartTvAlbumDiscartByMBID">\1</chain>" dest="5+">
|
|
<expression noclean="1">(.+)</expression>
|
|
</RegExp>
|
|
<RegExp conditional="tadbalbumthumbs" input="$$4" output="<chain function="GetTADBAlbumThumbsByMBID">\1</chain>" dest="5+">
|
|
<expression noclean="1">(.+)</expression>
|
|
</RegExp>
|
|
<RegExp conditional="tadbalbumdiscart" input="$$4" output="<chain function="GetTADBAlbumDiscartByMBID">\1</chain>" dest="5+">
|
|
<expression noclean="1">(.+)</expression>
|
|
</RegExp>
|
|
<RegExp conditional="tadbalbumback" input="$$4" output="<chain function="GetTADBAlbumBackByMBID">\1</chain>" dest="5+">
|
|
<expression noclean="1">(.+)</expression>
|
|
</RegExp>
|
|
<RegExp conditional="tadbalbumspine" input="$$4" output="<chain function="GetTADBAlbumSpineByMBID">\1</chain>" dest="5+">
|
|
<expression noclean="1">(.+)</expression>
|
|
</RegExp>
|
|
<RegExp conditional="allmusicalbumthumbs" input="$$4" output="<url function="GetAMGAlbumThumbs" cache="mb-\1-rg.xml">$INFO[mbsite]/ws/2/release-group/\1?inc=url-rels</url>" dest="5+">
|
|
<expression noclean="1">(.+)</expression>
|
|
</RegExp>
|
|
<expression noclean="1" />
|
|
</RegExp>
|
|
</GetAlbumDetails>
|
|
|
|
<GetAMGAlbumReview dest="5">
|
|
<RegExp input="$$2" output="<details>\1</details>" dest="5">
|
|
<RegExp input="$$1" output="<chain function="GetAMGAlbumReviewByAMGID">\1</chain>" dest="2">
|
|
<expression noclean="1">allmusic.com/album/([^<]*)</expression>
|
|
</RegExp>
|
|
<expression noclean="1" />
|
|
</RegExp>
|
|
</GetAMGAlbumReview>
|
|
|
|
<GetAMGAlbumRating dest="5">
|
|
<RegExp input="$$2" output="<details>\1</details>" dest="5">
|
|
<RegExp input="$$1" output="<chain function="GetAMGAlbumRatingByAMGID">\1</chain>" dest="2">
|
|
<expression noclean="1">allmusic.com/album/([^<]*)</expression>
|
|
</RegExp>
|
|
<expression noclean="1" />
|
|
</RegExp>
|
|
</GetAMGAlbumRating>
|
|
|
|
<GetAMGAlbumStyles dest="5">
|
|
<RegExp input="$$2" output="<details>\1</details>" dest="5">
|
|
<RegExp input="$$1" output="<chain function="GetAMGAlbumStylesByAMGID">\1</chain>" dest="2">
|
|
<expression noclean="1">allmusic.com/album/([^<]*)</expression>
|
|
</RegExp>
|
|
<expression noclean="1" />
|
|
</RegExp>
|
|
</GetAMGAlbumStyles>
|
|
|
|
<GetAMGAlbumMoods dest="5">
|
|
<RegExp input="$$2" output="<details>\1</details>" dest="5">
|
|
<RegExp input="$$1" output="<chain function="GetAMGAlbumMoodsByAMGID">\1</chain>" dest="2">
|
|
<expression noclean="1">allmusic.com/album/([^<]*)</expression>
|
|
</RegExp>
|
|
<expression noclean="1" />
|
|
</RegExp>
|
|
</GetAMGAlbumMoods>
|
|
|
|
<GetAMGAlbumThemes dest="5">
|
|
<RegExp input="$$2" output="<details>\1</details>" dest="5">
|
|
<RegExp input="$$1" output="<chain function="GetAMGAlbumThemesByAMGID">\1</chain>" dest="2">
|
|
<expression noclean="1">allmusic.com/album/([^<]*)</expression>
|
|
</RegExp>
|
|
<expression noclean="1" />
|
|
</RegExp>
|
|
</GetAMGAlbumThemes>
|
|
|
|
<GetAMGAlbumThumbs dest="5">
|
|
<RegExp input="$$2" output="<details>\1</details>" dest="5">
|
|
<RegExp input="$$1" output="<chain function="GetAMGAlbumThumbsByAMGID">\1</chain>" dest="2">
|
|
<expression noclean="1">allmusic.com/album/([^<]*)</expression>
|
|
</RegExp>
|
|
<expression noclean="1" />
|
|
</RegExp>
|
|
</GetAMGAlbumThumbs>
|
|
|
|
</scraper>
|