diff options
author | vdrfan <vdrfan@svn> | 2010-03-23 17:23:11 +0000 |
---|---|---|
committer | vdrfan <vdrfan@svn> | 2010-03-23 17:23:11 +0000 |
commit | 8a05199081c801d7c8ea1947bd536d74d334a7f2 (patch) | |
tree | 5a354fc46d39fe4fdd4fd5a522cc287342e7e818 /system | |
parent | cee8f8c7651d578fc1c15f5abaf5ab2f5575d23e (diff) |
added: freebase scraper packaging
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@28771 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
Diffstat (limited to 'system')
-rw-r--r-- | system/scrapers/music/freebase.png | bin | 9930 -> 0 bytes | |||
-rw-r--r-- | system/scrapers/music/freebase.xml | 141 |
2 files changed, 0 insertions, 141 deletions
diff --git a/system/scrapers/music/freebase.png b/system/scrapers/music/freebase.png Binary files differdeleted file mode 100644 index 7b14e32b7b..0000000000 --- a/system/scrapers/music/freebase.png +++ /dev/null diff --git a/system/scrapers/music/freebase.xml b/system/scrapers/music/freebase.xml deleted file mode 100644 index b6a3b6e766..0000000000 --- a/system/scrapers/music/freebase.xml +++ /dev/null @@ -1,141 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<scraper framework="1.1" date="2009-09-16" name="Freebase" content="albums" thumb="freebase.png" language="en"> - <include>common/htbackdrops.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/> - </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="<url>http://api.freebase.com/api/service/mqlread?query={%22query%22:{%22type%22:%22/music/artist%22,%22name%22:null,%22genre%22:[],%22album%22:[{%22id%22:%22/\2%22,%22/common/topic/article%22:[{%22guid%22:null,%22optional%22:true,%22limit%22:1}],%22/common/topic/image%22:[{%22guid%22:null,%22optional%22:true,%22limit%22:1}],%22label%22:[],%22engineer%22:[],%22producer%22:[],%22release_type%22:null,%22artist%22:null,%22name%22:null,%22release_date%22:null,%22track%22:[{%22name%22:null,%22length%22:null,%22index%22:null,%22sort%22:%22index%22,%22optional%22:true}],%22sort%22:%22release_date%22}]}}</url>" dest="3+"> - <expression>(http://www.freebase.com/view/)(.*)</expression> - </RegExp> - </NfoUrl> - <CreateAlbumSearchUrl dest="3"> - <RegExp input="$$1" output="http://api.freebase.com/api/service/mqlread?query={%22query%22:{%22type%22:%22/music/artist%22,%22name~=%22:%22$$2%22,%22album%22:[{%22guid%22:null,%22artist%22:null,%22name%22:null,%22name~=%22:%22\1%22}]}}" dest="3"> - <expression/> - </RegExp> - </CreateAlbumSearchUrl> - <GetAlbumSearchResults dest="8"> - <RegExp input="$$5" output="<results>\1</results>" dest="8"> - <RegExp input="$$1" output="<entity><artist>\1</artist><title>\3</title><url>http://api.freebase.com/api/service/mqlread?query={%22query%22:{%22type%22:%22/music/artist%22,%22name%22:null,%22genre%22:[],%22album%22:[{%22id%22:%22/guid/\2%22,%22/common/topic/article%22:[{%22guid%22:null,%22optional%22:true,%22limit%22:1}],%22/common/topic/image%22:[{%22guid%22:null,%22optional%22:true,%22limit%22:1}],%22label%22:[],%22engineer%22:[],%22producer%22:[],%22release_type%22:null,%22artist%22:null,%22name%22:null,%22release_date%22:null,%22track%22:[{%22name%22:null,%22length%22:null,%22index%22:null,%22sort%22:%22index%22,%22optional%22:true}],%22sort%22:%22release_date%22}]}}</url></entity>" dest="5+"> - <expression repeat="yes">"artist": "([^"]*)".*?"guid": "#([^"]*)".*?"name": "([^"]*)"</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": "([^"]*)</expression> - </RegExp> - <RegExp input="$$1" output="<title>\1</title>" dest="5+"> - <expression noclean="1">"name": "([^"]*)</expression> - </RegExp> - <RegExp input="$$1" output="\1" dest="6"> - <expression trim="1">"label": (.*?)\]</expression> - </RegExp> - <RegExp input="$$6" output="<label>\1</label>" dest="5+"> - <expression noclean="1" repeat="yes">"([^"]*)"</expression> - </RegExp> - <RegExp input="$$1" output="<type>\1</type>" dest="5+"> - <expression noclean="1">"release_type": "([^"]*)</expression> - </RegExp> - <RegExp input="$$1" output="<releasedate>\1</releasedate>" dest="5+"> - <expression noclean="1">"release_date": "([^"]*)</expression> - </RegExp> - <RegExp input="$$1" output="<year>\1</year>" dest="5+"> - <expression noclean="1">"release_date": "([0-9]+)</expression> - </RegExp> - <RegExp input="$$1" output="\1" dest="6+"> - <expression trim="1">"genre": (.*?)\]</expression> - </RegExp> - <RegExp input="$$6" output="<genre>\1</genre>" dest="5+"> - <expression noclean="1" repeat="yes">"([^"]*)"</expression> - </RegExp> - <RegExp input="$$1" output="<track><position>\1</position><title>\3</title><duration>\2</duration></track>" dest="5+"> - <expression repeat="yes">"index": ([0-9]+).*?"length": ([0-9]+).*?"name": "([^"]*)"</expression> - </RegExp> - <RegExp input="$$1" output="<thumb>http://www.freebase.com/api/trans/raw/guid/\1</thumb>" dest="5+"> - <expression noclean="1">image":.*?"guid": "#([^"]*)"</expression> - </RegExp> - <RegExp input="$$1" output="<url function="GetAlbumReview">http://www.freebase.com/api/trans/raw/guid/\1</url>" dest="5+"> - <expression noclean="1">article":.*?"guid": "#([^"]*)"</expression> - </RegExp> - <expression noclean="1"/> - </RegExp> - </GetAlbumDetails> - <GetAlbumReview dest="5"> - <RegExp input="$$2" output="<details>\1</details>" dest="5"> - <RegExp input="$$1" output="<review>\1</review>" dest="2"> - <expression noclean="1"><p>([^<]*)</expression> - </RegExp> - <expression noclean="1"/> - </RegExp> - </GetAlbumReview> - <CreateArtistSearchUrl dest="3"> - <RegExp input="$$1" output="http://www.freebase.com/api/service/search?query=\1&type=/music/artist&indent=1" dest="3"> - <expression/> - </RegExp> - </CreateArtistSearchUrl> - <GetArtistSearchResults dest="8"> - <RegExp input="$$5" output="<results>\1</results>" dest="8"> - <RegExp input="$$1" output="<entity><title>\2</title><url>http://api.freebase.com/api/service/mqlread?query={%22query%22:{%22type%22:%22/music/artist%22,%22id%22:%22/guid/\1%22,%22/common/topic/article%22:[{%22guid%22:null,%22optional%22:true,%22limit%22:1}],%22/common/topic/image%22:[{%22guid%22:null,%22optional%22:true,%22limit%22:1}],%22name%22:null,%22genre%22:[],%22album%22:[],%22active_start%22:null,%22active_end%22:null,%22instruments_played%22:[]}}</url></entity>" dest="5+"> - <expression repeat="yes">"guid": "#([^"]*)".*?"name": "([^"]*)"</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": "([^"]*)</expression> - </RegExp> - <RegExp input="$$1" output="<formed>\1</formed>" dest="5+"> - <expression noclean="1">"active_start": "([^"]*)</expression> - </RegExp> - <RegExp input="$$1" output="<disbanded>\1</disbanded>" dest="5+"> - <expression noclean="1">"active_end": "([^"]*)</expression> - </RegExp> - <RegExp input="$$1" output="\1" dest="6"> - <expression trim="1">"genre": (.*?)\]</expression> - </RegExp> - <RegExp input="$$6" output="<genre>\1</genre>" dest="5+"> - <expression repeat="yes">"([^"]*)"</expression> - </RegExp> - <RegExp input="$$1" output="\1" dest="6"> - <expression trim="1">"album": (.*?)\]</expression> - </RegExp> - <RegExp input="$$6" output="<album><title>\1</title></album>" dest="5+"> - <expression noclean="1" repeat="yes">"([^"]*)"</expression> - </RegExp> - <RegExp input="$$1" output="<thumb>http://www.freebase.com/api/trans/raw/guid/\1</thumb>" dest="5+"> - <expression noclean="1">image":.*?"guid": "#([^"]*)"</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="GetBiography">http://www.freebase.com/api/trans/raw/guid/\1</url>" dest="5+"> - <expression noclean="1">article":.*?"guid": "#([^"]*)"</expression> - </RegExp> - <expression noclean="1"/> - </RegExp> - </GetArtistDetails> - <GetBiography dest="5"> - <RegExp input="$$2" output="<details>\1</details>" dest="5"> - <RegExp input="$$1" output="<biography>\1</biography>" dest="2"> - <expression noclean="1"><p>([^<]*)</expression> - </RegExp> - <expression noclean="1"/> - </RegExp> - </GetBiography> -</scraper> |