diff options
author | alcoheca <alcoheca@svn> | 2010-03-05 01:09:06 +0000 |
---|---|---|
committer | alcoheca <alcoheca@svn> | 2010-03-05 01:09:06 +0000 |
commit | 2ca76f93f7f50c3cde8e6a836907fbbac2843618 (patch) | |
tree | 4001bdb6e02b7498981d2bcd312f02366befc130 /addons/fm.last.scraper | |
parent | 4445cebfc4ed044e3cdac0ada45ccfa8f8f918ed (diff) |
changed: all addons should be store below either special://home/addons or
special://xbmc/addons. folder name should be derived from the addon's
id, but is not validated
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@28382 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
Diffstat (limited to 'addons/fm.last.scraper')
-rw-r--r-- | addons/fm.last.scraper/default.tbn | bin | 0 -> 2786 bytes | |||
-rw-r--r-- | addons/fm.last.scraper/description.xml | 24 | ||||
-rw-r--r-- | addons/fm.last.scraper/lastfm.xml | 119 |
3 files changed, 143 insertions, 0 deletions
diff --git a/addons/fm.last.scraper/default.tbn b/addons/fm.last.scraper/default.tbn Binary files differnew file mode 100644 index 0000000000..0c5e1e30a7 --- /dev/null +++ b/addons/fm.last.scraper/default.tbn diff --git a/addons/fm.last.scraper/description.xml b/addons/fm.last.scraper/description.xml new file mode 100644 index 0000000000..cfefe3ba49 --- /dev/null +++ b/addons/fm.last.scraper/description.xml @@ -0,0 +1,24 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> +<addoninfo> + <id>fm.last.scraper</id> + <type>scraper</type> + <title>LastFM</title> + <library>lastfm.xml</library> + <version>1.0.0</version> + <platforms> + <platform>all</platform> + </platforms> + <minversion> + <xbmc>20000</xbmc> + </minversion> + <summary>LastFM Music Scraper</summary> + <description>Download Music information</description> + <author>TEAMXBMC</author> + <dependencies> + <dependency minversion="1.0.0" maxversion="">fm.last.scraper.common</dependency> + </dependencies> + <supportedcontent> + <content>albums</content> + <content>artists</content> + </supportedcontent> +</addoninfo> diff --git a/addons/fm.last.scraper/lastfm.xml b/addons/fm.last.scraper/lastfm.xml new file mode 100644 index 0000000000..d7db317ca7 --- /dev/null +++ b/addons/fm.last.scraper/lastfm.xml @@ -0,0 +1,119 @@ +<?xml version="1.0" encoding="UTF-8"?> +<scraper framework="1.1" date="2009-09-26" name="Last.FM" content="albums" thumb="lastfm.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 thumbs from HTBackdrops" type="bool" id="htbthumbs" default="true"></setting>" dest="5+"> + <expression/> + </RegExp> + <expression noclean="1"/> + </RegExp> + </GetSettings> + <NfoUrl dest="3"> + <RegExp input="$$1" output="http://ws.audioscrobbler.com/2.0/?method=album.getinfo&album=\2&artist=\1&api_key=71e468a84c1f40d4991ddccc46e40f1b" dest="3"> + <expression>(http://www.last.fm/music/([^/]*)/(.*))</expression> + </RegExp> + <RegExp input="$$1" output="http://ws.audioscrobbler.com/2.0/?method=artist.getinfo&artist=\1&api_key=71e468a84c1f40d4991ddccc46e40f1b" dest="3"> + <expression>(http://www.last.fm/music/([^/]*))$</expression> + </RegExp> + </NfoUrl> + <CreateAlbumSearchUrl dest="3"> + <RegExp input="$$1" output="http://ws.audioscrobbler.com/2.0/?method=album.search&album=\1&artist=$$2&api_key=71e468a84c1f40d4991ddccc46e40f1b" dest="3"> + <expression/> + </RegExp> + </CreateAlbumSearchUrl> + <GetAlbumSearchResults dest="8"> + <RegExp input="$$5" output="<results>\1</results>" dest="8"> + <RegExp input="$$1" output="<entity><artist>\2</artist><title>\1</title><url>http://ws.audioscrobbler.com/2.0/?method=album.getinfo&amp;album=\4&amp;artist=\3&amp;api_key=71e468a84c1f40d4991ddccc46e40f1b</url></entity>" dest="5+"> + <expression repeat="yes"><album>.*?<name>([^<]*)</name>.*?<artist>([^<]*)</artist>.*?<url>http://www.last.fm/music/([^/]+)/(.*?)</url></expression> + </RegExp> + <expression noclean="1"/> + </RegExp> + </GetAlbumSearchResults> + <GetAlbumDetails dest="3"> + <RegExp input="$$5" output="<details>\1</details>" dest="3"> + <RegExp input="$$1" output="<artist>\1</artist>" dest="5"> + <expression noclean="1"><artist>(.*?)</artist></expression> + </RegExp> + <RegExp input="$$1" output="<title>\1</title>" dest="5+"> + <expression noclean="1"><name>(.*?)</name></expression> + </RegExp> + <RegExp input="$$1" output="<releasedate>\1</releasedate>" dest="5+"> + <expression trim="1"><releasedate>:(.*?)</releasedate></expression> + </RegExp> + <RegExp input="$$1" output="<year>\1</year>" dest="5+"> + <expression trim="1"><releasedate>[^,]*([0-9]+),</releasedate></expression> + </RegExp> + <RegExp input="$$1" output="<review>\1</review>" dest="5+"> + <expression><content><!\[CDATA\[(.*)\]\]></content></expression> + </RegExp> + <RegExp input="$$1" output="<thumb>\2</thumb>" dest="5+"> + <expression noclean="1"><image size="(extra)?large">([^<]*)</image></expression> + </RegExp> + <RegExp input="$$1" output="<url function="GetTracks">http://ws.audioscrobbler.com/2.0/?method=playlist.fetch&amp;playlistURL=lastfm://playlist/album/\1&amp;api_key=71e468a84c1f40d4991ddccc46e40f1b</url>" dest="5+"> + <expression noclean="1"><id>(.*?)</id></expression> + </RegExp> + <expression noclean="1"/> + </RegExp> + </GetAlbumDetails> + <GetTracks dest="5"> + <RegExp input="$$4" output="<details>\1</details>" dest="5"> + <RegExp input="$$1" output="<track><title>\1</title></track>" dest="4+"> + <expression noclean="1" repeat="yes"><track>.*?<title>(.*?)</title></expression> + </RegExp> + <expression noclean="1"/> + </RegExp> + </GetTracks> + <CreateArtistSearchUrl dest="3"> + <RegExp input="$$1" output="http://ws.audioscrobbler.com/2.0/?method=artist.search&artist=\1&api_key=71e468a84c1f40d4991ddccc46e40f1b" 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><url>http://ws.audioscrobbler.com/2.0/?method=artist.getinfo&amp;artist=\4&amp;api_key=71e468a84c1f40d4991ddccc46e40f1b</url></entity>" dest="5+"> + <expression repeat="yes"><artist>.*?<name>([^<]*)</name>.*?<mbid>([^<]*)</mbid>.*?<url>www\.last\.fm/music/(\+noredirect/)?([^<]*)</url></expression> + </RegExp> + <expression noclean="1"/> + </RegExp> + </GetArtistSearchResults> + <GetArtistDetails dest="3"> + <RegExp input="$$5" output="<details>\1</details>" dest="3"> + <RegExp input="$$1" output="<name>\1</name>" dest="5"> + <expression noclean="1"><name>([^<]*)</name></expression> + </RegExp> + <RegExp input="$$1" output="<biography>\1</biography>" dest="5+"> + <expression><content><!\[CDATA\[(.*?)\]</expression> + </RegExp> + <RegExp input="$$1" output="<thumb>\2</thumb>" dest="5+"> + <expression noclean="1"><image size="(extra)?large">([^<]*)</image></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="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 function="GetGenres">http://ws.audioscrobbler.com/2.0/?method=artist.gettoptags&amp;artist=\1&amp;api_key=71e468a84c1f40d4991ddccc46e40f1b</url>" dest="5+"> + <expression noclean="1"><url>http://www.last.fm/music/(.*?)</url></expression> + </RegExp> + <RegExp input="$$1" output="<url function="GetLastFMDiscography">http://ws.audioscrobbler.com/2.0/?method=artist.gettopalbums&amp;artist=\1&amp;api_key=71e468a84c1f40d4991ddccc46e40f1b</url>" dest="5+"> + <expression noclean="1"><url>http://www.last.fm/music/(.*?)</url></expression> + </RegExp> + <expression noclean="1"/> + </RegExp> + </GetArtistDetails> + <GetGenres dest="5"> + <RegExp input="$$4" output="<details>\1</details>" dest="5"> + <RegExp input="$$1" output="<genre>\1</genre>" dest="4"> + <expression noclean="1"><tag>.*?<name>([^/lt;]*)</name></expression> + </RegExp> + <RegExp input="$$1" output="<style>\1</style>" dest="4+"> + <expression repeat="yes" noclean="1"><tag>.*?<name>([^/lt;]*)</name></expression> + </RegExp> + <expression noclean="1"/> + </RegExp> + </GetGenres> +</scraper> |