diff options
author | night199uk <night199uk@xbmc.org> | 2013-05-01 01:47:08 +0800 |
---|---|---|
committer | night199uk <night199uk@xbmc.org> | 2013-05-02 00:36:35 +0800 |
commit | 361696a2d04025bfa2f9e5822baca9e843f07a29 (patch) | |
tree | d575f8d42ea45367c9b5f22776c08efc7553f62b /addons/metadata.common.musicbrainz.org | |
parent | 6297c69926a11ff39158a9272cb2dabab8db27d2 (diff) |
[musicdb] update scrapers to support musicbrainz lookups
Diffstat (limited to 'addons/metadata.common.musicbrainz.org')
-rw-r--r-- | addons/metadata.common.musicbrainz.org/musicbrainz.xml | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/addons/metadata.common.musicbrainz.org/musicbrainz.xml b/addons/metadata.common.musicbrainz.org/musicbrainz.xml index 5ee46d5dc4..a35a9b419f 100644 --- a/addons/metadata.common.musicbrainz.org/musicbrainz.xml +++ b/addons/metadata.common.musicbrainz.org/musicbrainz.xml @@ -17,7 +17,7 @@ </ParseMBDiscography> <GetMBLafeSpanByMBID dest="5" clearbuffers="no"> - <RegExp input="$$1" output="<details><url function="ParseMBLifeSpan" cache="mb-\1-artist.xml">http://www.musicbrainz.org/ws/2/artist/\1?inc=url-rels</url></details>" dest="5"> + <RegExp input="$$1" output="<details><url function="ParseMBLifeSpan" cache="mb-\1-artist.xml">http://musicbrainz.org/ws/2/artist/\1?inc=url-rels</url></details>" dest="5"> <expression noclean="1" /> </RegExp> </GetMBLafeSpanByMBID> @@ -58,7 +58,7 @@ </ParseMBLifeSpan> <GetMBFallbackLafeSpanByMBID dest="5" clearbuffers="no"> - <RegExp input="$$1" output="<details><url function="ParseFallbackMBLifeSpan" cache="mb-\1-artist.xml">http://www.musicbrainz.org/ws/2/artist/\1?inc=url-rels</url></details>" dest="5"> + <RegExp input="$$1" output="<details><url function="ParseFallbackMBLifeSpan" cache="mb-\1-artist.xml">http://musicbrainz.org/ws/2/artist/\1?inc=url-rels</url></details>" dest="5"> <expression noclean="1" /> </RegExp> </GetMBFallbackLafeSpanByMBID> @@ -90,13 +90,27 @@ </GetMBAlbumTitleByMBID> <ParseMBAlbumTitle dest="5"> <RegExp input="$$2" output="<details>\1</details>" dest="5"> - <RegExp input="$$1" output="<title>\1</title>" dest="2"> - <expression noclean="1"><release id="[^"]*"><title>([^<]*)<</expression> + <RegExp input="$$1" output="<musicBrainzAlbumID>\1</musicBrainzAlbumID><title>\2</title>" dest="2"> + <expression noclean="1"><release id="([^"]*)"><title>([^<]*)<</expression> </RegExp> <expression noclean="1">(.+)</expression> </RegExp> </ParseMBAlbumTitle> + <GetMBAlbumArtistsByMBID dest="5"> + <RegExp input="$$1" output="<details><url function="ParseMBAlbumArtists" cache="mb-\1-album.xml">http://musicbrainz.org/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">http://musicbrainz.org/ws/2/release/\1?inc=recordings+release-groups+artists+labels+ratings</url></details>" dest="5"> <expression noclean="1" /> |