diff options
Diffstat (limited to 'addons/metadata.allmusic.com')
-rw-r--r-- | addons/metadata.allmusic.com/allmusic.xml | 112 | ||||
-rw-r--r-- | addons/metadata.allmusic.com/default.tbn | bin | 0 -> 17628 bytes | |||
-rw-r--r-- | addons/metadata.allmusic.com/description.xml | 30 |
3 files changed, 142 insertions, 0 deletions
diff --git a/addons/metadata.allmusic.com/allmusic.xml b/addons/metadata.allmusic.com/allmusic.xml new file mode 100644 index 0000000000..afe987020a --- /dev/null +++ b/addons/metadata.allmusic.com/allmusic.xml @@ -0,0 +1,112 @@ +<?xml version="1.0" encoding="UTF-8"?> +<scraper framework="1.1" date="2009-09-30" name="Allmusic" content="albums" thumb="allmusic.png" language="en"> + <GetSettings dest="3"> + <RegExp input="$$5" output="<settings>\1</settings>" dest="3"> + <RegExp input="$$1" output="<setting label="Enable Fanart" type="bool" id="htbfanart" default="true"></setting>" dest="5+"> + <expression/> + </RegExp> + <RegExp input="$$1" output="<setting label="Grab artist thumbs from Allmusic.com" type="bool" id="allmusicartistthumbs" default="true"></setting>" dest="5+"> + <expression></expression> + </RegExp> + <RegExp input="$$1" output="<setting label="Grab album thumbs from Allmusic.com" type="bool" id="allmusicalbumthumbs" default="true"></setting>" dest="5+"> + <expression></expression> + </RegExp> + <RegExp input="$$1" output="<setting label="Grab artist thumbs from Last.fm" type="bool" id="lastfmartistthumbs" default="false"></setting>" dest="5+"> + <expression></expression> + </RegExp> + <RegExp input="$$1" output="<setting label="Grab album thumbs from Last.fm" type="bool" id="lastfmalbumthumbs" default="false"></setting>" dest="5+"> + <expression></expression> + </RegExp> +<!-- <RegExp input="$$1" output="<setting label="Grab artist thumbs from Discogs" type="bool" id="discogsartistthumbs" default="false"></setting>" dest="5+"> + <expression></expression> + </RegExp> + <RegExp input="$$1" output="<setting label="Grab album thumbs from Discogs" type="bool" id="discogsalbumthumbs" default="false"></setting>" dest="5+"> + <expression></expression> + </RegExp> --> + <RegExp input="$$1" output="<setting label="Grab artist thumbs from HTBackdrops" type="bool" id="htbthumbs" default="true"></setting>" dest="5+"> + <expression></expression> + </RegExp> + <expression noclean="1"/> + </RegExp> + </GetSettings> + <NfoUrl dest="3"> + <RegExp input="$$1" output="http://www.\1" dest="3"> + <expression>(allmusic.com/cg/.*)</expression> + </RegExp> + </NfoUrl> + <CreateAlbumSearchUrl dest="3"> + <RegExp input="$$1" output="<url post="yes">http://www.allmusic.com/cg/amg.dll?P=amg&amp;SQL=\1&amp;OPT1=2</url>" dest="3"> + <expression/> + </RegExp> + </CreateAlbumSearchUrl> + <GetAlbumSearchResults dest="8"> + <RegExp input="$$5" output="<results>\1</results>" dest="8"> + <RegExp input="$$1" output="<entity><title>\1</title></entity>" dest="5"> + <expression repeat="yes" noclean="1"><TITLE>allmusic[ (]+ ([^>]*) > Overview</expression> + </RegExp> + <RegExp input="$$1" output="<entity><year>\1</year><artist>\2</artist><title>\4</title><url cache="am-\2-\4-album.html">http://www.allmusic.com/cg/amg.dll?p=amg&amp;SQL=\3</url></entity>" dest="5+"> + <expression repeat="yes" noclean="1,2,3">>([0-9]+)</.*?>([a-zA-Z0-9].*?)<.*?sql=([0-9:a-z]*)">(.*?)<.</expression> + </RegExp> + <expression noclean="1"/> + </RegExp> + </GetAlbumSearchResults> + <GetAlbumDetails dest="3"> + <RegExp input="$$5" output="<details>\1</details>" dest="3"> + <RegExp input="$$1" output="<url cache="am-$$2-album.html" function="ParseAMGAlbum">http://www.allmusic.com/cg/amg.dll?p=amg&amp;sql=\1</url>" dest="5+"> + <expression noclean="1">sql=([^"]*)">Overview</expression> + </RegExp> + <RegExp input="$$1" output="<url cache="am-$$2-album.html" function="GetAMGReview">http://www.allmusic.com/cg/amg.dll?p=amg&amp;sql=\1</url>" dest="5+"> + <expression noclean="1">sql=([^"]*)">Review</expression> + </RegExp> + <RegExp input="$$1" conditional="lastfmalbumthumbs" output="<url function="GetLastFMAlbumThumbs">http://ws.audioscrobbler.com/2.0/?method=album.getinfo&artist=\2&album=\1&api_key=71e468a84c1f40d4991ddccc46e40f1b</url>" dest="5+"> + <expression trim="1,2" encode="1,2"><span class="title">[ ]*([^<]*)</span>.*<a href="[^"]+" class="subtitle">[ ]*([^<]*)</a></expression> + </RegExp> + <RegExp input="$$1" conditional="discogsalbumthumbs" output="<url function="GetDiscogsAlbumThumbs" gzip="yes">http://www.discogs.com/search?type=all&q=\1%20\2&f=xml&api_key=173f75844f</url>" dest="5+"> + <expression trim="1,2" encode="1,2"><span class="title">[ ]*([^<]*)</span>.*<a href="[^"]+" class="subtitle">[ ]*([^<]*)</a></expression> + </RegExp> + <expression noclean="1"/> + </RegExp> + </GetAlbumDetails> + <CreateArtistSearchUrl dest="3"> + <RegExp input="$$1" output="<url post="yes">http://www.allmusic.com/cg/amg.dll?P=amg&amp;SQL=\1&amp;OPT1=1</url>" dest="3"> + <expression/> + </RegExp> + </CreateArtistSearchUrl> + <GetArtistSearchResults dest="8"> + <RegExp input="$$5" output="<results>\1</results>" dest="8"> + <RegExp input="$$1" output="<entity><title>\1</title></entity>" dest="5"> + <expression repeat="yes" noclean="1"><TITLE>allmusic[ (]+ ([^>]*) > Overview</expression> + </RegExp> + <RegExp input="$$1" output="<entity><title>\2</title><genre>\3</genre><year>\5</year><url>http://www.allmusic.com/cg/amg.dll?p=amg&amp;SQL=\1</url></entity>" dest="5+"> + <expression repeat="yes" noclean="1,2">style="[^=]*<a href="[^"]*sql=([^"]*)">([^<]*)</a>[^-]*[^>]*>([^<]*)</TD>[^>]*>(&nbsp;)?([^<]*)</td></expression> + </RegExp> + <expression noclean="1"/> + </RegExp> + </GetArtistSearchResults> + <GetArtistDetails dest="3"> + <RegExp input="$$5" output="<details>\1</details>" dest="3"> + <RegExp input="$$1" output="<url cache="am-$$2-artist.html" function="ParseAMGArtist">http://www.allmusic.com/cg/amg.dll?p=amg&amp;sql=\1</url>" dest="5"> + <expression noclean="1">sql=([^"]*)">Biography</expression> + </RegExp> + <RegExp input="$$2" conditional="htbthumbs" output="<url cache="htb-$$2.html" function="GetHTBThumbs" post="yes">http://www.htbackdrops.com/search.php?search_terms=all&amp;search_keywords=\1</url>" dest="5+"> + <expression/> + </RegExp> + <RegExp input="$$2" conditional="lastfmartistthumbs" output="<url function="GetLastFMArtistThumbs">http://ws.audioscrobbler.com/2.0/?method=artist.getimages&amp;artist=\1&amp;api_key=71e468a84c1f40d4991ddccc46e40f1b</url>" dest="5+"> + <expression/> + </RegExp> + <RegExp input="$$2" conditional="discogsartistthumbs" output="<url function="GetDiscogsArtistThumbs" gzip="yes">http://www.discogs.com/search?type=artists&q=\1&f=xml&api_key=173f75844f</url>" dest="5+"> + <expression/> + </RegExp> + <RegExp input="$$2" conditional="htbfanart" output="<url cache="htb-$$2.html" function="GetHTBFanart" post="yes">http://www.htbackdrops.com/search.php?search_terms=all&amp;search_keywords=\1</url>" dest="5+"> + <expression/> + </RegExp> + <RegExp input="$$1" output="<url cache="am-$$2-artist.html" function="GetAMGBiography">http://www.allmusic.com/cg/amg.dll?p=amg&amp;sql=\1</url>" dest="5+"> + <expression noclean="1">sql=([^"]*)">Biography</expression> + </RegExp> + <RegExp input="$$1" output="<url cache="am-$$2-discog.html" function="GetAMGDiscography">http://www.allmusic.com/cg/amg.dll?p=amg&amp;sql=\1</url>" dest="5+"> + <expression noclean="1">sql=([^"]*)">Discography</expression> + </RegExp> + <expression noclean="1"/> + </RegExp> + </GetArtistDetails> +</scraper> diff --git a/addons/metadata.allmusic.com/default.tbn b/addons/metadata.allmusic.com/default.tbn Binary files differnew file mode 100644 index 0000000000..4189bf7d79 --- /dev/null +++ b/addons/metadata.allmusic.com/default.tbn diff --git a/addons/metadata.allmusic.com/description.xml b/addons/metadata.allmusic.com/description.xml new file mode 100644 index 0000000000..8108d36e1b --- /dev/null +++ b/addons/metadata.allmusic.com/description.xml @@ -0,0 +1,30 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> +<addoninfo> + <id>com.allmusic.scraper</id> + <type>scraper</type> + <title>AllMusic</title> + <library>allmusic.xml</library> + <version>1.0.0</version> + <platforms> + <platform>all</platform> + </platforms> + <minversion> + <xbmc>20000</xbmc> + </minversion> + <summary>AllMusic Scraper</summary> + <description>Use AllMusic.com to fill your libray metadata information. +The allmusic website was created in 1995 as a place for music fans to indulge their passion. +The AMG editorial staff, along with hundreds of expert contributors (all music fanatics in their own right), has made allmusic the most comprehensive music reference source on the planet. They are all dedicated to creating and maintaining the knowledgeable, spirited content that music lovers and industry professionals have come to expect from AMG. +All genres and styles of music are covered here, ranging from the most commercially popular to the most obscure. We critique albums and artists within the context of their own genres - from opera to garage rock to traditional country. This ensures that fans of any style of music can depend on us to keep them up-to-date with their favorite artists as well as introduce them to new sounds.</description> + <author>Team XBMC</author> + <dependencies> + <dependency minversion="1.0.0" maxversion="">fm.last.scraper.common</dependency> + <dependency minversion="1.0.0" maxversion="">com.allmusic.scraper.common</dependency> + <dependency minversion="1.0.0" maxversion="">com.discogs.scraper.common</dependency> + <dependency minversion="1.0.0" maxversion="">com.htbackdrops.scraper.common</dependency> + </dependencies> + <supportedcontent> + <content>albums</content> + <content>artists</content> + </supportedcontent> +</addoninfo> |