1 <?xml version="1.0" encoding="UTF-8"?>
2 <scraper framework="1.1" date="2012-01-16">
3 <CreateSearchUrl dest="3">
4 <RegExp input="$$1" output="<url>http://api.tmdb.org/3/search/movie?api_key=57983e31fb435df4df77afb854740ea9&amp;query=\1&amp;year=$$4&amp;language=$INFO[language]</url>" dest="3">
5 <RegExp input="$$2" output="\1" dest="4">
6 <expression clear="yes">(.+)</expression>
8 <expression noclean="1" />
12 <RegExp input="$$1" output="<details><url>http://api.tmdb.org/3/movie/\2?api_key=57983e31fb435df4df77afb854740ea9&amp;language=$INFO[language]</url><id>\2</id></details>" dest="3">
13 <expression clear="yes" noclean="1">(themoviedb.org/movie/)([0-9]*)</expression>
15 <RegExp input="$$1" output="<details><url cache="tmdb-$INFO[language]-tt\1.json">http://api.tmdb.org/3/movie/tt\1?api_key=57983e31fb435df4df77afb854740ea9&amp;language=$INFO[language]</url><id>tt\1</id></details>" dest="3">
16 <expression>imdb....?/title/tt([0-9]+)</expression>
18 <RegExp input="$$1" output="<details><url cache="tmdb-$INFO[language]-tt\1.json">http://api.tmdb.org/3/movie/tt\1?api_key=57983e31fb435df4df77afb854740ea9&amp;language=$INFO[language]</url><id>tt\1</id></details>" dest="3">
19 <expression>imdb....?/Title\?t{0,2}([0-9]+)</expression>
22 <GetSearchResults dest="8">
23 <RegExp input="$$3" output="<results>\1</results>" dest="8">
24 <RegExp input="$$1" output="<entity><title>\4</title><id>\1</id><year>\3</year><url cache="tmdb-$INFO[language]-\1.json">http://api.tmdb.org/3/movie/\1?api_key=57983e31fb435df4df77afb854740ea9&amp;language=$INFO[language]</url></entity>" dest="3">
25 <expression repeat="yes">"id":([0-9]*),"original_language":"[^"]*","original_title":"([^"]*)","overview":.*?,"release_date":"([0-9]+)-.*?"title":"([^"]*)</expression>
27 <RegExp input="$$1" output="<entity><title>\2</title><id>\1</id><year>\3</year><url cache="tmdb-$INFO[language]-\1.json">http://api.tmdb.org/3/movie/\1?api_key=57983e31fb435df4df77afb854740ea9&amp;language=$INFO[language]</url></entity>" dest="3+">
28 <expression repeat="yes">"id":([0-9]*),"original_language":"[^"]*","original_title":"([^"]*)","overview":.*?,"release_date":"([0-9]+)-</expression>
30 <RegExp input="$$1" output="<entity><title>\2</title><id>\1</id><url cache="tmdb-$INFO[language]-\1.json">http://api.tmdb.org/3/movie/\1?api_key=57983e31fb435df4df77afb854740ea9&amp;language=$INFO[language]</url></entity>" dest="3+">
31 <expression repeat="yes">"id":([0-9]*),"original_language":"[^"]*","original_title":"([^"]*)","overview":.*?,"release_date":null</expression>
33 <expression noclean="1" />
37 <RegExp input="$$5" output="<details>\1</details>" dest="3">
38 <RegExp input="$$1" output="<id>\1</id>" dest="5">
39 <expression noclean="1">"id":([0-9]*),"imdb</expression>
41 <RegExp input="$$1" output="<id>\1</id>" dest="5+">
42 <expression clear="yes" noclean="1">"id":[0-9]*,"imdb_id":"([^"]*)</expression>
44 <RegExp input="$$1" output="\1" dest="9">
45 <expression fixchars="1">"original_title":"([^"]*)</expression>
47 <RegExp conditional="keeporiginaltitle" input="$$9" output="<title>\1</title>" dest="5+">
50 <RegExp conditional="!keeporiginaltitle" input="$$2" output="<chain function="GetTMDBTitleByIdChain">$$2</chain>" dest="5+">
53 <RegExp input="$$9" output="<originaltitle>\1</originaltitle>" dest="5+">
56 <RegExp input="$$1" output="<year>\1</year>" dest="5+">
57 <expression noclean="1">"release_date":"([0-9]+)-</expression>
59 <RegExp input="$$1" output="\1" dest="10">
60 <expression clear="yes" noclean="1">"runtime":([0-9]+)</expression>
62 <RegExp input="$$10" output="<url function="ParseFallbackTMDBRuntime" cache="tmdb-en-$$2.json">http://api.tmdb.org/3/movie/$$2?api_key=57983e31fb435df4df77afb854740ea9&amp;language=en</url>" dest="5+">
63 <expression>^$</expression>
65 <RegExp input="$$10" output="<runtime>\1</runtime>" dest="5+">
66 <expression>(.+)</expression>
68 <RegExp input="$INFO[RatingS]" output="<chain function="GetIMDBRatingById">$$6</chain>" dest="5+">
69 <RegExp input="$$1" output="\1" dest="6">
70 <expression noclean="1">"id":[0-9]*,"imdb_id":"([^"]*)</expression>
72 <expression>IMDb</expression>
74 <RegExp input="$INFO[RatingS]" output="<chain function="GetTMDBRatingByIdChain">$$2</chain>" dest="5+">
75 <expression>TMDb</expression>
77 <RegExp input="$$2" output="<chain function="GetTMDBStudioByIdChain">$$2</chain>" dest="5+">
80 <RegExp input="$$2" output="<chain function="GetTMDBCountryByIdChain">$$2</chain>" dest="5+">
83 <RegExp input="$$2" output="<chain function="GetTMDBDirectorsByIdChain">$$2</chain>" dest="5+">
86 <RegExp input="$$2" output="<chain function="GetTMDBWitersByIdChain">$$2</chain>" dest="5+">
89 <RegExp input="$$2" output="<chain function="GetTMDBCertificationsByIdChain">$$2</chain>" dest="5+">
92 <RegExp input="$$2" output="<chain function="GetTMDBSetByIdChain">$$2</chain>" dest="5+">
95 <RegExp input="$$2" output="<chain function="GetTMDBPlotByIdChain">$$2</chain>" dest="5+">
98 <RegExp input="$$2" output="<chain function="GetTMDBTaglineByIdChain">$$2</chain>" dest="5+">
101 <RegExp input="$$2" output="<chain function="GetTMDBCastByIdChain">$$2</chain>" dest="5+">
104 <RegExp input="$$2" output="<chain function="GetTMDBGenresByIdChain">$$2</chain>" dest="5+">
107 <RegExp input="$$2" output="<chain function="GetTMDBThumbsByIdChain">$$2</chain>" dest="5+">
110 <RegExp conditional="fanart" input="$$2" output="<chain function="GetTMDBFanartByIdChain">$$2</chain>" dest="5+">
113 <RegExp conditional="trailer" input="$$2" output="<chain function="GetTMDBTrailerByIdChain">$$2</chain>" dest="5+">
116 <expression noclean="1" />
119 <ParseFallbackTMDBRuntime dest="5">
120 <RegExp input="$$2" output="<details>\1</details>" dest="5">
121 <RegExp input="$$1" output="<runtime>\1</runtime>" dest="2">
122 <expression noclean="1">"runtime":([0-9]+)</expression>
124 <expression noclean="1" />
126 </ParseFallbackTMDBRuntime>