aboutsummaryrefslogtreecommitdiff
path: root/addons/fm.last.scraper
diff options
context:
space:
mode:
authoralcoheca <alcoheca@svn>2010-03-05 01:09:06 +0000
committeralcoheca <alcoheca@svn>2010-03-05 01:09:06 +0000
commit2ca76f93f7f50c3cde8e6a836907fbbac2843618 (patch)
tree4001bdb6e02b7498981d2bcd312f02366befc130 /addons/fm.last.scraper
parent4445cebfc4ed044e3cdac0ada45ccfa8f8f918ed (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.tbnbin0 -> 2786 bytes
-rw-r--r--addons/fm.last.scraper/description.xml24
-rw-r--r--addons/fm.last.scraper/lastfm.xml119
3 files changed, 143 insertions, 0 deletions
diff --git a/addons/fm.last.scraper/default.tbn b/addons/fm.last.scraper/default.tbn
new file mode 100644
index 0000000000..0c5e1e30a7
--- /dev/null
+++ b/addons/fm.last.scraper/default.tbn
Binary files differ
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="&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 thumbs from HTBackdrops&quot; type=&quot;bool&quot; id=&quot;htbthumbs&quot; default=&quot;true&quot;&gt;&lt;/setting&gt;" 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&amp;album=\2&amp;artist=\1&amp;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&amp;artist=\1&amp;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&amp;album=\1&amp;artist=$$2&amp;api_key=71e468a84c1f40d4991ddccc46e40f1b" 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;artist&gt;\2&lt;/artist&gt;&lt;title&gt;\1&lt;/title&gt;&lt;url&gt;http://ws.audioscrobbler.com/2.0/?method=album.getinfo&amp;amp;album=\4&amp;amp;artist=\3&amp;amp;api_key=71e468a84c1f40d4991ddccc46e40f1b&lt;/url&gt;&lt;/entity&gt;" dest="5+">
+ <expression repeat="yes">&lt;album&gt;.*?&lt;name&gt;([^&lt;]*)&lt;/name&gt;.*?&lt;artist&gt;([^&lt;]*)&lt;/artist&gt;.*?&lt;url&gt;http://www.last.fm/music/([^/]+)/(.*?)&lt;/url&gt;</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;artist&gt;\1&lt;/artist&gt;" dest="5">
+ <expression noclean="1">&lt;artist&gt;(.*?)&lt;/artist&gt;</expression>
+ </RegExp>
+ <RegExp input="$$1" output="&lt;title&gt;\1&lt;/title&gt;" dest="5+">
+ <expression noclean="1">&lt;name&gt;(.*?)&lt;/name&gt;</expression>
+ </RegExp>
+ <RegExp input="$$1" output="&lt;releasedate&gt;\1&lt;/releasedate&gt;" dest="5+">
+ <expression trim="1">&lt;releasedate&gt;:(.*?)&lt;/releasedate&gt;</expression>
+ </RegExp>
+ <RegExp input="$$1" output="&lt;year&gt;\1&lt;/year&gt;" dest="5+">
+ <expression trim="1">&lt;releasedate&gt;[^,]*([0-9]+),&lt;/releasedate&gt;</expression>
+ </RegExp>
+ <RegExp input="$$1" output="&lt;review&gt;\1&lt;/review&gt;" dest="5+">
+ <expression>&lt;content&gt;&lt;!\[CDATA\[(.*)\]\]&gt;&lt;/content&gt;</expression>
+ </RegExp>
+ <RegExp input="$$1" output="&lt;thumb&gt;\2&lt;/thumb&gt;" dest="5+">
+ <expression noclean="1">&lt;image size=&quot;(extra)?large&quot;&gt;([^&lt;]*)&lt;/image&gt;</expression>
+ </RegExp>
+ <RegExp input="$$1" output="&lt;url function=&quot;GetTracks&quot;&gt;http://ws.audioscrobbler.com/2.0/?method=playlist.fetch&amp;amp;playlistURL=lastfm://playlist/album/\1&amp;amp;api_key=71e468a84c1f40d4991ddccc46e40f1b&lt;/url&gt;" dest="5+">
+ <expression noclean="1">&lt;id&gt;(.*?)&lt;/id&gt;</expression>
+ </RegExp>
+ <expression noclean="1"/>
+ </RegExp>
+ </GetAlbumDetails>
+ <GetTracks dest="5">
+ <RegExp input="$$4" output="&lt;details&gt;\1&lt;/details&gt;" dest="5">
+ <RegExp input="$$1" output="&lt;track&gt;&lt;title&gt;\1&lt;/title&gt;&lt;/track&gt;" dest="4+">
+ <expression noclean="1" repeat="yes">&lt;track&gt;.*?&lt;title&gt;(.*?)&lt;/title&gt;</expression>
+ </RegExp>
+ <expression noclean="1"/>
+ </RegExp>
+ </GetTracks>
+ <CreateArtistSearchUrl dest="3">
+ <RegExp input="$$1" output="http://ws.audioscrobbler.com/2.0/?method=artist.search&amp;artist=\1&amp;api_key=71e468a84c1f40d4991ddccc46e40f1b" 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;url&gt;http://ws.audioscrobbler.com/2.0/?method=artist.getinfo&amp;amp;artist=\4&amp;amp;api_key=71e468a84c1f40d4991ddccc46e40f1b&lt;/url&gt;&lt;/entity&gt;" dest="5+">
+ <expression repeat="yes">&lt;artist&gt;.*?&lt;name&gt;([^&lt;]*)&lt;/name&gt;.*?&lt;mbid&gt;([^&lt;]*)&lt;/mbid&gt;.*?&lt;url&gt;www\.last\.fm/music/(\+noredirect/)?([^&lt;]*)&lt;/url&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;name&gt;\1&lt;/name&gt;" dest="5">
+ <expression noclean="1">&lt;name&gt;([^&lt;]*)&lt;/name&gt;</expression>
+ </RegExp>
+ <RegExp input="$$1" output="&lt;biography&gt;\1&lt;/biography&gt;" dest="5+">
+ <expression>&lt;content&gt;&lt;!\[CDATA\[(.*?)\]</expression>
+ </RegExp>
+ <RegExp input="$$1" output="&lt;thumb&gt;\2&lt;/thumb&gt;" dest="5+">
+ <expression noclean="1">&lt;image size=&quot;(extra)?large&quot;&gt;([^&lt;]*)&lt;/image&gt;</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="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 function=&quot;GetGenres&quot;&gt;http://ws.audioscrobbler.com/2.0/?method=artist.gettoptags&amp;amp;artist=\1&amp;amp;api_key=71e468a84c1f40d4991ddccc46e40f1b&lt;/url&gt;" dest="5+">
+ <expression noclean="1">&lt;url&gt;http://www.last.fm/music/(.*?)&lt;/url&gt;</expression>
+ </RegExp>
+ <RegExp input="$$1" output="&lt;url function=&quot;GetLastFMDiscography&quot;&gt;http://ws.audioscrobbler.com/2.0/?method=artist.gettopalbums&amp;amp;artist=\1&amp;amp;api_key=71e468a84c1f40d4991ddccc46e40f1b&lt;/url&gt;" dest="5+">
+ <expression noclean="1">&lt;url&gt;http://www.last.fm/music/(.*?)&lt;/url&gt;</expression>
+ </RegExp>
+ <expression noclean="1"/>
+ </RegExp>
+ </GetArtistDetails>
+ <GetGenres dest="5">
+ <RegExp input="$$4" output="&lt;details&gt;\1&lt;/details&gt;" dest="5">
+ <RegExp input="$$1" output="&lt;genre&gt;\1&lt;/genre&gt;" dest="4">
+ <expression noclean="1">&lt;tag&gt;.*?&lt;name&gt;([^/lt;]*)&lt;/name&gt;</expression>
+ </RegExp>
+ <RegExp input="$$1" output="&lt;style&gt;\1&lt;/style&gt;" dest="4+">
+ <expression repeat="yes" noclean="1">&lt;tag&gt;.*?&lt;name&gt;([^/lt;]*)&lt;/name&gt;</expression>
+ </RegExp>
+ <expression noclean="1"/>
+ </RegExp>
+ </GetGenres>
+</scraper>