maksar-tmdb_party 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,24 @@
1
+ module TMDBParty
2
+ class Image
3
+ attr_reader :url, :type, :size
4
+
5
+ def initialize(options={})
6
+ @url = options["url"]
7
+ @type = options["type"]
8
+ @size = options["size"]
9
+ end
10
+
11
+ def self.parse(data)
12
+ puts data.inspect
13
+ puts
14
+ puts
15
+ if data.is_a?(Array)
16
+ data.collect do |image|
17
+ Image.new(image["image"])
18
+ end
19
+ else
20
+ Image.new(image["image"])
21
+ end
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,75 @@
1
+ module TMDBParty
2
+ class Movie
3
+ include Attributes
4
+ attr_reader :tmdb
5
+
6
+ attributes :name, :overview, :id, :score, :imdb_id, :movie_type, :url, :popularity, :alternative_title, :rating
7
+ attributes :released
8
+ attributes :id, :type => Integer
9
+ attributes :popularity, :score, :type => Float
10
+
11
+ attributes :posters, :backdrops, :lazy => :get_info!
12
+ attributes :homepage, :lazy => :get_info!
13
+ attributes :trailer, :lazy => :get_info!
14
+ attributes :runtime, :lazy => :get_info!, :type => Integer
15
+ attributes :genres, :lazy => :get_info!, :type => Genre
16
+ attributes :cast, :lazy => :get_info!, :type => Person
17
+
18
+ alias_method :flattened_posters, :posters
19
+ alias_method :flattened_backdrops, :backdrops
20
+
21
+ def initialize(values, tmdb)
22
+ @tmdb = tmdb
23
+ self.attributes = values
24
+ end
25
+
26
+ def get_info!
27
+ movie = tmdb.get_info(self.id)
28
+ @attributes.merge!(movie.attributes) if movie
29
+ @loaded = true
30
+ end
31
+
32
+ def directors
33
+ find_cast('Director')
34
+ end
35
+
36
+ def actors
37
+ find_cast('Actor')
38
+ end
39
+
40
+ def writers
41
+ find_cast('Writer')
42
+ end
43
+
44
+ def posters
45
+ process_art(flattened_posters)
46
+ end
47
+
48
+ def backdrops
49
+ process_art(flattened_backdrops)
50
+ end
51
+
52
+
53
+ private
54
+
55
+ def process_art(art)
56
+ image_groups = {}
57
+ art.each do |image_hash|
58
+ the_image = image_hash["image"]
59
+ if image_groups[the_image["id"]]
60
+ image_groups[the_image["id"]][the_image["size"]] = the_image["url"]
61
+ else
62
+ image_groups[the_image["id"]] = {the_image["size"] => the_image["url"]}
63
+ end
64
+ end
65
+ image_groups.values
66
+ end
67
+
68
+ def find_cast(type)
69
+ return [] unless cast
70
+ guys = cast.select{|c| c.job == type}
71
+ end
72
+
73
+ end
74
+
75
+ end
@@ -0,0 +1,21 @@
1
+ module TMDBParty
2
+ class Person
3
+ include Attributes
4
+ attributes :name, :url, :job
5
+
6
+ def initialize(values)
7
+ self.attributes = values
8
+ end
9
+
10
+ def self.parse(data)
11
+ return unless data
12
+ if data.is_a?(Array)
13
+ data.collect do |person|
14
+ Person.new(person)
15
+ end
16
+ else
17
+ [Person.new(data)]
18
+ end
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,20 @@
1
+ module TMDBParty
2
+ class Video
3
+ attr_reader :url
4
+
5
+ def initialize(url)
6
+ @url = url
7
+ end
8
+
9
+ def self.parse(data)
10
+ return unless data
11
+ if data.is_a?(Array)
12
+ data.collect do |url|
13
+ Video.new(url)
14
+ end
15
+ else
16
+ Video.new(data)
17
+ end
18
+ end
19
+ end
20
+ end
@@ -0,0 +1 @@
1
+ ["Nothing found."]
@@ -0,0 +1,609 @@
1
+ [{
2
+ "rating": "7.46667",
3
+ "alternative_name": "The Transformers",
4
+ "name": "Transformers",
5
+ "overview": "The Earth is caught in the middle of an intergalactic war between two races of robots, the heroic Autobots and the evil Decepticons, which are able to change into a variety of objects, including cars, trucks, planes and other technological creations.",
6
+ "url": "http:\/\/www.themoviedb.org\/movie\/1858",
7
+ "id": 1858,
8
+ "posters": [{
9
+ "image": {
10
+ "size": "original",
11
+ "url": "http:\/\/images.themoviedb.org\/posters\/30038\/Transformers_v2.jpg",
12
+ "type": "poster",
13
+ "id": 30038
14
+ }
15
+ },
16
+ {
17
+ "image": {
18
+ "size": "thumb",
19
+ "url": "http:\/\/images.themoviedb.org\/posters\/30038\/Transformers_v2_thumb.jpg",
20
+ "type": "poster",
21
+ "id": 30038
22
+ }
23
+ },
24
+ {
25
+ "image": {
26
+ "size": "mid",
27
+ "url": "http:\/\/images.themoviedb.org\/posters\/30038\/Transformers_v2_mid.jpg",
28
+ "type": "poster",
29
+ "id": 30038
30
+ }
31
+ },
32
+ {
33
+ "image": {
34
+ "size": "cover",
35
+ "url": "http:\/\/images.themoviedb.org\/posters\/30038\/Transformers_v2_cover.jpg",
36
+ "type": "poster",
37
+ "id": 30038
38
+ }
39
+ },
40
+ {
41
+ "image": {
42
+ "size": "original",
43
+ "url": "http:\/\/images.themoviedb.org\/posters\/30034\/Transformers_v1.jpg",
44
+ "type": "poster",
45
+ "id": 30034
46
+ }
47
+ },
48
+ {
49
+ "image": {
50
+ "size": "thumb",
51
+ "url": "http:\/\/images.themoviedb.org\/posters\/30034\/Transformers_v1_thumb.jpg",
52
+ "type": "poster",
53
+ "id": 30034
54
+ }
55
+ },
56
+ {
57
+ "image": {
58
+ "size": "mid",
59
+ "url": "http:\/\/images.themoviedb.org\/posters\/30034\/Transformers_v1_mid.jpg",
60
+ "type": "poster",
61
+ "id": 30034
62
+ }
63
+ },
64
+ {
65
+ "image": {
66
+ "size": "cover",
67
+ "url": "http:\/\/images.themoviedb.org\/posters\/30034\/Transformers_v1_cover.jpg",
68
+ "type": "poster",
69
+ "id": 30034
70
+ }
71
+ },
72
+ {
73
+ "image": {
74
+ "size": "original",
75
+ "url": "http:\/\/images.themoviedb.org\/posters\/30030\/Transformers_v3.jpg",
76
+ "type": "poster",
77
+ "id": 30030
78
+ }
79
+ },
80
+ {
81
+ "image": {
82
+ "size": "thumb",
83
+ "url": "http:\/\/images.themoviedb.org\/posters\/30030\/Transformers_v3_thumb.jpg",
84
+ "type": "poster",
85
+ "id": 30030
86
+ }
87
+ },
88
+ {
89
+ "image": {
90
+ "size": "mid",
91
+ "url": "http:\/\/images.themoviedb.org\/posters\/30030\/Transformers_v3_mid.jpg",
92
+ "type": "poster",
93
+ "id": 30030
94
+ }
95
+ },
96
+ {
97
+ "image": {
98
+ "size": "cover",
99
+ "url": "http:\/\/images.themoviedb.org\/posters\/30030\/Transformers_v3_cover.jpg",
100
+ "type": "poster",
101
+ "id": 30030
102
+ }
103
+ },
104
+ {
105
+ "image": {
106
+ "size": "original",
107
+ "url": "http:\/\/images.themoviedb.org\/posters\/30026\/Transformers_v2.jpg",
108
+ "type": "poster",
109
+ "id": 30026
110
+ }
111
+ },
112
+ {
113
+ "image": {
114
+ "size": "thumb",
115
+ "url": "http:\/\/images.themoviedb.org\/posters\/30026\/Transformers_v2_thumb.jpg",
116
+ "type": "poster",
117
+ "id": 30026
118
+ }
119
+ },
120
+ {
121
+ "image": {
122
+ "size": "mid",
123
+ "url": "http:\/\/images.themoviedb.org\/posters\/30026\/Transformers_v2_mid.jpg",
124
+ "type": "poster",
125
+ "id": 30026
126
+ }
127
+ },
128
+ {
129
+ "image": {
130
+ "size": "cover",
131
+ "url": "http:\/\/images.themoviedb.org\/posters\/30026\/Transformers_v2_cover.jpg",
132
+ "type": "poster",
133
+ "id": 30026
134
+ }
135
+ },
136
+ {
137
+ "image": {
138
+ "size": "original",
139
+ "url": "http:\/\/images.themoviedb.org\/posters\/30022\/Transformers_v1.jpg",
140
+ "type": "poster",
141
+ "id": 30022
142
+ }
143
+ },
144
+ {
145
+ "image": {
146
+ "size": "thumb",
147
+ "url": "http:\/\/images.themoviedb.org\/posters\/30022\/Transformers_v1_thumb.jpg",
148
+ "type": "poster",
149
+ "id": 30022
150
+ }
151
+ },
152
+ {
153
+ "image": {
154
+ "size": "mid",
155
+ "url": "http:\/\/images.themoviedb.org\/posters\/30022\/Transformers_v1_mid.jpg",
156
+ "type": "poster",
157
+ "id": 30022
158
+ }
159
+ },
160
+ {
161
+ "image": {
162
+ "size": "cover",
163
+ "url": "http:\/\/images.themoviedb.org\/posters\/30022\/Transformers_v1_cover.jpg",
164
+ "type": "poster",
165
+ "id": 30022
166
+ }
167
+ },
168
+ {
169
+ "image": {
170
+ "size": "original",
171
+ "url": "http:\/\/images.themoviedb.org\/posters\/7937\/Transformers.jpg",
172
+ "type": "poster",
173
+ "id": 7937
174
+ }
175
+ },
176
+ {
177
+ "image": {
178
+ "size": "thumb",
179
+ "url": "http:\/\/images.themoviedb.org\/posters\/7937\/Transformers_thumb.jpg",
180
+ "type": "poster",
181
+ "id": 7937
182
+ }
183
+ },
184
+ {
185
+ "image": {
186
+ "size": "cover",
187
+ "url": "http:\/\/images.themoviedb.org\/posters\/7937\/Transformers_cover.jpg",
188
+ "type": "poster",
189
+ "id": 7937
190
+ }
191
+ },
192
+ {
193
+ "image": {
194
+ "size": "mid",
195
+ "url": "http:\/\/images.themoviedb.org\/posters\/7937\/Transformers_mid.jpg",
196
+ "type": "poster",
197
+ "id": 7937
198
+ }
199
+ },
200
+ {
201
+ "image": {
202
+ "size": "original",
203
+ "url": "http:\/\/images.themoviedb.org\/posters\/949\/Transformers_cd48d8bb.jpg",
204
+ "type": "poster",
205
+ "id": 949
206
+ }
207
+ },
208
+ {
209
+ "image": {
210
+ "size": "cover",
211
+ "url": "http:\/\/images.themoviedb.org\/posters\/949\/Transformers_cd48d8bb_cover.jpg",
212
+ "type": "poster",
213
+ "id": 949
214
+ }
215
+ },
216
+ {
217
+ "image": {
218
+ "size": "mid",
219
+ "url": "http:\/\/images.themoviedb.org\/posters\/949\/Transformers_cd48d8bb_mid.jpg",
220
+ "type": "poster",
221
+ "id": 949
222
+ }
223
+ },
224
+ {
225
+ "image": {
226
+ "size": "thumb",
227
+ "url": "http:\/\/images.themoviedb.org\/posters\/949\/Transformers_cd48d8bb_thumb.jpg",
228
+ "type": "poster",
229
+ "id": 949
230
+ }
231
+ },
232
+ {
233
+ "image": {
234
+ "size": "original",
235
+ "url": "http:\/\/images.themoviedb.org\/posters\/945\/Transformers_7394f415.jpg",
236
+ "type": "poster",
237
+ "id": 945
238
+ }
239
+ },
240
+ {
241
+ "image": {
242
+ "size": "cover",
243
+ "url": "http:\/\/images.themoviedb.org\/posters\/945\/Transformers_7394f415_cover.jpg",
244
+ "type": "poster",
245
+ "id": 945
246
+ }
247
+ },
248
+ {
249
+ "image": {
250
+ "size": "mid",
251
+ "url": "http:\/\/images.themoviedb.org\/posters\/945\/Transformers_7394f415_mid.jpg",
252
+ "type": "poster",
253
+ "id": 945
254
+ }
255
+ },
256
+ {
257
+ "image": {
258
+ "size": "thumb",
259
+ "url": "http:\/\/images.themoviedb.org\/posters\/945\/Transformers_7394f415_thumb.jpg",
260
+ "type": "poster",
261
+ "id": 945
262
+ }
263
+ },
264
+ {
265
+ "image": {
266
+ "size": "original",
267
+ "url": "http:\/\/images.themoviedb.org\/posters\/941\/Transformers_7f0d814e.jpg",
268
+ "type": "poster",
269
+ "id": 941
270
+ }
271
+ },
272
+ {
273
+ "image": {
274
+ "size": "cover",
275
+ "url": "http:\/\/images.themoviedb.org\/posters\/941\/Transformers_7f0d814e_cover.jpg",
276
+ "type": "poster",
277
+ "id": 941
278
+ }
279
+ },
280
+ {
281
+ "image": {
282
+ "size": "mid",
283
+ "url": "http:\/\/images.themoviedb.org\/posters\/941\/Transformers_7f0d814e_mid.jpg",
284
+ "type": "poster",
285
+ "id": 941
286
+ }
287
+ },
288
+ {
289
+ "image": {
290
+ "size": "thumb",
291
+ "url": "http:\/\/images.themoviedb.org\/posters\/941\/Transformers_7f0d814e_thumb.jpg",
292
+ "type": "poster",
293
+ "id": 941
294
+ }
295
+ },
296
+ {
297
+ "image": {
298
+ "size": "original",
299
+ "url": "http:\/\/images.themoviedb.org\/posters\/937\/Transformers_3d7ecdab.jpg",
300
+ "type": "poster",
301
+ "id": 937
302
+ }
303
+ },
304
+ {
305
+ "image": {
306
+ "size": "cover",
307
+ "url": "http:\/\/images.themoviedb.org\/posters\/937\/Transformers_3d7ecdab_cover.jpg",
308
+ "type": "poster",
309
+ "id": 937
310
+ }
311
+ },
312
+ {
313
+ "image": {
314
+ "size": "mid",
315
+ "url": "http:\/\/images.themoviedb.org\/posters\/937\/Transformers_3d7ecdab_mid.jpg",
316
+ "type": "poster",
317
+ "id": 937
318
+ }
319
+ },
320
+ {
321
+ "image": {
322
+ "size": "thumb",
323
+ "url": "http:\/\/images.themoviedb.org\/posters\/937\/Transformers_3d7ecdab_thumb.jpg",
324
+ "type": "poster",
325
+ "id": 937
326
+ }
327
+ }],
328
+ "runtime": 132,
329
+ "imdb_id": "tt0418279",
330
+ "backdrops": [{
331
+ "image": {
332
+ "size": "original",
333
+ "url": "http:\/\/images.themoviedb.org\/backdrops\/35222\/Transformers_4.jpg",
334
+ "type": "backdrop",
335
+ "id": 35222
336
+ }
337
+ },
338
+ {
339
+ "image": {
340
+ "size": "poster",
341
+ "url": "http:\/\/images.themoviedb.org\/backdrops\/35222\/Transformers_4_poster.jpg",
342
+ "type": "backdrop",
343
+ "id": 35222
344
+ }
345
+ },
346
+ {
347
+ "image": {
348
+ "size": "thumb",
349
+ "url": "http:\/\/images.themoviedb.org\/backdrops\/35222\/Transformers_4_thumb.jpg",
350
+ "type": "backdrop",
351
+ "id": 35222
352
+ }
353
+ },
354
+ {
355
+ "image": {
356
+ "size": "original",
357
+ "url": "http:\/\/images.themoviedb.org\/backdrops\/35207\/Transformers_2.jpg",
358
+ "type": "backdrop",
359
+ "id": 35207
360
+ }
361
+ },
362
+ {
363
+ "image": {
364
+ "size": "poster",
365
+ "url": "http:\/\/images.themoviedb.org\/backdrops\/35207\/Transformers_2_poster.jpg",
366
+ "type": "backdrop",
367
+ "id": 35207
368
+ }
369
+ },
370
+ {
371
+ "image": {
372
+ "size": "thumb",
373
+ "url": "http:\/\/images.themoviedb.org\/backdrops\/35207\/Transformers_2_thumb.jpg",
374
+ "type": "backdrop",
375
+ "id": 35207
376
+ }
377
+ },
378
+ {
379
+ "image": {
380
+ "size": "original",
381
+ "url": "http:\/\/images.themoviedb.org\/backdrops\/35204\/Transformers_1.jpg",
382
+ "type": "backdrop",
383
+ "id": 35204
384
+ }
385
+ },
386
+ {
387
+ "image": {
388
+ "size": "poster",
389
+ "url": "http:\/\/images.themoviedb.org\/backdrops\/35204\/Transformers_1_poster.jpg",
390
+ "type": "backdrop",
391
+ "id": 35204
392
+ }
393
+ },
394
+ {
395
+ "image": {
396
+ "size": "thumb",
397
+ "url": "http:\/\/images.themoviedb.org\/backdrops\/35204\/Transformers_1_thumb.jpg",
398
+ "type": "backdrop",
399
+ "id": 35204
400
+ }
401
+ },
402
+ {
403
+ "image": {
404
+ "size": "original",
405
+ "url": "http:\/\/images.themoviedb.org\/backdrops\/34130\/fanart2.jpg",
406
+ "type": "backdrop",
407
+ "id": 34130
408
+ }
409
+ },
410
+ {
411
+ "image": {
412
+ "size": "poster",
413
+ "url": "http:\/\/images.themoviedb.org\/backdrops\/34130\/fanart2_poster.jpg",
414
+ "type": "backdrop",
415
+ "id": 34130
416
+ }
417
+ },
418
+ {
419
+ "image": {
420
+ "size": "thumb",
421
+ "url": "http:\/\/images.themoviedb.org\/backdrops\/34130\/fanart2_thumb.jpg",
422
+ "type": "backdrop",
423
+ "id": 34130
424
+ }
425
+ },
426
+ {
427
+ "image": {
428
+ "size": "original",
429
+ "url": "http:\/\/images.themoviedb.org\/backdrops\/34127\/fanart.jpg",
430
+ "type": "backdrop",
431
+ "id": 34127
432
+ }
433
+ },
434
+ {
435
+ "image": {
436
+ "size": "thumb",
437
+ "url": "http:\/\/images.themoviedb.org\/backdrops\/34127\/fanart_thumb.jpg",
438
+ "type": "backdrop",
439
+ "id": 34127
440
+ }
441
+ },
442
+ {
443
+ "image": {
444
+ "size": "poster",
445
+ "url": "http:\/\/images.themoviedb.org\/backdrops\/34127\/fanart_poster.jpg",
446
+ "type": "backdrop",
447
+ "id": 34127
448
+ }
449
+ },
450
+ {
451
+ "image": {
452
+ "size": "original",
453
+ "url": "http:\/\/images.themoviedb.org\/backdrops\/27161\/Mikaela-Banes-transformers-71359_1920_1080.jpg",
454
+ "type": "backdrop",
455
+ "id": 27161
456
+ }
457
+ },
458
+ {
459
+ "image": {
460
+ "size": "thumb",
461
+ "url": "http:\/\/images.themoviedb.org\/backdrops\/27161\/Mikaela-Banes-transformers-71359_1920_1080_thumb.jpg",
462
+ "type": "backdrop",
463
+ "id": 27161
464
+ }
465
+ },
466
+ {
467
+ "image": {
468
+ "size": "poster",
469
+ "url": "http:\/\/images.themoviedb.org\/backdrops\/27161\/Mikaela-Banes-transformers-71359_1920_1080_poster.jpg",
470
+ "type": "backdrop",
471
+ "id": 27161
472
+ }
473
+ },
474
+ {
475
+ "image": {
476
+ "size": "original",
477
+ "url": "http:\/\/images.themoviedb.org\/backdrops\/27158\/Fox_Megan001a.jpg",
478
+ "type": "backdrop",
479
+ "id": 27158
480
+ }
481
+ },
482
+ {
483
+ "image": {
484
+ "size": "thumb",
485
+ "url": "http:\/\/images.themoviedb.org\/backdrops\/27158\/Fox_Megan001a_thumb.jpg",
486
+ "type": "backdrop",
487
+ "id": 27158
488
+ }
489
+ },
490
+ {
491
+ "image": {
492
+ "size": "poster",
493
+ "url": "http:\/\/images.themoviedb.org\/backdrops\/27158\/Fox_Megan001a_poster.jpg",
494
+ "type": "backdrop",
495
+ "id": 27158
496
+ }
497
+ },
498
+ {
499
+ "image": {
500
+ "size": "original",
501
+ "url": "http:\/\/images.themoviedb.org\/backdrops\/15635\/Transformers-fanart.jpg",
502
+ "type": "backdrop",
503
+ "id": 15635
504
+ }
505
+ },
506
+ {
507
+ "image": {
508
+ "size": "poster",
509
+ "url": "http:\/\/images.themoviedb.org\/backdrops\/15635\/Transformers-fanart_poster.jpg",
510
+ "type": "backdrop",
511
+ "id": 15635
512
+ }
513
+ },
514
+ {
515
+ "image": {
516
+ "size": "thumb",
517
+ "url": "http:\/\/images.themoviedb.org\/backdrops\/15635\/Transformers-fanart_thumb.jpg",
518
+ "type": "backdrop",
519
+ "id": 15635
520
+ }
521
+ },
522
+ {
523
+ "image": {
524
+ "size": "original",
525
+ "url": "http:\/\/images.themoviedb.org\/backdrops\/8546\/Transformers_2007_1920x1080.jpg",
526
+ "type": "backdrop",
527
+ "id": 8546
528
+ }
529
+ },
530
+ {
531
+ "image": {
532
+ "size": "poster",
533
+ "url": "http:\/\/images.themoviedb.org\/backdrops\/8546\/Transformers_2007_1920x1080_poster.jpg",
534
+ "type": "backdrop",
535
+ "id": 8546
536
+ }
537
+ },
538
+ {
539
+ "image": {
540
+ "size": "thumb",
541
+ "url": "http:\/\/images.themoviedb.org\/backdrops\/8546\/Transformers_2007_1920x1080_thumb.jpg",
542
+ "type": "backdrop",
543
+ "id": 8546
544
+ }
545
+ },
546
+ {
547
+ "image": {
548
+ "size": "original",
549
+ "url": "http:\/\/images.themoviedb.org\/backdrops\/2279\/tt0418279.jpg",
550
+ "type": "backdrop",
551
+ "id": 2279
552
+ }
553
+ },
554
+ {
555
+ "image": {
556
+ "size": "thumb",
557
+ "url": "http:\/\/images.themoviedb.org\/backdrops\/2279\/tt0418279_thumb.jpg",
558
+ "type": "backdrop",
559
+ "id": 2279
560
+ }
561
+ },
562
+ {
563
+ "image": {
564
+ "size": "poster",
565
+ "url": "http:\/\/images.themoviedb.org\/backdrops\/2279\/tt0418279_poster.jpg",
566
+ "type": "backdrop",
567
+ "id": 2279
568
+ }
569
+ },
570
+ {
571
+ "image": {
572
+ "size": "original",
573
+ "url": "http:\/\/images.themoviedb.org\/backdrops\/1394\/tt0418279-1.jpg",
574
+ "type": "backdrop",
575
+ "id": 1394
576
+ }
577
+ },
578
+ {
579
+ "image": {
580
+ "size": "thumb",
581
+ "url": "http:\/\/images.themoviedb.org\/backdrops\/1394\/tt0418279-1_thumb.jpg",
582
+ "type": "backdrop",
583
+ "id": 1394
584
+ }
585
+ },
586
+ {
587
+ "image": {
588
+ "size": "poster",
589
+ "url": "http:\/\/images.themoviedb.org\/backdrops\/1394\/tt0418279-1_poster.jpg",
590
+ "type": "backdrop",
591
+ "id": 1394
592
+ }
593
+ }],
594
+ "released": "2007-07-04",
595
+ "genres": [{
596
+ "name": "Action",
597
+ "url": "http:\/\/themoviedb.org\/encyclopedia\/category\/28"
598
+ },
599
+ {
600
+ "name": "Adventure",
601
+ "url": "http:\/\/themoviedb.org\/encyclopedia\/category\/12"
602
+ },
603
+ {
604
+ "name": "Science Fiction",
605
+ "url": "http:\/\/themoviedb.org\/encyclopedia\/category\/878"
606
+ }],
607
+ "movie_type": "movie",
608
+ "popularity": 52
609
+ }]