diff options
Diffstat (limited to 'system/scrapers/music/allmusic.xml')
-rw-r--r-- | system/scrapers/music/allmusic.xml | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/system/scrapers/music/allmusic.xml b/system/scrapers/music/allmusic.xml new file mode 100644 index 0000000000..9a3a9019f6 --- /dev/null +++ b/system/scrapers/music/allmusic.xml @@ -0,0 +1,84 @@ +<?xml version="1.0" encoding="UTF-8"?> +<scraper framework="1.1" date="2009-09-20" name="Allmusic" content="albums" thumb="allmusic.gif" language="en"> + <include>common/htbackdrops.xml</include> + <include>common/allmusic.xml</include> + <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></expression> + </RegExp> + <RegExp input="$$1" output="<setting label="Grab thumbs from HTBackdrops" type="bool" id="htbthumbs" default="true"></setting>" dest="5+"> + <expression></expression> + </RegExp> + <expression noclean="1"></expression> + </RegExp> + </GetSettings> + <NfoUrl dest="3"> + <RegExp input="$$1" output="\1" dest="3"> + <expression>(http://www.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></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"></expression> + </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> + <expression noclean="1"></expression> + </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></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 cache="am-\2-artist.html">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"></expression> + </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 function="GetHTBThumbs" post="yes">http://www.htbackdrops.com/search.php?search_terms=all&amp;cat_id=5&amp;search_keywords=\1</url>" dest="5+"> + <expression/> + </RegExp> + <RegExp input="$$2" conditional="htbfanart" output="<url function="GetHTBFanart" post="yes">http://www.htbackdrops.com/search.php?search_terms=all&amp;cat_id=1&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"></expression> + </RegExp> + </GetArtistDetails> +</scraper> |