aboutsummaryrefslogtreecommitdiff
path: root/addons/metadata.allmusic.com
diff options
context:
space:
mode:
Diffstat (limited to 'addons/metadata.allmusic.com')
-rw-r--r--addons/metadata.allmusic.com/allmusic.xml112
-rw-r--r--addons/metadata.allmusic.com/default.tbnbin0 -> 17628 bytes
-rw-r--r--addons/metadata.allmusic.com/description.xml30
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="&lt;settings&gt;\1&lt;/settings&gt;" dest="3">
+ <RegExp input="$$1" output="&lt;setting label=&quot;Enable Fanart&quot; type=&quot;bool&quot; id=&quot;htbfanart&quot; default=&quot;true&quot;&gt;&lt;/setting&gt;" dest="5+">
+ <expression/>
+ </RegExp>
+ <RegExp input="$$1" output="&lt;setting label=&quot;Grab artist thumbs from Allmusic.com&quot; type=&quot;bool&quot; id=&quot;allmusicartistthumbs&quot; default=&quot;true&quot;&gt;&lt;/setting&gt;" dest="5+">
+ <expression></expression>
+ </RegExp>
+ <RegExp input="$$1" output="&lt;setting label=&quot;Grab album thumbs from Allmusic.com&quot; type=&quot;bool&quot; id=&quot;allmusicalbumthumbs&quot; default=&quot;true&quot;&gt;&lt;/setting&gt;" dest="5+">
+ <expression></expression>
+ </RegExp>
+ <RegExp input="$$1" output="&lt;setting label=&quot;Grab artist thumbs from Last.fm&quot; type=&quot;bool&quot; id=&quot;lastfmartistthumbs&quot; default=&quot;false&quot;&gt;&lt;/setting&gt;" dest="5+">
+ <expression></expression>
+ </RegExp>
+ <RegExp input="$$1" output="&lt;setting label=&quot;Grab album thumbs from Last.fm&quot; type=&quot;bool&quot; id=&quot;lastfmalbumthumbs&quot; default=&quot;false&quot;&gt;&lt;/setting&gt;" dest="5+">
+ <expression></expression>
+ </RegExp>
+<!-- <RegExp input="$$1" output="&lt;setting label=&quot;Grab artist thumbs from Discogs&quot; type=&quot;bool&quot; id=&quot;discogsartistthumbs&quot; default=&quot;false&quot;&gt;&lt;/setting&gt;" dest="5+">
+ <expression></expression>
+ </RegExp>
+ <RegExp input="$$1" output="&lt;setting label=&quot;Grab album thumbs from Discogs&quot; type=&quot;bool&quot; id=&quot;discogsalbumthumbs&quot; default=&quot;false&quot;&gt;&lt;/setting&gt;" dest="5+">
+ <expression></expression>
+ </RegExp> -->
+ <RegExp input="$$1" output="&lt;setting label=&quot;Grab artist thumbs from HTBackdrops&quot; type=&quot;bool&quot; id=&quot;htbthumbs&quot; default=&quot;true&quot;&gt;&lt;/setting&gt;" 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="&lt;url post=&quot;yes&quot;&gt;http://www.allmusic.com/cg/amg.dll?P=amg&amp;amp;SQL=\1&amp;amp;OPT1=2&lt;/url&gt;" dest="3">
+ <expression/>
+ </RegExp>
+ </CreateAlbumSearchUrl>
+ <GetAlbumSearchResults dest="8">
+ <RegExp input="$$5" output="&lt;results&gt;\1&lt;/results&gt;" dest="8">
+ <RegExp input="$$1" output="&lt;entity&gt;&lt;title&gt;\1&lt;/title&gt;&lt;/entity&gt;" dest="5">
+ <expression repeat="yes" noclean="1">&lt;TITLE&gt;allmusic[ (]+ ([^&gt;]*) &gt; Overview</expression>
+ </RegExp>
+ <RegExp input="$$1" output="&lt;entity&gt;&lt;year&gt;\1&lt;/year&gt;&lt;artist&gt;\2&lt;/artist&gt;&lt;title&gt;\4&lt;/title&gt;&lt;url cache=&quot;am-\2-\4-album.html&quot;&gt;http://www.allmusic.com/cg/amg.dll?p=amg&amp;amp;SQL=\3&lt;/url&gt;&lt;/entity&gt;" dest="5+">
+ <expression repeat="yes" noclean="1,2,3">&gt;([0-9]+)&lt;/.*?&gt;([a-zA-Z0-9].*?)&lt;.*?sql=([0-9:a-z]*)&quot;&gt;(.*?)&lt;.</expression>
+ </RegExp>
+ <expression noclean="1"/>
+ </RegExp>
+ </GetAlbumSearchResults>
+ <GetAlbumDetails dest="3">
+ <RegExp input="$$5" output="&lt;details&gt;\1&lt;/details&gt;" dest="3">
+ <RegExp input="$$1" output="&lt;url cache=&quot;am-$$2-album.html&quot; function=&quot;ParseAMGAlbum&quot;&gt;http://www.allmusic.com/cg/amg.dll?p=amg&amp;amp;sql=\1&lt;/url&gt;" dest="5+">
+ <expression noclean="1">sql=([^&quot;]*)&quot;&gt;Overview</expression>
+ </RegExp>
+ <RegExp input="$$1" output="&lt;url cache=&quot;am-$$2-album.html&quot; function=&quot;GetAMGReview&quot;&gt;http://www.allmusic.com/cg/amg.dll?p=amg&amp;amp;sql=\1&lt;/url&gt;" dest="5+">
+ <expression noclean="1">sql=([^&quot;]*)&quot;&gt;Review</expression>
+ </RegExp>
+ <RegExp input="$$1" conditional="lastfmalbumthumbs" output="&lt;url function=&quot;GetLastFMAlbumThumbs&quot;&gt;http://ws.audioscrobbler.com/2.0/?method=album.getinfo&amp;artist=\2&amp;album=\1&amp;api_key=71e468a84c1f40d4991ddccc46e40f1b&lt;/url&gt;" dest="5+">
+ <expression trim="1,2" encode="1,2">&lt;span class=&quot;title&quot;&gt;[ ]*([^&lt;]*)&lt;/span&gt;.*&lt;a href=&quot;[^&quot;]+&quot; class=&quot;subtitle&quot;&gt;[ ]*([^&lt;]*)&lt;/a&gt;</expression>
+ </RegExp>
+ <RegExp input="$$1" conditional="discogsalbumthumbs" output="&lt;url function=&quot;GetDiscogsAlbumThumbs&quot; gzip=&quot;yes&quot;&gt;http://www.discogs.com/search?type=all&amp;q=\1%20\2&amp;f=xml&amp;api_key=173f75844f&lt;/url&gt;" dest="5+">
+ <expression trim="1,2" encode="1,2">&lt;span class=&quot;title&quot;&gt;[ ]*([^&lt;]*)&lt;/span&gt;.*&lt;a href=&quot;[^&quot;]+&quot; class=&quot;subtitle&quot;&gt;[ ]*([^&lt;]*)&lt;/a&gt;</expression>
+ </RegExp>
+ <expression noclean="1"/>
+ </RegExp>
+ </GetAlbumDetails>
+ <CreateArtistSearchUrl dest="3">
+ <RegExp input="$$1" output="&lt;url post=&quot;yes&quot;&gt;http://www.allmusic.com/cg/amg.dll?P=amg&amp;amp;SQL=\1&amp;amp;OPT1=1&lt;/url&gt;" dest="3">
+ <expression/>
+ </RegExp>
+ </CreateArtistSearchUrl>
+ <GetArtistSearchResults dest="8">
+ <RegExp input="$$5" output="&lt;results&gt;\1&lt;/results&gt;" dest="8">
+ <RegExp input="$$1" output="&lt;entity&gt;&lt;title&gt;\1&lt;/title&gt;&lt;/entity&gt;" dest="5">
+ <expression repeat="yes" noclean="1">&lt;TITLE&gt;allmusic[ (]+ ([^&gt;]*) &gt; Overview</expression>
+ </RegExp>
+ <RegExp input="$$1" output="&lt;entity&gt;&lt;title&gt;\2&lt;/title&gt;&lt;genre&gt;\3&lt;/genre&gt;&lt;year&gt;\5&lt;/year&gt;&lt;url&gt;http://www.allmusic.com/cg/amg.dll?p=amg&amp;amp;SQL=\1&lt;/url&gt;&lt;/entity&gt;" dest="5+">
+ <expression repeat="yes" noclean="1,2">style=&quot;[^=]*&lt;a href=&quot;[^&quot;]*sql=([^&quot;]*)&quot;&gt;([^&lt;]*)&lt;/a&gt;[^-]*[^&gt;]*&gt;([^&lt;]*)&lt;/TD&gt;[^&gt;]*&gt;(&amp;nbsp;)?([^&lt;]*)&lt;/td&gt;</expression>
+ </RegExp>
+ <expression noclean="1"/>
+ </RegExp>
+ </GetArtistSearchResults>
+ <GetArtistDetails dest="3">
+ <RegExp input="$$5" output="&lt;details&gt;\1&lt;/details&gt;" dest="3">
+ <RegExp input="$$1" output="&lt;url cache=&quot;am-$$2-artist.html&quot; function=&quot;ParseAMGArtist&quot;&gt;http://www.allmusic.com/cg/amg.dll?p=amg&amp;amp;sql=\1&lt;/url&gt;" dest="5">
+ <expression noclean="1">sql=([^&quot;]*)&quot;&gt;Biography</expression>
+ </RegExp>
+ <RegExp input="$$2" conditional="htbthumbs" output="&lt;url cache=&quot;htb-$$2.html&quot; function=&quot;GetHTBThumbs&quot; post=&quot;yes&quot;&gt;http://www.htbackdrops.com/search.php?search_terms=all&amp;amp;search_keywords=\1&lt;/url&gt;" dest="5+">
+ <expression/>
+ </RegExp>
+ <RegExp input="$$2" conditional="lastfmartistthumbs" output="&lt;url function=&quot;GetLastFMArtistThumbs&quot;&gt;http://ws.audioscrobbler.com/2.0/?method=artist.getimages&amp;amp;artist=\1&amp;amp;api_key=71e468a84c1f40d4991ddccc46e40f1b&lt;/url&gt;" dest="5+">
+ <expression/>
+ </RegExp>
+ <RegExp input="$$2" conditional="discogsartistthumbs" output="&lt;url function=&quot;GetDiscogsArtistThumbs&quot; gzip=&quot;yes&quot;&gt;http://www.discogs.com/search?type=artists&amp;q=\1&amp;f=xml&amp;api_key=173f75844f&lt;/url&gt;" dest="5+">
+ <expression/>
+ </RegExp>
+ <RegExp input="$$2" conditional="htbfanart" output="&lt;url cache=&quot;htb-$$2.html&quot; function=&quot;GetHTBFanart&quot; post=&quot;yes&quot;&gt;http://www.htbackdrops.com/search.php?search_terms=all&amp;amp;search_keywords=\1&lt;/url&gt;" dest="5+">
+ <expression/>
+ </RegExp>
+ <RegExp input="$$1" output="&lt;url cache=&quot;am-$$2-artist.html&quot; function=&quot;GetAMGBiography&quot;&gt;http://www.allmusic.com/cg/amg.dll?p=amg&amp;amp;sql=\1&lt;/url&gt;" dest="5+">
+ <expression noclean="1">sql=([^&quot;]*)&quot;&gt;Biography</expression>
+ </RegExp>
+ <RegExp input="$$1" output="&lt;url cache=&quot;am-$$2-discog.html&quot; function=&quot;GetAMGDiscography&quot;&gt;http://www.allmusic.com/cg/amg.dll?p=amg&amp;amp;sql=\1&lt;/url&gt;" dest="5+">
+ <expression noclean="1">sql=([^&quot;]*)&quot;&gt;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
new file mode 100644
index 0000000000..4189bf7d79
--- /dev/null
+++ b/addons/metadata.allmusic.com/default.tbn
Binary files differ
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>