diff options
Diffstat (limited to 'addons/metadata.themoviedb.org/tmdb.xml')
-rw-r--r-- | addons/metadata.themoviedb.org/tmdb.xml | 129 |
1 files changed, 63 insertions, 66 deletions
diff --git a/addons/metadata.themoviedb.org/tmdb.xml b/addons/metadata.themoviedb.org/tmdb.xml index 63411b93b5..baba466877 100644 --- a/addons/metadata.themoviedb.org/tmdb.xml +++ b/addons/metadata.themoviedb.org/tmdb.xml @@ -1,139 +1,136 @@ -<?xml version="1.0" encoding="UTF-8"?> +<?xml version="1.0" encoding="UTF-8"?> <scraper framework="1.1" date="2010-10-11"> <CreateSearchUrl dest="3"> - <RegExp input="$$1" output="<url>http://api.themoviedb.org/2.1/Movie.search/$INFO[language]/xml/57983e31fb435df4df77afb854740ea9/\1</url>" dest="3"> + <RegExp input="$$1" output="<url>http://api.themoviedb.org/2.1/Movie.search/$INFO[language]/json/57983e31fb435df4df77afb854740ea9/\1$$4</url>" dest="3"> <RegExp input="$$2" output="+\1" dest="4"> <expression clear="yes">(.+)</expression> </RegExp> - <expression noclean="1"/> + <expression noclean="1" /> </RegExp> </CreateSearchUrl> <NfoUrl dest="3"> - <RegExp input="$$1" output="<url>http://api.themoviedb.org/2.1/Movie.getInfo/$INFO[language]/xml/57983e31fb435df4df77afb854740ea9/\2</url><id>\2</id>" dest="3"> + <RegExp input="$$1" output="<details><url>http://api.themoviedb.org/2.1/Movie.getInfo/$INFO[language]/json/57983e31fb435df4df77afb854740ea9/\2</url><id>\2</id></details>" dest="3"> <expression clear="yes" noclean="1">(themoviedb.org/movie/)([0-9]*)</expression> </RegExp> - <RegExp input="$$1" output="<details><url function="GetTMDBId">http://api.themoviedb.org/2.1/Movie.imdbLookup/$INFO[language]/xml/57983e31fb435df4df77afb854740ea9/tt\2</url></details>" dest="3+"> - <expression>(imdb.com/title/tt)([0-9]*)</expression> + <RegExp input="$$1" output="<details><url function="GetTMDBId">http://api.themoviedb.org/2.1/Movie.imdbLookup/$INFO[language]/json/57983e31fb435df4df77afb854740ea9/tt\1</url></details>" dest="3+"> + <expression>imdb....?/title/tt([0-9]*)</expression> </RegExp> - <RegExp input="$$1" output="<details><url function="GetTMDBId">http://api.themoviedb.org/2.1/Movie.imdbLookup/$INFO[language]/xml/57983e31fb435df4df77afb854740ea9/tt\2</url></details>" dest="3+"> - <expression>(imdb.com/)Title\?([0-9]+)</expression> + <RegExp input="$$1" output="<details><url function="GetTMDBId">http://api.themoviedb.org/2.1/Movie.imdbLookup/$INFO[language]/json/57983e31fb435df4df77afb854740ea9/tt\1</url></details>" dest="3+"> + <expression>imdb....?/Title\?([0-9]*)</expression> </RegExp> </NfoUrl> <GetTMDBId dest="3"> - <RegExp input="$$1" output="<url cache="tmdb-$INFO[language]-\1.xml">http://api.themoviedb.org/2.1/Movie.getInfo/$INFO[language]/xml/57983e31fb435df4df77afb854740ea9/\1</url><id>\1</id>" dest="3+"> - <expression><id>([0-9]*)</id></expression> + <RegExp input="$$1" output="<details><url cache="tmdb-$INFO[language]-\1.json">http://api.themoviedb.org/2.1/Movie.getInfo/$INFO[language]/json/57983e31fb435df4df77afb854740ea9/\1</url><id>\1</id></details>" dest="3+"> + <expression>"movie","id":([0-9]*),</expression> </RegExp> </GetTMDBId> <GetSearchResults dest="8"> <RegExp input="$$3" output="<results>\1</results>" dest="8"> - <RegExp input="$$1" output="<entity><title>\1</title><id>\2</id><year>\3</year><url cache="tmdb-$INFO[language]-\2.xml">http://api.themoviedb.org/2.1/Movie.getInfo/$INFO[language]/xml/57983e31fb435df4df77afb854740ea9/\2</url></entity>" dest="3"> - <expression repeat="yes"><movie>.*?<name>([^<]*)</name>.*?<id>([^<]*)</id>.*?<released>([0-9]+)-.*?</movie></expression> + <RegExp input="$$1" output="<entity><title>\1</title><id>\2</id><year>\3</year><url cache="tmdb-$INFO[language]-\2.json">http://api.themoviedb.org/2.1/Movie.getInfo/$INFO[language]/json/57983e31fb435df4df77afb854740ea9/\2</url></entity>" dest="3"> + <expression repeat="yes">"name":"([^"]*).*?"id":([^,]*).*?"released":"([0-9]*)</expression> </RegExp> - <RegExp input="$$1" output="<entity><title>\1</title><id>\2</id><year>\3</year><url cache="tmdb-$INFO[language]-\2.xml">http://api.themoviedb.org/2.1/Movie.getInfo/$INFO[language]/xml/57983e31fb435df4df77afb854740ea9/\2</url></entity>" dest="3+"> - <expression repeat="yes"><movie>.*?<original_name>([^<]*)</original_name>.*?<id>([^<]*)</id>.*?<released>([0-9]+)-.*?</movie></expression> + <RegExp input="$$1" output="<entity><title>\1</title><id>\2</id><year>\3</year><url cache="tmdb-$INFO[language]-\2.json">http://api.themoviedb.org/2.1/Movie.getInfo/$INFO[language]/json/57983e31fb435df4df77afb854740ea9/\2</url></entity>" dest="3+"> + <expression repeat="yes">"original_name":"([^"]*).*?"id":([^,]*).*?"released":"([0-9]*)</expression> </RegExp> - <RegExp input="$$1" output="<entity><title>\1</title><id>\2</id><year>\3</year><url cache="tmdb-$INFO[language]-\2.xml">http://api.themoviedb.org/2.1/Movie.getInfo/$INFO[language]/xml/57983e31fb435df4df77afb854740ea9/\2</url></entity>" dest="3+"> - <expression repeat="yes"><movie>.*?<alternative_name>([^<]*)</alternative_name>.*?<id>([^<]*)</id>.*?<released>([0-9]+)-.*?</movie></expression> + <RegExp input="$$1" output="<entity><title>\1</title><id>\2</id><year>\3</year><url cache="tmdb-$INFO[language]-\2.json">http://api.themoviedb.org/2.1/Movie.getInfo/$INFO[language]/json/57983e31fb435df4df77afb854740ea9/\2</url></entity>" dest="3+"> + <expression repeat="yes">"alternative_name":"([^"]*).*?"id":([^,]*).*?"released":"([0-9]*)</expression> </RegExp> - <RegExp input="$$1" output="<entity><title>\1</title><id>\2</id><url cache="tmdb-$INFO[language]-\2.xml">http://api.themoviedb.org/2.1/Movie.getInfo/$INFO[language]/xml/57983e31fb435df4df77afb854740ea9/\2</url></entity>" dest="3+"> - <expression repeat="yes"><movie>.*?<name>([^<]*)</name>.*?<id>([^<]*)</id>.*?<released></released>.*?</movie></expression> - </RegExp> - <RegExp input="$$1" output="<entity><title>\1</title><id>\2</id><url cache="tmdb-$INFO[language]-\2.xml">http://api.themoviedb.org/2.1/Movie.getInfo/$INFO[language]/xml/57983e31fb435df4df77afb854740ea9/\2</url></entity>" dest="3+"> - <expression repeat="yes"><movie>.*?<original_name>([^<]*)</original_name>.*?<id>([^<]*)</id>.*?<released></released>.*?</movie></expression> - </RegExp> - <RegExp input="$$1" output="<entity><title>\1</title><id>\2</id><url cache="tmdb-$INFO[language]-\2.xml">http://api.themoviedb.org/2.1/Movie.getInfo/$INFO[language]/xml/57983e31fb435df4df77afb854740ea9/\2</url></entity>" dest="3+"> - <expression repeat="yes"><movie>.*?<alternative_name>([^<]*)</alternative_name>.*?<id>([^<]*)</id>.*?<released></released>.*?</movie></expression> - </RegExp> - <expression noclean="1"/> + <expression noclean="1" /> </RegExp> </GetSearchResults> <GetDetails dest="3"> <RegExp input="$$5" output="<details>\1</details>" dest="3"> <RegExp input="$$1" output="<id>\1</id>" dest="5"> - <expression noclean="1"><id>([^<]*)</id></expression> + <expression noclean="1">"movie","id":([0-9]*),</expression> </RegExp> <RegExp input="$$1" output="<id>\1</id>" dest="5+"> - <expression clear="yes" noclean="1"><imdb_id>([^<]*)</imdb_id></expression> + <expression clear="yes" noclean="1">"movie","id":[0-9]*,"imdb_id":"([^"]*)</expression> + </RegExp> + <RegExp conditional="keeporiginaltitle" input="$$1" output="<title>\1</title>" dest="5+"> + <expression fixchars="1">"original_name":"([^"]*)</expression> </RegExp> <RegExp input="$$1" output="<title>\1</title>" dest="5+"> - <expression noclean="1"><name>([^<]*)</name></expression> + <expression fixchars="1">"name":"([^"]*)</expression> </RegExp> <RegExp input="$$1" output="<originaltitle>\1</originaltitle>" dest="5+"> - <expression noclean="1"><original_name>([^<]*)</original_name></expression> + <expression fixchars="1">"original_name":"([^"]*)</expression> </RegExp> <RegExp input="$$1" output="<year>\1</year>" dest="5+"> - <expression noclean="1"><released>([0-9]+)-</expression> + <expression noclean="1">"released":"([0-9]+)-</expression> </RegExp> <RegExp input="$$1" output="<runtime>\1</runtime>" dest="5+"> - <expression noclean="1"><runtime>([^<]*)</runtime></expression> - </RegExp> - <RegExp conditional="!imdbrating" input="$$1" output="<rating>\1</rating>" dest="5+"> - <expression noclean="1"><rating>([^<]*)</rating></expression> - </RegExp> - <RegExp conditional="!imdbrating" input="$$1" output="<votes>\1</votes>" dest="5+"> - <expression noclean="1"><votes>([^<]*)</votes></expression> - </RegExp> - <RegExp conditional="imdbrating" input="$$1" output="<chain function="GetIMDBRatingById">\1</chain>" dest="5+"> - <expression noclean="1"><imdb_id>([^<]*)</imdb_id></expression> + <expression noclean="1">"runtime":([0-9]+)</expression> </RegExp> <RegExp input="$$1" output="<tagline>\1</tagline>" dest="5+"> - <expression noclean="1"><tagline>([^<]*)</tagline></expression> + <expression fixchars="1">"tagline":"([^"]*)</expression> </RegExp> - <RegExp input="$$1" output="<mpaa>Rated \1</mpaa>" dest="5+"> - <expression><certification>([^<]*)</certification></expression> + <RegExp input="$$1" output="\1" dest="6"> + <expression>"certification":"([^"]*)</expression> </RegExp> - <RegExp input="$$1" output="<genre>\1</genre>" dest="5+"> - <expression noclean="1" repeat="yes"><category type="genre" name="([^"]*)"</expression> + <RegExp input="$$6" output="<mpaa>Rated \1</mpaa>" dest="5+"> + <expression>(.+)</expression> </RegExp> - <RegExp input="$$1" output="<studio>\1</studio>" dest="5+"> - <expression noclean="1" repeat="yes"><studio name="([^"]*)"</expression> + <RegExp input="$$1" output="\1" dest="7"> + <expression clear="yes" noclean="1">"studios":\[([^\]]*)</expression> </RegExp> - <RegExp input="$$1" output="<country>\1</country>" dest="5+"> - <expression noclean="1" repeat="yes"><country name="([^"]*)"</expression> + <RegExp input="$$7" output="<studio>\1</studio>" dest="5+"> + <expression trim="1" fixchars="1">"name":"([^"]*)</expression> </RegExp> - <RegExp input="$$1" output="<plot>\1</plot>" dest="5+"> - <expression noclean="1"><overview>([^<]*)</overview></expression> + <RegExp input="$$1" output="\1" dest="7"> + <expression clear="yes" noclean="1">"countries":\[([^\]]*)</expression> </RegExp> - <RegExp input="$$1" output="<overview>\1</overview>" dest="5+"> - <expression noclean="1"><overview>([^<]*)</overview></expression> + <RegExp input="$$7" output="<country>\1</country>" dest="5+"> + <expression trim="1" fixchars="1">"name":"([^"]*)</expression> </RegExp> <RegExp input="$$1" output="<director>\1</director>" dest="5+"> - <expression noclean="1" repeat="yes"><person.*?name="([^"]*)" character="" job="Director"</expression> + <expression repeat="yes" fixchars="1">"name":"([^"]*)","job":"Director"</expression> </RegExp> <RegExp input="$$1" output="<credits>\1</credits>" dest="5+"> - <expression noclean="1" repeat="yes"><person.*?name="([^"]*)" character="" job="Screenplay"</expression> + <expression repeat="yes" fixchars="1">"name":"([^"]*)","job":"[^"]*","department":"Writing"</expression> + </RegExp> + <RegExp conditional="!imdbrating" input="$$2" output="<chain function="GetTMDBRatingByIdChain">$$2</chain>" dest="5+"> + <expression /> + </RegExp> + <RegExp input="$$2" output="<chain function="GetTMDBPlotByIdChain">$$2</chain>" dest="5+"> + <expression /> </RegExp> - <RegExp input="$$1" output="<actor><name>\1</name><role>\2</role></actor>" dest="5+"> - <expression noclean="1" repeat="yes"><person.*?name="([^"]*)" character="([^"]*)" job="Actor"</expression> + <RegExp input="$$2" output="<chain function="GetTMDBCastByIdChain">$$2</chain>" dest="5+"> + <expression /> </RegExp> - <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 input="$$2" output="<chain function="GetTMDBGenresByIdChain">$$2</chain>" dest="5+"> + <expression /> + </RegExp> + <RegExp conditional="imdbrating" input="$$1" output="<chain function="GetIMDBRatingById">\1</chain>" dest="5+"> + <expression noclean="1">"movie","id":[0-9]*,"imdb_id":"([^"]*)</expression> </RegExp> <RegExp input="$$2" output="<chain function="GetTMDBThumbsByIdChain">$$2</chain>" dest="5+"> - <expression/> + <expression /> </RegExp> <RegExp conditional="fanart" input="$$2" output="<chain function="GetTMDBFanartByIdChain">$$2</chain>" dest="5+"> - <expression/> + <expression /> + </RegExp> + <RegExp conditional="trailer" input="$$2" output="<chain function="GetTMDBTrailerByIdChain">$$2</chain>" dest="5+"> + <expression /> </RegExp> <RegExp input="$INFO[TrailerQ]" output="<chain function="GetHDTrailersnet480p">$$6</chain>" dest="5+"> <RegExp input="$$1" output="\1" dest="6"> - <expression noclean="1"><original_name>([^<]*)</original_name></expression> + <expression noclean="1">"original_name":"([^"]*)</expression> </RegExp> <expression>480p</expression> </RegExp> <RegExp input="$INFO[TrailerQ]" output="<chain function="GetHDTrailersnet720p">$$6</chain>" dest="5+"> <RegExp input="$$1" output="\1" dest="6"> - <expression noclean="1"><original_name>([^<]*)</original_name></expression> + <expression noclean="1">"original_name":"([^"]*)</expression> </RegExp> <expression>720p</expression> </RegExp> <RegExp input="$INFO[TrailerQ]" output="<chain function="GetHDTrailersnet1080p">$$6</chain>" dest="5+"> <RegExp input="$$1" output="\1" dest="6"> - <expression noclean="1"><original_name>([^<]*)</original_name></expression> + <expression noclean="1">"original_name":"([^"]*)</expression> </RegExp> <expression>1080p</expression> </RegExp> - <expression noclean="1"/> + <expression noclean="1" /> </RegExp> </GetDetails> </scraper> |