211 lines
12 KiB
XML
211 lines
12 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<scraperfunctions>
|
|
<GetMBDiscographyByMBID dest="5" clearbuffers="no">
|
|
<RegExp input="$$1" output="<details><url function="ParseMBDiscography" cache="mb-\1-discog.xml">$INFO[mbsite]/ws/2/release-group?artist=\1&amp;limit=100&amp;type=album</url></details>" dest="5">
|
|
<expression noclean="1" />
|
|
</RegExp>
|
|
</GetMBDiscographyByMBID>
|
|
<ParseMBDiscography dest="5" clearbuffers="no">
|
|
<RegExp input="$$2" output="<details>\1</details>" dest="5">
|
|
<RegExp input="" output="" dest="2">
|
|
<expression />
|
|
</RegExp>
|
|
<RegExp input="$$1" output="<album><year>\5</year><title>\3</title><musicbrainzreleasegroupid>\1</musicbrainzreleasegroupid></album>" dest="2">
|
|
<expression repeat="yes" clear="yes" noclean="1,2,3">(?:\stype-id="[^"]*")?(?:\sid="([^"]*)")?\stype="Album"(?:\stype-id="[^"]*")?(?:\sid="([^"]*)")?><title>([^<]*)</title><first-release-date(\s/)?>(\d{4})?</expression>
|
|
</RegExp>
|
|
<expression noclean="1" />
|
|
</RegExp>
|
|
</ParseMBDiscography>
|
|
|
|
<GetMBLafeSpanByMBID dest="5" clearbuffers="no">
|
|
<RegExp input="$$1" output="<details><url function="ParseMBLifeSpan" cache="mb-\1-artist.xml">$INFO[mbsite]/ws/2/artist/\1?inc=url-rels</url></details>" dest="5">
|
|
<expression noclean="1" />
|
|
</RegExp>
|
|
</GetMBLafeSpanByMBID>
|
|
<ParseMBLifeSpan dest="5" clearbuffers="no">
|
|
<RegExp input="$$2" output="<details>\1</details>" dest="5">
|
|
<RegExp input="" output="" dest="2">
|
|
<expression />
|
|
</RegExp>
|
|
<RegExp input="" output="" dest="11">
|
|
<expression />
|
|
</RegExp>
|
|
<RegExp input="$$1" output="<born>\1</born>" dest="11">
|
|
<expression><artist\sid[^>]*type="Person".*?<life-span>\s*<begin>([^<]*)</expression>
|
|
</RegExp>
|
|
<RegExp input="$$1" output="<died>\1</died>" dest="11+">
|
|
<expression><artist\sid[^>]*type="Person".*?<life-span><begin>[^<]*</begin><end>([^<]*)</expression>
|
|
</RegExp>
|
|
<RegExp input="$$1" output="<formed>\1</formed>" dest="11">
|
|
<expression><artist\sid[^>]*type="Group".*?<life-span><begin>([^<]*)</expression>
|
|
</RegExp>
|
|
<RegExp input="$$1" output="<disbanded>\1</disbanded>" dest="11+">
|
|
<expression><artist\sid[^>]*type="Group".*?<life-span><begin>[^<]*</begin><end>([^<]*)</expression>
|
|
</RegExp>
|
|
<RegExp input="$$11" output="$$12" dest="2">
|
|
<RegExp input="$INFO[lifespanfbsource]" output="<chain function="GetAMGFallbackArtistLifeSpanByAMGID">$$9</chain>" dest="12">
|
|
<expression>allmusic.com</expression>
|
|
</RegExp>
|
|
<RegExp input="$INFO[lifespanfbsource]" output="<chain function="GetTADBFallbackLifeSpanByMBID">$$8</chain>" dest="12">
|
|
<expression>TheAudioDb.com</expression>
|
|
</RegExp>
|
|
<expression>^$</expression>
|
|
</RegExp>
|
|
<RegExp input="$$11" output="$$11" dest="2">
|
|
<expression noclean="1"><(?:born|formed)*>(.+)</(?:born|formed)*></expression>
|
|
</RegExp>
|
|
<expression noclean="1"/>
|
|
</RegExp>
|
|
</ParseMBLifeSpan>
|
|
|
|
<GetMBFallbackLafeSpanByMBID dest="5" clearbuffers="no">
|
|
<RegExp input="$$1" output="<details><url function="ParseFallbackMBLifeSpan" cache="mb-\1-artist.xml">$INFO[mbsite]/ws/2/artist/\1?inc=url-rels</url></details>" dest="5">
|
|
<expression noclean="1" />
|
|
</RegExp>
|
|
</GetMBFallbackLafeSpanByMBID>
|
|
<ParseFallbackMBLifeSpan dest="5" clearbuffers="no">
|
|
<RegExp input="$$2" output="<details>\1</details>" dest="5">
|
|
<RegExp input="" output="" dest="2">
|
|
<expression />
|
|
</RegExp>
|
|
<RegExp input="$$1" output="<born>\1</born>" dest="2">
|
|
<expression><artist type="Person".*?<life-span><begin>([^<]*)</expression>
|
|
</RegExp>
|
|
<RegExp input="$$1" output="<died>\1</died>" dest="2+">
|
|
<expression><artist type="Person".*?<life-span><begin>[^<]*</begin><end>([^<]*)</expression>
|
|
</RegExp>
|
|
<RegExp input="$$1" output="<formed>\1</formed>" dest="2">
|
|
<expression><artist type="Group".*?<life-span><begin>([^<]*)</expression>
|
|
</RegExp>
|
|
<RegExp input="$$1" output="<disbanded>\1</disbanded>" dest="2+">
|
|
<expression><artist type="Group".*?<life-span><begin>[^<]*</begin><end>([^<]*)</expression>
|
|
</RegExp>
|
|
<expression noclean="1"/>
|
|
</RegExp>
|
|
</ParseFallbackMBLifeSpan>
|
|
|
|
<GetMBAlbumTitleByMBID dest="5">
|
|
<RegExp input="$$1" output="<details><url function="ParseMBAlbumTitle" cache="mb-\1-album.xml">$INFO[mbsite]/ws/2/release/\1?inc=recordings+release-groups+artists+labels+ratings</url></details>" dest="5">
|
|
<expression noclean="1" />
|
|
</RegExp>
|
|
</GetMBAlbumTitleByMBID>
|
|
<ParseMBAlbumTitle dest="5">
|
|
<RegExp input="$$2" output="<details>\1</details>" dest="5">
|
|
<RegExp input="$$1" output="<musicbrainzalbumid>\1</musicbrainzalbumid><title>\2</title>" dest="2">
|
|
<expression noclean="1"><release id="([^"]*)"><title>([^<]*)<</expression>
|
|
</RegExp>
|
|
<!--MBID - release group-->
|
|
<RegExp input="$$1" output="<musicbrainzreleasegroupid>\1</musicbrainzreleasegroupid>" dest="2+">
|
|
<expression noclean="1"><release-group\stype="[^"]*"\sid="([^"]*)"</expression>
|
|
</RegExp>
|
|
<RegExp input="$$1" output="<musicbrainzreleasegroupid>\1</musicbrainzreleasegroupid>" dest="2+">
|
|
<expression noclean="1"><release-group\stype="[^"]*"\stype-id="[^"]*"\sid="([^"]*)"</expression>
|
|
</RegExp>
|
|
<RegExp input="$$1" output="<musicbrainzreleasegroupid>\1</musicbrainzreleasegroupid>" dest="2+">
|
|
<expression noclean="1"><release-group\sid="([^"]*)"\stype="[^"]*"</expression>
|
|
</RegExp>
|
|
<RegExp input="$$1" output="<musicbrainzreleasegroupid>\1</musicbrainzreleasegroupid>" dest="2+">
|
|
<expression noclean="1"><release-group\sid="([^"]*)"\stype-id="[^"]*"</expression>
|
|
</RegExp>
|
|
<RegExp input="$$1" output="<musicbrainzreleasegroupid>\1</musicbrainzreleasegroupid>" dest="2+">
|
|
<expression noclean="1"><release-group\stype-id="[^"]*"\sid="([^"]*)"</expression>
|
|
</RegExp>
|
|
<RegExp input="$$1" output="<musicbrainzreleasegroupid>\1</musicbrainzreleasegroupid>" dest="2+">
|
|
<expression noclean="1"><release-group\stype-id="[^"]*"\stype="[^"]*"\sid="([^"]*)"</expression>
|
|
</RegExp>
|
|
<RegExp input="$$1" output="<scrapedmbid>\1</scrapedmbid>" dest="2+">
|
|
<expression noclean="1" />
|
|
</RegExp>
|
|
<expression noclean="1">(.+)</expression>
|
|
</RegExp>
|
|
</ParseMBAlbumTitle>
|
|
|
|
<GetMBAlbumArtistsByMBID dest="5">
|
|
<RegExp input="$$1" output="<details><url function="ParseMBAlbumArtists" cache="mb-\1-album.xml">$INFO[mbsite]/ws/2/release/\1?inc=recordings+release-groups+artists+labels+ratings</url></details>" dest="5">
|
|
<expression noclean="1" />
|
|
</RegExp>
|
|
</GetMBAlbumArtistsByMBID>
|
|
<ParseMBAlbumArtists dest="5">
|
|
<RegExp input="$$2" output="<details>\1</details>" dest="5">
|
|
<RegExp input="$$1" output="<albumArtistCredits><joinphrase>\1</joinphrase><musicBrainzArtistID>\2</musicBrainzArtistID><artist>\3</artist></albumArtistCredits>" dest="2">
|
|
<expression repeat="yes" noclean="1">(?:joinphrase="([^"]*)">)?<artist\sid="([^"]*)".*?<name>([^<]*)<</expression>
|
|
</RegExp>
|
|
<expression noclean="1">(.+)</expression>
|
|
</RegExp>
|
|
</ParseMBAlbumArtists>
|
|
|
|
<GetMBAlbumArtistByMBID dest="5">
|
|
<RegExp input="$$1" output="<details><url function="ParseMBAlbumArtist" cache="mb-\1-album.xml">$INFO[mbsite]/ws/2/release/\1?inc=recordings+release-groups+artists+labels+ratings</url></details>" dest="5">
|
|
<expression noclean="1" />
|
|
</RegExp>
|
|
</GetMBAlbumArtistByMBID>
|
|
<ParseMBAlbumArtist dest="5">
|
|
<RegExp input="$$2" output="<details>\1</details>" dest="5">
|
|
<RegExp input="$$1" output="<artist>\1</artist>" dest="2">
|
|
<expression noclean="1"><artist id="[^"]*".*?<name>([^<]*)<</expression>
|
|
</RegExp>
|
|
<expression noclean="1">(.+)</expression>
|
|
</RegExp>
|
|
</ParseMBAlbumArtist>
|
|
|
|
<GetMBAlbumRatingByMBID dest="5">
|
|
<RegExp input="$$1" output="<details><url function="ParseMBAlbumRating" cache="mb-\1-album.xml">$INFO[mbsite]/ws/2/release/\1?inc=recordings+release-groups+artists+labels+ratings</url></details>" dest="5">
|
|
<expression noclean="1" />
|
|
</RegExp>
|
|
</GetMBAlbumRatingByMBID>
|
|
<ParseMBAlbumRating dest="5">
|
|
<RegExp input="$$2" output="<details>\1</details>" dest="5">
|
|
<RegExp input="$$1" output="<rating max="5.0">\1</rating>" dest="2">
|
|
<expression noclean="1"></primary-type><rating votes-count="[^"]*">(\d)</expression>
|
|
</RegExp>
|
|
<expression noclean="1">(.+)</expression>
|
|
</RegExp>
|
|
</ParseMBAlbumRating>
|
|
|
|
<GetMBAlbumLabelByMBID dest="5">
|
|
<RegExp input="$$1" output="<details><url function="ParseMBAlbumLabel" cache="mb-\1-album.xml">$INFO[mbsite]/ws/2/release/\1?inc=recordings+release-groups+artists+labels+ratings</url></details>" dest="5">
|
|
<expression noclean="1" />
|
|
</RegExp>
|
|
</GetMBAlbumLabelByMBID>
|
|
<ParseMBAlbumLabel dest="5">
|
|
<RegExp input="$$2" output="<details>\1</details>" dest="5">
|
|
<RegExp input="$$1" output="<label>\1</label>" dest="2">
|
|
<expression noclean="1"><label id="[^"]*".*?<name>([^<]*)</expression>
|
|
</RegExp>
|
|
<expression noclean="1">(.+)</expression>
|
|
</RegExp>
|
|
</ParseMBAlbumLabel>
|
|
|
|
<GetMBAlbumDateByMBID dest="5">
|
|
<RegExp input="$$1" output="<details><url function="ParseMBAlbumDate" cache="mb-\1-album.xml">$INFO[mbsite]/ws/2/release/\1?inc=recordings+release-groups+artists+labels+ratings</url></details>" dest="5">
|
|
<expression noclean="1" />
|
|
</RegExp>
|
|
</GetMBAlbumDateByMBID>
|
|
<ParseMBAlbumDate dest="5">
|
|
<RegExp input="$$2" output="<details>\1</details>" dest="5">
|
|
<RegExp input="$$1" output="<releasedate>\1</releasedate>" dest="2">
|
|
<expression noclean="1"><first-release-date>([^<]*)<</expression>
|
|
</RegExp>
|
|
<RegExp input="$$1" output="<year>\1</year>" dest="2+">
|
|
<expression noclean="1"><first-release-date>(\d{4})</expression>
|
|
</RegExp>
|
|
<expression noclean="1" />
|
|
</RegExp>
|
|
</ParseMBAlbumDate>
|
|
|
|
<GetMBAlbumTracksByMBID dest="5">
|
|
<RegExp input="$$1" output="<details><url function="ParseMBAlbumTracks" cache="mb-\1-album.xml">$INFO[mbsite]/ws/2/release/\1?inc=recordings+release-groups+artists+labels+ratings</url></details>" dest="5">
|
|
<expression noclean="1" />
|
|
</RegExp>
|
|
</GetMBAlbumTracksByMBID>
|
|
<ParseMBAlbumTracks dest="5">
|
|
<RegExp input="$$2" output="<details>\1</details>" dest="5">
|
|
<RegExp input="$$1" output="<track><position>\1</position><title>\4</title><duration>\2</duration></track>" dest="2">
|
|
<expression repeat="yes"><track[^>]+><position>(\d+)</position><number>\d*</number>(?:<length>(\d*?)\d{3}</length>)*(?:<recording id="([^"]*)">)*<title>([^<]*)<</expression>
|
|
</RegExp>
|
|
<expression noclean="1">(.+)</expression>
|
|
</RegExp>
|
|
</ParseMBAlbumTracks>
|
|
|
|
</scraperfunctions>
|