FIX: [droid] set "remote as keyboard" default to true
[vuplus_xbmc] / addons / metadata.themoviedb.org / tmdb.xml
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="&lt;url&gt;http://api.themoviedb.org/3/search/movie?api_key=57983e31fb435df4df77afb854740ea9&amp;amp;query=\1&amp;amp;year=$$4&amp;amp;language=$INFO[language]&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/3/movie/\2?api_key=57983e31fb435df4df77afb854740ea9&amp;amp;language=$INFO[language]&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&gt;http://api.themoviedb.org/3/movie/tt\1?api_key=57983e31fb435df4df77afb854740ea9&amp;amp;language=$INFO[language]&lt;/url&gt;&lt;id&gt;tt\1&lt;/id&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&gt;http://api.themoviedb.org/3/movie/tt\1?api_key=57983e31fb435df4df77afb854740ea9&amp;amp;language=$INFO[language]&lt;/url&gt;&lt;id&gt;tt\1&lt;/id&gt;&lt;/details&gt;" dest="3">
19                         <expression>imdb....?/Title\?([0-9]*)</expression>
20                 </RegExp>
21         </NfoUrl>
22         <GetSearchResults dest="8">
23                 <RegExp input="$$3" output="&lt;results&gt;\1&lt;/results&gt;" dest="8">
24                         <RegExp input="$$1" output="&lt;entity&gt;&lt;title&gt;\4&lt;/title&gt;&lt;id&gt;\1&lt;/id&gt;&lt;year&gt;\3&lt;/year&gt;&lt;url cache=&quot;tmdb-$INFO[language]-\1.json&quot;&gt;http://api.themoviedb.org/3/movie/\1?api_key=57983e31fb435df4df77afb854740ea9&amp;amp;language=$INFO[language]&lt;/url&gt;&lt;/entity&gt;" dest="3">
25                                 <expression repeat="yes">&quot;id&quot;:([0-9]*),&quot;original_title&quot;:&quot;([^&quot;]*)&quot;,&quot;release_date&quot;:&quot;([0-9]+)-.*?&quot;title&quot;:&quot;([^&quot;]*)</expression>
26                         </RegExp>
27                         <RegExp input="$$1" output="&lt;entity&gt;&lt;title&gt;\2&lt;/title&gt;&lt;id&gt;\1&lt;/id&gt;&lt;year&gt;\3&lt;/year&gt;&lt;url cache=&quot;tmdb-$INFO[language]-\1.json&quot;&gt;http://api.themoviedb.org/3/movie/\1?api_key=57983e31fb435df4df77afb854740ea9&amp;amp;language=$INFO[language]&lt;/url&gt;&lt;/entity&gt;" dest="3+">
28                                 <expression repeat="yes">&quot;id&quot;:([0-9]*),&quot;original_title&quot;:&quot;([^&quot;]*)&quot;,&quot;release_date&quot;:&quot;([0-9]+)-</expression>
29                         </RegExp>
30                         <RegExp input="$$1" output="&lt;entity&gt;&lt;title&gt;\2&lt;/title&gt;&lt;id&gt;\1&lt;/id&gt;&lt;url cache=&quot;tmdb-$INFO[language]-\1.json&quot;&gt;http://api.themoviedb.org/3/movie/\1?api_key=57983e31fb435df4df77afb854740ea9&amp;amp;language=$INFO[language]&lt;/url&gt;&lt;/entity&gt;" dest="3+">
31                                 <expression repeat="yes">&quot;id&quot;:([0-9]*),&quot;original_title&quot;:&quot;([^&quot;]*)&quot;,&quot;release_date&quot;:null</expression>
32                         </RegExp>
33                         <expression noclean="1" />
34                 </RegExp>
35         </GetSearchResults>
36         <GetDetails dest="3">
37                 <RegExp input="$$5" output="&lt;details&gt;\1&lt;/details&gt;" dest="3">
38                         <RegExp input="$$1" output="&lt;id&gt;\1&lt;/id&gt;" dest="5">
39                                 <expression noclean="1">&quot;id&quot;:([0-9]*),&quot;imdb</expression>
40                         </RegExp>
41                         <RegExp input="$$1" output="&lt;id&gt;\1&lt;/id&gt;" dest="5+">
42                                 <expression clear="yes" noclean="1">&quot;id&quot;:[0-9]*,&quot;imdb_id&quot;:&quot;([^&quot;]*)</expression>
43                         </RegExp>
44                         <RegExp input="$$1" output="\1" dest="9">
45                                 <expression fixchars="1">&quot;original_title&quot;:&quot;([^&quot;]*)</expression>
46                         </RegExp>
47                         <RegExp conditional="keeporiginaltitle" input="$$9" output="&lt;title&gt;\1&lt;/title&gt;" dest="5+">
48                                 <expression/>
49                         </RegExp>
50                         <RegExp conditional="!keeporiginaltitle" input="$$2" output="&lt;chain function=&quot;GetTMDBTitleByIdChain&quot;&gt;$$2&lt;/chain&gt;" dest="5+">
51                                 <expression />
52                         </RegExp>
53                         <RegExp input="$$9" output="&lt;originaltitle&gt;\1&lt;/originaltitle&gt;" dest="5+">
54                                 <expression/>
55                         </RegExp>
56                         <RegExp input="$$1" output="&lt;year&gt;\1&lt;/year&gt;" dest="5+">
57                                 <expression noclean="1">&quot;release_date&quot;:&quot;([0-9]+)-</expression>
58                         </RegExp>
59                         <RegExp input="$$1" output="\1" dest="10">
60                                 <expression clear="yes" noclean="1">&quot;runtime&quot;:([0-9]+)</expression>
61                         </RegExp>
62                         <RegExp input="$$10" output="&lt;url function=&quot;ParseFallbackTMDBRuntime&quot; cache=&quot;tmdb-en-$$2.json&quot;&gt;http://api.themoviedb.org/3/movie/$$2?api_key=57983e31fb435df4df77afb854740ea9&amp;amp;language=en&lt;/url&gt;" dest="5+">
63                                 <expression>^$</expression>
64                         </RegExp>
65                         <RegExp input="$$10" output="&lt;runtime&gt;\1&lt;/runtime&gt;" dest="5+">
66                                 <expression>(.+)</expression>
67                         </RegExp>
68                         <RegExp input="$INFO[RatingS]" output="&lt;chain function=&quot;GetIMDBRatingById&quot;&gt;$$6&lt;/chain&gt;" dest="5+">
69                                 <RegExp input="$$1" output="\1" dest="6">
70                                         <expression noclean="1">&quot;id&quot;:[0-9]*,&quot;imdb_id&quot;:&quot;([^&quot;]*)</expression>
71                                 </RegExp>
72                                 <expression>IMDb</expression>
73                         </RegExp>
74                         <RegExp input="$INFO[RatingS]" output="&lt;chain function=&quot;GetTMDBRatingByIdChain&quot;&gt;$$2&lt;/chain&gt;" dest="5+">
75                                 <expression>TMDb</expression>
76                         </RegExp>
77                         <RegExp input="$$2" output="&lt;chain function=&quot;GetTMDBStudioByIdChain&quot;&gt;$$2&lt;/chain&gt;" dest="5+">
78                                 <expression />
79                         </RegExp>
80                         <RegExp input="$$2" output="&lt;chain function=&quot;GetTMDBCountryByIdChain&quot;&gt;$$2&lt;/chain&gt;" dest="5+">
81                                 <expression />
82                         </RegExp>
83                         <RegExp input="$$2" output="&lt;chain function=&quot;GetTMDBDirectorsByIdChain&quot;&gt;$$2&lt;/chain&gt;" dest="5+">
84                                 <expression />
85                         </RegExp>
86                         <RegExp input="$$2" output="&lt;chain function=&quot;GetTMDBWitersByIdChain&quot;&gt;$$2&lt;/chain&gt;" dest="5+">
87                                 <expression />
88                         </RegExp>
89                         <RegExp input="$$2" output="&lt;chain function=&quot;GetTMDBCertificationsByIdChain&quot;&gt;$$2&lt;/chain&gt;" dest="5+">
90                                 <expression />
91                         </RegExp>
92                         <RegExp input="$$2" output="&lt;chain function=&quot;GetTMDBSetByIdChain&quot;&gt;$$2&lt;/chain&gt;" dest="5+">
93                                 <expression />
94                         </RegExp>
95                         <RegExp input="$$2" output="&lt;chain function=&quot;GetTMDBPlotByIdChain&quot;&gt;$$2&lt;/chain&gt;" dest="5+">
96                                 <expression />
97                         </RegExp>
98                         <RegExp input="$$2" output="&lt;chain function=&quot;GetTMDBTaglineByIdChain&quot;&gt;$$2&lt;/chain&gt;" dest="5+">
99                                 <expression />
100                         </RegExp>
101                         <RegExp input="$$2" output="&lt;chain function=&quot;GetTMDBCastByIdChain&quot;&gt;$$2&lt;/chain&gt;" dest="5+">
102                                 <expression />
103                         </RegExp>
104                         <RegExp input="$$2" output="&lt;chain function=&quot;GetTMDBGenresByIdChain&quot;&gt;$$2&lt;/chain&gt;" dest="5+">
105                                 <expression />
106                         </RegExp>
107                         <RegExp input="$$2" output="&lt;chain function=&quot;GetTMDBThumbsByIdChain&quot;&gt;$$2&lt;/chain&gt;" dest="5+">
108                                 <expression />
109                         </RegExp>
110                         <RegExp conditional="fanart" input="$$2" output="&lt;chain function=&quot;GetTMDBFanartByIdChain&quot;&gt;$$2&lt;/chain&gt;" dest="5+">
111                                 <expression />
112                         </RegExp>
113                         <RegExp conditional="trailer" input="$$2" output="&lt;chain function=&quot;GetTMDBTrailerByIdChain&quot;&gt;$$2&lt;/chain&gt;" dest="5+">
114                                 <expression />
115                         </RegExp>
116                         <RegExp input="$INFO[TrailerQ]" output="&lt;chain function=&quot;GetHDTrailersnet480p&quot;&gt;$$6&lt;/chain&gt;" dest="5+">
117                                 <RegExp input="$$1" output="\1" dest="6">
118                                         <expression clear="yes" noclean="1">&quot;original_title&quot;:&quot;([^&quot;]*)</expression>
119                                 </RegExp>
120                                 <expression>480p</expression>
121                         </RegExp>
122                         <RegExp input="$INFO[TrailerQ]" output="&lt;chain function=&quot;GetHDTrailersnet720p&quot;&gt;$$6&lt;/chain&gt;" dest="5+">
123                                 <RegExp input="$$1" output="\1" dest="6">
124                                         <expression clear="yes" noclean="1">&quot;original_title&quot;:&quot;([^&quot;]*)</expression>
125                                 </RegExp>
126                                 <expression>720p</expression>
127                         </RegExp>
128                         <RegExp input="$INFO[TrailerQ]" output="&lt;chain function=&quot;GetHDTrailersnet1080p&quot;&gt;$$6&lt;/chain&gt;" dest="5+">
129                                 <RegExp input="$$1" output="\1" dest="6">
130                                         <expression clear="yes" noclean="1">&quot;original_title&quot;:&quot;([^&quot;]*)</expression>
131                                 </RegExp>
132                                 <expression>1080p</expression>
133                         </RegExp>
134                         <expression noclean="1" />
135                 </RegExp>
136         </GetDetails>
137         <ParseFallbackTMDBRuntime dest="5">
138                 <RegExp input="$$2" output="&lt;details&gt;\1&lt;/details&gt;" dest="5">
139                         <RegExp input="$$1" output="&lt;runtime&gt;\1&lt;/runtime&gt;" dest="2">
140                                 <expression noclean="1">&quot;runtime&quot;:([0-9]+)</expression>
141                         </RegExp>
142                         <expression noclean="1" />
143                 </RegExp>
144         </ParseFallbackTMDBRuntime>
145 </scraper>