The branch, eden has been updated
via f569df34f83462066afa35e08a3dd5a8d2c28c53 (commit)
from ba3a0e50fcd85f06a24d389d4ac06619cbe7044f (commit)
- Log -----------------------------------------------------------------
http://xbmc.git.sourceforge.net/git/gitweb.cgi?p=xbmc/scrapers;a=commit;h=f569df34f83462066afa35e08a3dd5a8d2c28c53
commit f569df34f83462066afa35e08a3dd5a8d2c28c53
Author: taxigps <[email protected]>
Date: Sun Mar 23 16:49:24 2014 +0800
[metadata.douban.com] updated to version 1.0.7
diff --git a/metadata.douban.com/addon.xml b/metadata.douban.com/addon.xml
index c2bc2c3..c73c3cf 100644
--- a/metadata.douban.com/addon.xml
+++ b/metadata.douban.com/addon.xml
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="metadata.douban.com"
name="douban"
- version="1.0.6"
+ version="1.0.7"
provider-name="Taxigps">
<requires>
<import addon="xbmc.metadata" version="1.0"/>
diff --git a/metadata.douban.com/changelog.txt
b/metadata.douban.com/changelog.txt
index c0f9ce3..049d19b 100644
--- a/metadata.douban.com/changelog.txt
+++ b/metadata.douban.com/changelog.txt
@@ -1,3 +1,9 @@
+[B]1.0.7[/B]
+- changed: use douban API v2 search
+- added: get country
+- added: get writer
+- fixed: can't get posts and fanarts because site change
+
[B]1.0.6[/B]
- fixed: can't get full information by imdb id (nfo)
diff --git a/metadata.douban.com/douban.xml b/metadata.douban.com/douban.xml
index 8e949cc..d33d3ec 100644
--- a/metadata.douban.com/douban.xml
+++ b/metadata.douban.com/douban.xml
@@ -14,14 +14,14 @@
</RegExp>
</GetUrlByIMDBId>
<CreateSearchUrl dest="3">
- <RegExp input="$$1"
output="<url>http://movie.douban.com/j/subject_suggest?q=\1</url>"
dest="3">
+ <RegExp input="$$1"
output="<url>http://api.douban.com/v2/movie/search?q=\1</url>"
dest="3">
<expression noclean="1"/>
</RegExp>
</CreateSearchUrl>
<GetSearchResults dest="8">
<RegExp input="$$3" output="<results
sorted="yes">\1</results>" dest="8">
- <RegExp input="$$1"
output="<entity><title>\1 - \3
(\4)</title><url>http://api.douban.com/v2/movie/subject/\2</url><id>\2</id></entity>"
dest="3+">
- <expression
repeat="yes">"title":"(.+?)","url":"http:\\/\\/movie.douban.com\\/subject\\/([0-9]+)\\/[^"]*","sub_title":"(.*?)","year":"([0-9]+)"</expression>
+ <RegExp input="$$1"
output="<entity><title>\1 - \2
(\3)</title><url>http://api.douban.com/v2/movie/subject/\4</url><id>\4</id></entity>"
dest="3+">
+ <expression
repeat="yes">"title":"([^"]*)","collect_count":\d*,"original_title":"([^"]*)","subtype":"movie","year":"(\d*)","images":\{[^\}]*\},"alt":"[^"]*","id":"(\d*)"</expression>
</RegExp>
<expression noclean="1"/>
</RegExp>
@@ -52,6 +52,12 @@
<RegExp input="$$8"
output="<genre>\1</genre>" dest="5+">
<expression
repeat="yes">"(.+?)"</expression>
</RegExp>
+ <RegExp input="$$1" output="\1" dest="8">
+
<expression>"countries":\[(.+?)\]</expression>
+ </RegExp>
+ <RegExp input="$$8"
output="<country>\1</country>" dest="5+">
+ <expression
repeat="yes">"(.+?)"</expression>
+ </RegExp>
<RegExp input="$$1"
output="<plot>\1</plot>" dest="5+">
<expression>"summary":"(.+?)"</expression>
</RegExp>
@@ -91,6 +97,12 @@
<expression>http://movie.douban.com/trailer/([0-9]+)</expression>
</RegExp>
<RegExp input="$$1" output="\1" dest="8">
+ <expression
noclean="1">ç¼å§</span>:(.*?)</span></expression>
+ </RegExp>
+ <RegExp input="$$8"
output="<credits>\1</credits>" dest="6+">
+ <expression repeat="yes"><a
href=[^>]*>(.*?)</a></expression>
+ </RegExp>
+ <RegExp input="$$1" output="\1" dest="8">
<expression>http://www.imdb.com/title/(tt[0-9]+)</expression>
</RegExp>
<RegExp conditional="movieposterdb" input="$$8"
output="<chain
function="GetMoviePosterDBThumbs">\1</chain>" dest="6+">
@@ -105,7 +117,7 @@
<GetPoster dest="5">
<RegExp input="$$6" output="<details>\1</details>"
dest="5">
<RegExp input="$$1" output="<thumb
preview="\1thumb\2">\1raw\2</thumb>" dest="6">
- <expression repeat="yes" noclean="1,2"><div
class="cover"><a
href="http://movie.douban.com/photos/photo/[0-9]+/"><img
src="(http://[^/]+/view/photo/)thumb(/public/[^\.]+\.jpg)"
/></expression>
+ <expression repeat="yes" noclean="1,2"><div
class="cover">\s*<a
href="http://movie.douban.com/photos/photo/[0-9]+/">\s*<img
src="(http://[^/]+/view/photo/)thumb(/public/[^\.]+\.jpg)"
/></expression>
</RegExp>
<expression noclean="1"/>
</RegExp>
@@ -113,7 +125,7 @@
<GetFanart dest="5">
<RegExp input="$$6"
output="<details><fanart>\1</fanart></details>"
dest="5">
<RegExp input="$$1" output="<thumb
preview="\1thumb\2">\1raw\2</thumb>" dest="6">
- <expression repeat="yes" noclean="1,2"><div
class="cover"><a
href="http://movie.douban.com/photos/photo/[0-9]+/"><img
src="(http://[^/]+/view/photo/)thumb(/public/[^\.]+\.jpg)"
/></expression>
+ <expression repeat="yes" noclean="1,2"><div
class="cover">\s*<a
href="http://movie.douban.com/photos/photo/[0-9]+/">\s*<img
src="(http://[^/]+/view/photo/)thumb(/public/[^\.]+\.jpg)"
/></expression>
</RegExp>
<expression noclean="1"/>
</RegExp>
-----------------------------------------------------------------------
Summary of changes:
metadata.douban.com/addon.xml | 2 +-
metadata.douban.com/changelog.txt | 6 ++++++
metadata.douban.com/douban.xml | 22 +++++++++++++++++-----
3 files changed, 24 insertions(+), 6 deletions(-)
hooks/post-receive
--
Scrapers
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
Xbmc-addons mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xbmc-addons