diff options
author | nadasb <nadasb@svn> | 2010-07-02 16:46:54 +0000 |
---|---|---|
committer | nadasb <nadasb@svn> | 2010-07-02 16:46:54 +0000 |
commit | c918099299edbd444f1e38abfe9e8e80e3b80fbd (patch) | |
tree | c866549c5161105285da8aad7f56d02224f51232 | |
parent | 76fa470de7a8629f5f79b2a57db6a1d388c9eac5 (diff) |
sync with git
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@31580 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
-rw-r--r-- | addons/metadata.common.themoviedb.org/addon.xml | 2 | ||||
-rw-r--r-- | addons/metadata.common.themoviedb.org/tmdb.xml | 38 | ||||
-rw-r--r-- | addons/metadata.themoviedb.org/addon.xml | 6 | ||||
-rw-r--r-- | addons/metadata.themoviedb.org/changelog.txt | 3 | ||||
-rw-r--r-- | addons/metadata.themoviedb.org/tmdb.xml | 4 |
5 files changed, 39 insertions, 14 deletions
diff --git a/addons/metadata.common.themoviedb.org/addon.xml b/addons/metadata.common.themoviedb.org/addon.xml index 95fe0d8676..55e683ce33 100644 --- a/addons/metadata.common.themoviedb.org/addon.xml +++ b/addons/metadata.common.themoviedb.org/addon.xml @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <addon id="metadata.common.themoviedb.org" name="The MovieDB common scraper functions" - version="1.0.1" + version="1.0.3" provider-name="Team XBMC"> <requires> <import addon="xbmc.metadata" version="1.0"/> diff --git a/addons/metadata.common.themoviedb.org/tmdb.xml b/addons/metadata.common.themoviedb.org/tmdb.xml index 7e5fd15f6c..43151c4f66 100644 --- a/addons/metadata.common.themoviedb.org/tmdb.xml +++ b/addons/metadata.common.themoviedb.org/tmdb.xml @@ -1,16 +1,27 @@ <scraperfunctions> + <GetTMDBFanartByIdChain dest="4"> + <RegExp input="$$5" output="<details>\1</details>" dest="4"> + <RegExp input="$$1" output="<url function="ParseTMDBFanart" cache="tmdb-images-tt\1.xml">http://api.themoviedb.org/2.1/Movie.getImages/en/xml/57983e31fb435df4df77afb854740ea9/tt\1</url>" dest="5"> + <expression>tt([0-9]+)</expression> + </RegExp> + <RegExp input="$$1" output="<url function="ParseTMDBFanart" cache="tmdb-images-\1.xml">http://api.themoviedb.org/2.1/Movie.getImages/en/xml/57983e31fb435df4df77afb854740ea9/\1</url>" dest="5"> + <expression>^([0-9]+)$</expression> + </RegExp> + <expression noclean="1"/> + </RegExp> + </GetTMDBFanartByIdChain> <GetTMDBFanartById dest="4"> <RegExp input="$$5" output="<details>\1</details>" dest="4"> - <RegExp input="$$1" output="<url function="GetTMDBFanart" cache="tmdb-images-tt\1.xml">http://api.themoviedb.org/2.1/Movie.getImages/en/xml/57983e31fb435df4df77afb854740ea9/tt\1</url>" dest="5"> + <RegExp input="$$1" output="<url function="ParseTMDBFanart" cache="tmdb-images-tt\1.xml">http://api.themoviedb.org/2.1/Movie.getImages/en/xml/57983e31fb435df4df77afb854740ea9/tt\1</url>" dest="5"> <expression>/tt([0-9]+)</expression> </RegExp> - <RegExp input="$$1" output="<url function="GetTMDBFanart" cache="tmdb-images-\1.xml">http://api.themoviedb.org/2.1/Movie.getImages/en/xml/57983e31fb435df4df77afb854740ea9/\1</url>" dest="5"> + <RegExp input="$$1" output="<url function="ParseTMDBFanart" cache="tmdb-images-\1.xml">http://api.themoviedb.org/2.1/Movie.getImages/en/xml/57983e31fb435df4df77afb854740ea9/\1</url>" dest="5"> <expression><id>([0-9]*)</id></expression> </RegExp> <expression noclean="1"/> </RegExp> </GetTMDBFanartById> - <GetTMDBFanart dest="5"> + <ParseTMDBFanart dest="5"> <RegExp input="$$2" output="<details><fanart>\1</fanart></details>" dest="5"> <RegExp input="$$1" output="<thumb>\1</thumb>" dest="3"> <expression noclean="1" repeat="yes"><backdrop[^>]*>(.*?)</backdrop></expression> @@ -23,19 +34,30 @@ </RegExp> <expression noclean="1"/> </RegExp> - </GetTMDBFanart> + </ParseTMDBFanart> + <GetTMDBThumbsByIdChain dest="4"> + <RegExp input="$$5" output="<details>\1</details>" dest="4"> + <RegExp input="$$1" output="<url function="ParseTMDBThumbs" cache="tmdb-images-tt\1.xml">http://api.themoviedb.org/2.1/Movie.getImages/en/xml/57983e31fb435df4df77afb854740ea9/tt\1</url>" dest="5"> + <expression>tt([0-9]+)</expression> + </RegExp> + <RegExp input="$$1" output="<url function="ParseTMDBThumbs" cache="tmdb-images-\1.xml">http://api.themoviedb.org/2.1/Movie.getImages/en/xml/57983e31fb435df4df77afb854740ea9/\1</url>" dest="5"> + <expression>^([0-9]+)$</expression> + </RegExp> + <expression noclean="1"/> + </RegExp> + </GetTMDBThumbsByIdChain> <GetTMDBThumbsById dest="4"> <RegExp input="$$5" output="<details>\1</details>" dest="4"> - <RegExp input="$$1" output="<url function="GetTMDBThumbs" cache="tmdb-images-tt\1.xml">http://api.themoviedb.org/2.1/Movie.getImages/en/xml/57983e31fb435df4df77afb854740ea9/tt\1</url>" dest="5"> + <RegExp input="$$1" output="<url function="ParseTMDBThumbs" cache="tmdb-images-tt\1.xml">http://api.themoviedb.org/2.1/Movie.getImages/en/xml/57983e31fb435df4df77afb854740ea9/tt\1</url>" dest="5"> <expression>/tt([0-9]+)</expression> </RegExp> - <RegExp input="$$1" output="<url function="GetTMDBThumbs" cache="tmdb-images-\1.xml">http://api.themoviedb.org/2.1/Movie.getImages/en/xml/57983e31fb435df4df77afb854740ea9/\1</url>" dest="5"> + <RegExp input="$$1" output="<url function="ParseTMDBThumbs" cache="tmdb-images-\1.xml">http://api.themoviedb.org/2.1/Movie.getImages/en/xml/57983e31fb435df4df77afb854740ea9/\1</url>" dest="5"> <expression><id>([0-9]*)</id></expression> </RegExp> <expression noclean="1"/> </RegExp> </GetTMDBThumbsById> - <GetTMDBThumbs dest="5"> + <ParseTMDBThumbs dest="5"> <RegExp input="$$2" output="<details>\1</details>" dest="5"> <RegExp input="$$1" output="<thumb>\1</thumb>" dest="3"> <expression noclean="1" repeat="yes"><poster[^>]*>(.*?)</poster></expression> @@ -48,5 +70,5 @@ </RegExp> <expression noclean="1"/> </RegExp> - </GetTMDBThumbs> + </ParseTMDBThumbs> </scraperfunctions> diff --git a/addons/metadata.themoviedb.org/addon.xml b/addons/metadata.themoviedb.org/addon.xml index ed6c037409..fb2d0cdd3b 100644 --- a/addons/metadata.themoviedb.org/addon.xml +++ b/addons/metadata.themoviedb.org/addon.xml @@ -1,11 +1,11 @@ <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <addon id="metadata.themoviedb.org" name="The MovieDB" - version="1.0.4" + version="1.0.5" provider-name="Team XBMC"> <requires> <import addon="xbmc.metadata" version="1.0"/> - <import addon="metadata.common.themoviedb.org" version="1.0.1"/> + <import addon="metadata.common.themoviedb.org" version="1.0.3"/> <import addon="metadata.common.hdtrailers.net" version="1.0.1"/> </requires> <extension point="xbmc.metadata.scraper.movies" @@ -13,7 +13,7 @@ library="tmdb.xml"/> <extension point="xbmc.addon.metadata"> <summary lang="en">TMDB Movie Scraper</summary> - <summary lang="hu">TMDB Film scraper</summary> + <summary lang="hu">TMDB Film scraper</summary> <summary lang="nl">TMDB Film Scraper</summary> <summary lang="pt">Scraper de filmes TMDb</summary> <summary lang="zh">TMDB电影刮削器</summary> diff --git a/addons/metadata.themoviedb.org/changelog.txt b/addons/metadata.themoviedb.org/changelog.txt index f5fd93a45c..b29c6b6b09 100644 --- a/addons/metadata.themoviedb.org/changelog.txt +++ b/addons/metadata.themoviedb.org/changelog.txt @@ -1,3 +1,6 @@ +[B]1.0.5[/B] +- switch tmdb scraper to chain tmdb scraper library functions + [B]1.0.4[/B] - replace dtrailer.com with HD-Trailers.net for trailer scraping diff --git a/addons/metadata.themoviedb.org/tmdb.xml b/addons/metadata.themoviedb.org/tmdb.xml index 9e336ed07f..2c24ac4135 100644 --- a/addons/metadata.themoviedb.org/tmdb.xml +++ b/addons/metadata.themoviedb.org/tmdb.xml @@ -82,10 +82,10 @@ <RegExp input="$$1" output="<actor><name>\1</name><role>\2</role><thumb>http://\4-original\5</thumb></actor>" dest="5+"> <expression noclean="1" repeat="yes"><person.*?name="([^"]*)" character="([^"]*)" job="Actor" id="([0-9]+)" thumb="http://(.*?)-thumb([^"]*)"</expression> </RegExp> - <RegExp input="$$1" output="<url cache="tmdb-$$2.xml" function="GetTMDBThumbsById">$$3</url>" dest="5+"> + <RegExp input="$$2" output="<chain function="GetTMDBThumbsByIdChain">$$2</chain>" dest="5+"> <expression/> </RegExp> - <RegExp conditional="fanart" input="$$1" output="<url cache="tmdb-$$2.xml" function="GetTMDBFanartById">$$3</url>" dest="5+"> + <RegExp conditional="fanart" input="$$2" output="<chain function="GetTMDBFanartByIdChain">$$2</chain>" dest="5+"> <expression/> </RegExp> <RegExp input="$INFO[TrailerQ]" output="<chain function="GetHDTrailersnet480p">$$6</chain>" dest="5+"> |