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 /addons/metadata.common.themoviedb.org | |
parent | 76fa470de7a8629f5f79b2a57db6a1d388c9eac5 (diff) |
sync with git
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@31580 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
Diffstat (limited to 'addons/metadata.common.themoviedb.org')
-rw-r--r-- | addons/metadata.common.themoviedb.org/addon.xml | 2 | ||||
-rw-r--r-- | addons/metadata.common.themoviedb.org/tmdb.xml | 38 |
2 files changed, 31 insertions, 9 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> |