sync: tmdb with addons repo
[vuplus_xbmc] / addons / metadata.themoviedb.org / tmdb.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <scraper framework="1.1" date="2010-10-11">
3         <CreateSearchUrl dest="3">
4                 <RegExp input="$$1" output="&lt;url&gt;http://api.themoviedb.org/2.1/Movie.search/$INFO[language]/json/57983e31fb435df4df77afb854740ea9/\1$$4&lt;/url&gt;" dest="3">
5                         <RegExp input="$$2" output="+\1" dest="4">
6                                 <expression clear="yes">(.+)</expression>
7                         </RegExp>
8                         <expression noclean="1" />
9                 </RegExp>
10         </CreateSearchUrl>
11         <NfoUrl dest="3">
12                 <RegExp input="$$1" output="&lt;details&gt;&lt;url&gt;http://api.themoviedb.org/2.1/Movie.getInfo/$INFO[language]/json/57983e31fb435df4df77afb854740ea9/\2&lt;/url&gt;&lt;id&gt;\2&lt;/id&gt;&lt;/details&gt;" dest="3">
13                         <expression clear="yes" noclean="1">(themoviedb.org/movie/)([0-9]*)</expression>
14                 </RegExp>
15                 <RegExp input="$$1" output="&lt;details&gt;&lt;url function=&quot;GetTMDBId&quot;&gt;http://api.themoviedb.org/2.1/Movie.imdbLookup/$INFO[language]/json/57983e31fb435df4df77afb854740ea9/tt\1&lt;/url&gt;&lt;/details&gt;" dest="3+">
16                         <expression>imdb....?/title/tt([0-9]*)</expression>
17                 </RegExp>
18                 <RegExp input="$$1" output="&lt;details&gt;&lt;url function=&quot;GetTMDBId&quot;&gt;http://api.themoviedb.org/2.1/Movie.imdbLookup/$INFO[language]/json/57983e31fb435df4df77afb854740ea9/tt\1&lt;/url&gt;&lt;/details&gt;" dest="3+">
19                         <expression>imdb....?/Title\?([0-9]*)</expression>
20                 </RegExp>
21         </NfoUrl>
22         <GetTMDBId dest="3">
23                 <RegExp input="$$1" output="&lt;details&gt;&lt;url cache=&quot;tmdb-$INFO[language]-\1.json&quot;&gt;http://api.themoviedb.org/2.1/Movie.getInfo/$INFO[language]/json/57983e31fb435df4df77afb854740ea9/\1&lt;/url&gt;&lt;id&gt;\1&lt;/id&gt;&lt;/details&gt;" dest="3+">
24                         <expression>&quot;movie&quot;,&quot;id&quot;:([0-9]*),</expression>
25                 </RegExp>
26         </GetTMDBId>
27         <GetSearchResults dest="8">
28                 <RegExp input="$$3" output="&lt;results&gt;\1&lt;/results&gt;" dest="8">
29                         <RegExp input="$$1" output="&lt;entity&gt;&lt;title&gt;\1&lt;/title&gt;&lt;id&gt;\2&lt;/id&gt;&lt;year&gt;\3&lt;/year&gt;&lt;url cache=&quot;tmdb-$INFO[language]-\2.json&quot;&gt;http://api.themoviedb.org/2.1/Movie.getInfo/$INFO[language]/json/57983e31fb435df4df77afb854740ea9/\2&lt;/url&gt;&lt;/entity&gt;" dest="3">
30                                 <expression repeat="yes">&quot;name&quot;:&quot;([^&quot;]*).*?&quot;id&quot;:([^,]*).*?&quot;released&quot;:&quot;([0-9]*)</expression>
31                         </RegExp>
32                         <RegExp input="$$1" output="&lt;entity&gt;&lt;title&gt;\1&lt;/title&gt;&lt;id&gt;\2&lt;/id&gt;&lt;year&gt;\3&lt;/year&gt;&lt;url cache=&quot;tmdb-$INFO[language]-\2.json&quot;&gt;http://api.themoviedb.org/2.1/Movie.getInfo/$INFO[language]/json/57983e31fb435df4df77afb854740ea9/\2&lt;/url&gt;&lt;/entity&gt;" dest="3+">
33                                 <expression repeat="yes">&quot;original_name&quot;:&quot;([^&quot;]*).*?&quot;id&quot;:([^,]*).*?&quot;released&quot;:&quot;([0-9]*)</expression>
34                         </RegExp>
35                         <RegExp input="$$1" output="&lt;entity&gt;&lt;title&gt;\1&lt;/title&gt;&lt;id&gt;\2&lt;/id&gt;&lt;year&gt;\3&lt;/year&gt;&lt;url cache=&quot;tmdb-$INFO[language]-\2.json&quot;&gt;http://api.themoviedb.org/2.1/Movie.getInfo/$INFO[language]/json/57983e31fb435df4df77afb854740ea9/\2&lt;/url&gt;&lt;/entity&gt;" dest="3+">
36                                 <expression repeat="yes">&quot;alternative_name&quot;:&quot;([^&quot;]*).*?&quot;id&quot;:([^,]*).*?&quot;released&quot;:&quot;([0-9]*)</expression>
37                         </RegExp>
38                         <expression noclean="1" />
39                 </RegExp>
40         </GetSearchResults>
41         <GetDetails dest="3">
42                 <RegExp input="$$5" output="&lt;details&gt;\1&lt;/details&gt;" dest="3">
43                         <RegExp input="$$1" output="&lt;id&gt;\1&lt;/id&gt;" dest="5">
44                                 <expression noclean="1">&quot;movie&quot;,&quot;id&quot;:([0-9]*),</expression>
45                         </RegExp>
46                         <RegExp input="$$1" output="&lt;id&gt;\1&lt;/id&gt;" dest="5+">
47                                 <expression clear="yes" noclean="1">&quot;movie&quot;,&quot;id&quot;:[0-9]*,&quot;imdb_id&quot;:&quot;([^&quot;]*)</expression>
48                         </RegExp>
49                         <RegExp conditional="keeporiginaltitle" input="$$1" output="&lt;title&gt;\1&lt;/title&gt;" dest="5+">
50                                 <expression fixchars="1">&quot;original_name&quot;:&quot;([^&quot;]*)</expression>
51                         </RegExp>
52                         <RegExp input="$$1" output="&lt;title&gt;\1&lt;/title&gt;" dest="5+">
53                                 <expression fixchars="1">&quot;name&quot;:&quot;([^&quot;]*)</expression>
54                         </RegExp>
55                         <RegExp input="$$1" output="&lt;originaltitle&gt;\1&lt;/originaltitle&gt;" dest="5+">
56                                 <expression fixchars="1">&quot;original_name&quot;:&quot;([^&quot;]*)</expression>
57                         </RegExp>
58                         <RegExp input="$$1" output="&lt;year&gt;\1&lt;/year&gt;" dest="5+">
59                                 <expression noclean="1">&quot;released&quot;:&quot;([0-9]+)-</expression>
60                         </RegExp>
61                         <RegExp input="$$1" output="&lt;runtime&gt;\1&lt;/runtime&gt;" dest="5+">
62                                 <expression noclean="1">&quot;runtime&quot;:([0-9]+)</expression>
63                         </RegExp>
64                         <RegExp input="$$1" output="&lt;tagline&gt;\1&lt;/tagline&gt;" dest="5+">
65                                 <expression fixchars="1">&quot;tagline&quot;:&quot;([^&quot;]*)</expression>
66                         </RegExp>
67                         <RegExp input="$$1" output="\1" dest="6">
68                                 <expression>&quot;certification&quot;:&quot;([^&quot;]*)</expression>
69                         </RegExp>
70                         <RegExp input="$$6" output="&lt;mpaa&gt;Rated \1&lt;/mpaa&gt;" dest="5+">
71                                 <expression>(.+)</expression>
72                         </RegExp>
73                         <RegExp input="$$1" output="\1" dest="7">
74                                 <expression clear="yes" noclean="1">&quot;studios&quot;:\[([^\]]*)</expression>
75                         </RegExp>
76                         <RegExp input="$$7" output="&lt;studio&gt;\1&lt;/studio&gt;" dest="5+">
77                                 <expression trim="1" fixchars="1">&quot;name&quot;:&quot;([^&quot;]*)</expression>
78                         </RegExp>
79                         <RegExp input="$$1" output="\1" dest="7">
80                                 <expression clear="yes" noclean="1">&quot;countries&quot;:\[([^\]]*)</expression>
81                         </RegExp>
82                         <RegExp input="$$7" output="&lt;country&gt;\1&lt;/country&gt;" dest="5+">
83                                 <expression trim="1" fixchars="1">&quot;name&quot;:&quot;([^&quot;]*)</expression>
84                         </RegExp>
85                         <RegExp input="$$1" output="&lt;director&gt;\1&lt;/director&gt;" dest="5+">
86                                 <expression repeat="yes" fixchars="1">&quot;name&quot;:&quot;([^&quot;]*)&quot;,&quot;job&quot;:&quot;Director&quot;</expression>
87                         </RegExp>
88                         <RegExp input="$$1" output="&lt;credits&gt;\1&lt;/credits&gt;" dest="5+">
89                                 <expression repeat="yes" fixchars="1">&quot;name&quot;:&quot;([^&quot;]*)&quot;,&quot;job&quot;:&quot;[^&quot;]*&quot;,&quot;department&quot;:&quot;Writing&quot;</expression>
90                         </RegExp>
91                         <RegExp conditional="!imdbrating" input="$$2" output="&lt;chain function=&quot;GetTMDBRatingByIdChain&quot;&gt;$$2&lt;/chain&gt;" dest="5+">
92                                 <expression />
93                         </RegExp>
94                         <RegExp input="$$2" output="&lt;chain function=&quot;GetTMDBPlotByIdChain&quot;&gt;$$2&lt;/chain&gt;" dest="5+">
95                                 <expression />
96                         </RegExp>
97                         <RegExp input="$$2" output="&lt;chain function=&quot;GetTMDBCastByIdChain&quot;&gt;$$2&lt;/chain&gt;" dest="5+">
98                                 <expression />
99                         </RegExp>
100                         <RegExp input="$$2" output="&lt;chain function=&quot;GetTMDBGenresByIdChain&quot;&gt;$$2&lt;/chain&gt;" dest="5+">
101                                 <expression />
102                         </RegExp>
103                         <RegExp conditional="imdbrating" input="$$1" output="&lt;chain function=&quot;GetIMDBRatingById&quot;&gt;\1&lt;/chain&gt;" dest="5+">
104                                 <expression noclean="1">&quot;movie&quot;,&quot;id&quot;:[0-9]*,&quot;imdb_id&quot;:&quot;([^&quot;]*)</expression>
105                         </RegExp>
106                         <RegExp input="$$2" output="&lt;chain function=&quot;GetTMDBThumbsByIdChain&quot;&gt;$$2&lt;/chain&gt;" dest="5+">
107                                 <expression />
108                         </RegExp>
109                         <RegExp conditional="fanart" input="$$2" output="&lt;chain function=&quot;GetTMDBFanartByIdChain&quot;&gt;$$2&lt;/chain&gt;" dest="5+">
110                                 <expression />
111                         </RegExp>
112                         <RegExp conditional="trailer" input="$$2" output="&lt;chain function=&quot;GetTMDBTrailerByIdChain&quot;&gt;$$2&lt;/chain&gt;" dest="5+">
113                                 <expression />
114                         </RegExp>
115                         <RegExp input="$INFO[TrailerQ]" output="&lt;chain function=&quot;GetHDTrailersnet480p&quot;&gt;$$6&lt;/chain&gt;" dest="5+">
116                                 <RegExp input="$$1" output="\1" dest="6">
117                                         <expression noclean="1">&quot;original_name&quot;:&quot;([^&quot;]*)</expression>
118                                 </RegExp>
119                                 <expression>480p</expression>
120                         </RegExp>
121                         <RegExp input="$INFO[TrailerQ]" output="&lt;chain function=&quot;GetHDTrailersnet720p&quot;&gt;$$6&lt;/chain&gt;" dest="5+">
122                                 <RegExp input="$$1" output="\1" dest="6">
123                                         <expression noclean="1">&quot;original_name&quot;:&quot;([^&quot;]*)</expression>
124                                 </RegExp>
125                                 <expression>720p</expression>
126                         </RegExp>
127                         <RegExp input="$INFO[TrailerQ]" output="&lt;chain function=&quot;GetHDTrailersnet1080p&quot;&gt;$$6&lt;/chain&gt;" dest="5+">
128                                 <RegExp input="$$1" output="\1" dest="6">
129                                         <expression noclean="1">&quot;original_name&quot;:&quot;([^&quot;]*)</expression>
130                                 </RegExp>
131                                 <expression>1080p</expression>
132                         </RegExp>
133                         <expression noclean="1" />
134                 </RegExp>
135         </GetDetails>
136 </scraper>