-
Notifications
You must be signed in to change notification settings - Fork 18
/
imdb.js
271 lines (255 loc) · 6.61 KB
/
imdb.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
{
"databaseConnection": "jdbc:mysql://localhost:3306/jmdb?useUnicode=true&useServerPrepStmts=true&useSSL=false",
"databaseUser": "root",
"databasePassword": "password",
"mongoConnection": "mongodb://MacPro.local:27017/",
"mongoDatabase": "imdb",
"mongoCollection": "movies",
"mongoQuery" : {},
"mongoFields" : { "_id" : 1},
"mongoOrderBy" : { "_id" : -1},
"mongoDefault" : { "_id" : 0 },
"startAt": "moviessection",
"moviessection": {
"template": {
"_id": "$movieid",
"title": "$title",
"year": "$year",
"imdbid": "$imdbid",
"akatitle": [ "@akatitlessection"],
"altversions": [ "@altversionssection"],
"business": [ "@businesssection"],
"certificates": [ "@certificatessection"],
"colorinfosection": [ "@certificatessection"],
"crazycredits": [ "@crazycreditssection"],
"distributors" : ["@distributorssection"],
"genres" : ["@genressection"],
"goofs" : ["@goofssection"],
"keywords" : ["@keywordssection"],
"languages" : ["@languagesection"],
"literature":["@literaturesection"],
"locations":["@locationssection"],
"movielinks":["@movielinkssection"],
"mparating":["@mpaaratingssection"],
"plots":["@plotssection"],
"prodcompanies":["@prodcompaniessection"],
"quotes":["@quotessection"],
"ratings":["@ratingssection"],
"releasedates":["@releasedatessection"],
"runningtime":["@runningtimessection"],
"soundmix":["@soundmixsection"],
"soundtrack":["@soundtrackssection"],
"taglines":["@taglinessection"],
"technical":["@technicalsection"],
"trivia":["@triviasection"]
},
"sql": "SELECT * FROM movies where movieid > ? order by movieid",
"params" : [ "_id" ]
},
"akatitlessection": {
"template": {
"language": "$language",
"title": "$title",
"addition": "$addition"
},
"sql": "SELECT * FROM akatitles order by movieid",
"mergeon":"movieid"
},
"altversionssection": {
"template": {
"_value": "$versiontext"
},
"sql": "SELECT * FROM altversions order by movieid",
"mergeon":"movieid"
},
"businesssection": {
"template": {
"_value": "$businesstext"
},
"sql": "SELECT * FROM business order by movieid",
"mergeon":"movieid"
},
"certificatessection": {
"template": {
"country": "$country",
"certification": "$certification",
"addition": "$addition"
},
"sql": "SELECT * FROM certificates order by movieid",
"mergeon":"movieid"
},
"colorinfosection": {
"template": {
"color": "$color",
"addition": "$addition"
},
"sql": "SELECT * FROM colorinfo order by movieid",
"mergeon":"movieid"
},
"countriessection": {
"template": {
"_value": "$country"
},
"sql": "SELECT * FROM countries order by movieid",
"mergeon":"movieid"
},
"crazycreditssection": {
"template": {
"credittext": "$credittext"
},
"sql": "SELECT * FROM crazycredits order by movieid",
"mergeon":"movieid"
},
"distributorssection": {
"template": {
"name": "$name",
"addition": "$addition"
},
"sql": "SELECT * FROM distributors order by movieid",
"mergeon":"movieid"
},
"genressection": {
"template": {
"_value": "$genre"
},
"sql": "SELECT * FROM genres order by movieid",
"mergeon":"movieid"
},
"goofssection": {
"template": {
"_value": "$gooftext"
},
"sql": "SELECT * FROM goofs order by movieid",
"mergeon":"movieid"
},
"keywordssection": {
"template": {
"_value": "$keyword"
},
"sql": "SELECT * FROM keywords order by movieid",
"mergeon":"movieid"
},
"languagesection": {
"template": {
"language": "$language",
"addition": "$addition"
},
"sql": "SELECT * FROM language order by movieid",
"mergeon":"movieid"
},
"literaturesection": {
"template": {
"_value": "$literaturetext"
},
"sql": "SELECT * FROM literature order by movieid",
"mergeon":"movieid"
},
"locationssection": {
"template": {
"location": "$location",
"addition": "$addition"
},
"sql": "SELECT * FROM locations order by movieid",
"mergeon":"movieid"
},
"movielinkssection": {
"template": {
"_value": "$movielinkstext"
},
"sql": "SELECT * FROM movielinks order by movieid",
"mergeon":"movieid"
},
"mpaaratingssection": {
"template": {
"_value": "$reasontext"
},
"sql": "SELECT * FROM mpaaratings order by movieid",
"mergeon":"movieid"
},
"plotssection": {
"template": {
"_value": "$plottext"
},
"sql": "SELECT * FROM plots order by movieid",
"mergeon":"movieid"
},
"prodcompaniessection": {
"template": {
"name": "$name",
"addition": "$addition"
},
"sql": "SELECT * FROM prodcompanies order by movieid",
"mergeon":"movieid"
},
"quotessection": {
"template": {
"_value": "$quotetext"
},
"sql": "SELECT * FROM quotes order by movieid",
"mergeon":"movieid"
},
"ratingssection": {
"template": {
"rank": "$rank",
"votes": "$votes",
"distribution": "$distribution"
},
"sql": "SELECT * FROM ratings order by movieid",
"mergeon":"movieid"
},
"releasedatessection": {
"template": {
"country": "$country",
"imdbdate": "$imdbdate",
"releasedate": "$releasedate",
"addition": "$addition"
},
"sql": "SELECT * FROM releasedates order by movieid",
"mergeon":"movieid"
},
"runningtimessection": {
"template": {
"time": "$time",
"addition": "$addition"
},
"sql": "SELECT * FROM runningtimes order by movieid",
"mergeon":"movieid"
},
"soundmixsection": {
"template": {
"sound": "$sound",
"addition": "$addition"
},
"sql": "SELECT * FROM soundmix order by movieid",
"mergeon":"movieid"
},
"soundtrackssection": {
"template": {
"_value": "$soundtracktext"
},
"sql": "SELECT * FROM soundtracks order by movieid",
"mergeon":"movieid"
},
"taglinessection": {
"template": {
"_value": "$taglinetext"
},
"sql": "SELECT * FROM taglines order by movieid",
"mergeon":"movieid"
},
"technicalsection": {
"template": {
"name": "$name",
"addition": "$addition"
},
"sql": "SELECT * FROM technical order by movieid",
"mergeon":"movieid"
},
"triviasection": {
"template": {
"_value": "$triviatext"
},
"sql": "SELECT * FROM trivia order by movieid",
"mergeon":"movieid"
}
}