aboutsummaryrefslogtreecommitdiff
path: root/addons/com.getlib.scraper
diff options
context:
space:
mode:
authortaxigps <taxigps@svn>2010-03-18 16:20:18 +0000
committertaxigps <taxigps@svn>2010-03-18 16:20:18 +0000
commit883557990cda4415dbce6076795413180d1a9d58 (patch)
tree8e649a2ad4d0416125e3efaa30b1a6ef348332a9 /addons/com.getlib.scraper
parent055f806011cccedf33206210e0bfd28237b5fe87 (diff)
changed: move chinese scrapers to new addons location
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@28659 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
Diffstat (limited to 'addons/com.getlib.scraper')
-rw-r--r--addons/com.getlib.scraper/default.tbnbin0 -> 4578 bytes
-rw-r--r--addons/com.getlib.scraper/description.xml24
-rw-r--r--addons/com.getlib.scraper/getlib.xml122
3 files changed, 146 insertions, 0 deletions
diff --git a/addons/com.getlib.scraper/default.tbn b/addons/com.getlib.scraper/default.tbn
new file mode 100644
index 0000000000..9bdc2d2122
--- /dev/null
+++ b/addons/com.getlib.scraper/default.tbn
Binary files differ
diff --git a/addons/com.getlib.scraper/description.xml b/addons/com.getlib.scraper/description.xml
new file mode 100644
index 0000000000..935bb630ba
--- /dev/null
+++ b/addons/com.getlib.scraper/description.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<addoninfo>
+ <id>com.getlib.scraper</id>
+ <type>scraper</type>
+ <title>Getlib</title>
+ <library>getlib.xml</library>
+ <version>1.0.0</version>
+ <platforms>
+ <platform>all</platform>
+ </platforms>
+ <minversion>
+ <xbmc>20000</xbmc>
+ </minversion>
+ <summary>Getlib Movie Scraper</summary>
+ <description>Download Movie information from www.getlib.com</description>
+ <author>TAXIGPS</author>
+ <dependencies>
+ <dependency minversion="1.0.0" maxversion="">org.themoviedb.scraper.common</dependency>
+ <dependency minversion="1.0.0" maxversion="">com.movieposterdb.scraper.common</dependency>
+ </dependencies>
+ <supportedcontent>
+ <content>movies</content>
+ </supportedcontent>
+</addoninfo>
diff --git a/addons/com.getlib.scraper/getlib.xml b/addons/com.getlib.scraper/getlib.xml
new file mode 100644
index 0000000000..4dfcd699c9
--- /dev/null
+++ b/addons/com.getlib.scraper/getlib.xml
@@ -0,0 +1,122 @@
+<?xml version="1.0" encoding="gb2312"?>
+<scraper framework="1.1" date="2009-12-14" name="getlib" content="movies" thumb="getlib.gif" language="zh">
+ <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 MoviePosterDB&quot; type=&quot;bool&quot; id=&quot;movieposterdb&quot; default=&quot;false&quot;&gt;&lt;/setting&gt;" dest="5">
+ <expression/>
+ </RegExp>
+ <RegExp input="$$1" output="&lt;setting label=&quot;Enable Fanart&quot; type=&quot;bool&quot; id=&quot;fanart&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="&lt;url&gt;http://www.getlib.com/title/tt\1&lt;/url&gt;&lt;id&gt;tt\1&lt;/id&gt;" dest="3">
+ <expression clear="yes" noclean="1">getlib.com/title/tt([0-9]*)</expression>
+ </RegExp>
+ <RegExp input="$$1" output="&lt;url&gt;http://www.getlib.com/title/tt\1&lt;/url&gt;&lt;id&gt;tt\1&lt;/id&gt;" dest="3+">
+ <expression clear="yes" noclean="1">imdb.com/Title\?([0-9]*)</expression>
+ </RegExp>
+ <RegExp input="$$1" output="&lt;url&gt;http://www.getlib.com/title/tt\1&lt;/url&gt;&lt;id&gt;tt\1&lt;/id&gt;" dest="3+">
+ <expression clear="yes" noclean="1">imdb.com/title/tt([0-9]*)</expression>
+ </RegExp>
+ </NfoUrl>
+ <CreateSearchUrl dest="3" SearchStringEncoding="gb2312">
+ <RegExp input="$$1" output="&lt;url&gt;http://www.getlib.com/?keyword=\1&amp;amp;a=search&amp;amp;Type=movie&lt;/url&gt;" dest="3">
+ <expression noclean="1"/>
+ </RegExp>
+ </CreateSearchUrl>
+ <GetSearchResults dest="8">
+ <RegExp input="$$5" output="&lt;?xml version=&quot;1.0&quot; encoding=&quot;gb2312&quot; standalone=&quot;yes&quot;?&gt;&lt;results&gt;\1&lt;/results&gt;" dest="8">
+ <RegExp input="$$1" output="&lt;entity&gt;&lt;title&gt;\1 (\2)&lt;/title&gt;&lt;url&gt;http://www.getlib.com/title/\3&lt;/url&gt;&lt;id&gt;\3&lt;/id&gt;&lt;/entity&gt;" dest="5">
+ <expression clear="yes" noclean="1">&lt;h1&gt;(.*?)\(&lt;a href=.*?&gt;([0-9]*)&lt;/a&gt;.*?&lt;a href=&quot;http://www.getlib.com/title/(tt[0-9]+)&quot;&gt;</expression>
+ </RegExp>
+ <RegExp input="$$1" output="&lt;entity&gt;&lt;title&gt;\2 (\3)&lt;/title&gt;&lt;url&gt;http://www.getlib.com/title/\1&lt;/url&gt;&lt;id&gt;\1&lt;/id&gt;&lt;/entity&gt;" dest="5+">
+ <expression repeat="yes">&lt;a href=&quot;title/(tt[0-9]+)&quot; target=&quot;_blank&quot;&gt;(.*?)&lt;/a&gt; \(([0-9]+)\)</expression>
+ </RegExp>
+ <expression clear="yes" noclean="1"/>
+ </RegExp>
+ </GetSearchResults>
+ <GetDetails dest="3">
+ <RegExp input="$$5" output="&lt;details&gt;\1&lt;/details&gt;" dest="3">
+ <RegExp input="$$2" output="&lt;id&gt;\1&lt;/id&gt;" dest="5">
+ <expression/>
+ </RegExp>
+ <RegExp input="$$1" output="&lt;title&gt;\1&lt;/title&gt;" dest="5+">
+ <expression trim="1" noclean="1">&lt;h1&gt;(.*?)(/| |\()</expression>
+ </RegExp>
+ <RegExp input="$$1" output="&lt;year&gt;\1&lt;/year&gt;" dest="5+">
+ <expression>&lt;h1&gt;.*?href=&quot;http://www.getlib.com/Sections/Years/([0-9]+)&quot;</expression>
+ </RegExp>
+ <RegExp input="$$1" output="&lt;mpaa&gt;\1&lt;/mpaa&gt;" dest="5+">
+ <expression>&lt;h3&gt;MPAA£º&lt;/h3&gt;.*?class=&quot;moinfo&quot;&gt;(.*?)&lt;/div&gt;</expression>
+ </RegExp>
+ <RegExp input="$$1" output="&lt;certification&gt;\1&lt;/certification&gt;" dest="5+">
+ <expression repeat="yes">&lt;a href=http://www.getlib.com/Sections/Certification/[^&gt;]*&gt;([^&lt;]*)&lt;/a&gt;</expression>
+ </RegExp>
+ <RegExp input="$$1" output="&lt;runtime&gt;\1&lt;/runtime&gt;" dest="5+">
+ <expression>id=&quot;mtime&quot;&gt;([^&lt;]*)&lt;/div&gt;</expression>
+ </RegExp>
+ <RegExp input="$$1" output="&lt;rating&gt;\1&lt;/rating&gt;&lt;votes&gt;\2&lt;/votes&gt;" dest="5+">
+ <expression>id=&quot;mimdbrate&quot;&gt;.*?&lt;b&gt;(.*?)/10&lt;/b&gt;\(&amp;nbsp;([0-9]*)Ʊ</expression>
+ </RegExp>
+ <RegExp input="$$1" output="&lt;genre&gt;\1&lt;/genre&gt;" dest="5+">
+ <expression repeat="yes">&lt;a href=http://www.getlib.com/Sections/Genres/[^&gt;]*&gt;([^&lt;]*)&lt;/a&gt;</expression>
+ </RegExp>
+ <RegExp input="$$7" output="&lt;outline&gt;\1&lt;/outline&gt;&lt;plot&gt;\1&lt;/plot&gt;" dest="5+">
+ <RegExp input="$$1" output="\1\n" dest="6">
+ <expression>id=&quot;content&quot;&gt;(.*?)&lt;/div&gt;</expression>
+ </RegExp>
+ <RegExp input="$$6" output="\1" dest="7">
+ <expression repeat="yes">(.*?)[\n\r\t]</expression>
+ </RegExp>
+ <expression noclean="1"/>
+ </RegExp>
+ <RegExp input="$$2" output="&lt;url cache=&quot;$$2-fullcredits.html&quot; function=&quot;GetFullcredits&quot;&gt;$$3/fullcredits&lt;/url&gt;" dest="5+">
+ <expression/>
+ </RegExp>
+ <RegExp conditional="movieposterdb" input="$$1" output="&lt;url function=&quot;GetMoviePosterDBLink&quot;&gt;http://www.movieposterdb.com/browse/search?type=movies&amp;amp;query=\1&lt;/url&gt;" dest="5+">
+ <expression>/title/tt([0-9]*)/ratings</expression>
+ </RegExp>
+ <RegExp input="$$1" output="&lt;url cache=&quot;\1-posters.html&quot; function=&quot;GetPoster&quot;&gt;http://www.getlib.com/poster/\1&lt;/url&gt;" dest="5+">
+ <expression repeat="yes">&lt;a href=&quot;http://www.getlib.com/poster/([0-9]+)&quot;</expression>
+ </RegExp>
+ <RegExp conditional="fanart" input="$$2" output="&lt;url function=&quot;GetTMDBFanartById&quot;&gt;$$3&lt;/url&gt;" dest="5+">
+ <expression/>
+ </RegExp>
+ <expression noclean="1"/>
+ </RegExp>
+ </GetDetails>
+ <GetFullcredits clearbuffers="no" dest="5">
+ <RegExp input="$$2" output="&lt;details&gt;\1&lt;/details&gt;" dest="5">
+ <RegExp input="$$1" output="\1" dest="6">
+ <expression clear="yes" noclean="1">&lt;h3 align=&quot;center&quot;&gt;ÑÝÔ±&lt;/h3&gt;(.*?)&lt;h3</expression>
+ </RegExp>
+ <RegExp input="$$6" output="&lt;actor&gt;&lt;name&gt;\1&lt;/name&gt;&lt;role&gt;\2&lt;/role&gt;&lt;/actor&gt;" dest="2">
+ <expression repeat="yes">&lt;div class=&quot;castname&quot;&gt;(.*?)&lt;/div&gt;.*?&lt;div class=&quot;castaction&quot;&gt;(.*?)&lt;/div&gt;</expression>
+ </RegExp>
+ <RegExp input="$$1" output="\1" dest="7">
+ <expression clear="yes" noclean="1">align=&quot;center&quot;&gt;µ¼ÑÝ&lt;/h3&gt;(.*?)&lt;h3</expression>
+ </RegExp>
+ <RegExp input="$$7" output="&lt;director&gt;\1&lt;/director&gt;" dest="2+">
+ <expression repeat="yes">&lt;div class=&quot;castname&quot;&gt;(.*?)&lt;/div&gt;</expression>
+ </RegExp>
+ <RegExp input="$$1" output="\1" dest="8">
+ <expression clear="yes" noclean="1">align=&quot;center&quot;&gt;±à¾ç&lt;/h3&gt;(.*?)&lt;h3 </expression>
+ </RegExp>
+ <RegExp input="$$8" output="&lt;credits&gt;\1&lt;/credits&gt;" dest="2+">
+ <expression repeat="yes">&lt;div class=&quot;castname&quot;&gt;(.*?)&lt;/div&gt;</expression>
+ </RegExp>
+ <expression noclean="1"/>
+ </RegExp>
+ </GetFullcredits>
+ <GetPoster dest="5">
+ <RegExp input="$$6" output="&lt;details&gt;\1&lt;/details&gt;" dest="5">
+ <RegExp input="$$1" output="&lt;thumb&gt;\1&lt;/thumb&gt;" dest="6">
+ <expression>&lt;img src=&quot;(http://www.getlib.com/dataz/posters_big/.*?)&quot;</expression>
+ </RegExp>
+ <expression noclean="1"/>
+ </RegExp>
+ </GetPoster>
+</scraper>