tmdb-api 0.0.5 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -48,9 +48,8 @@ module TMDb
48
48
  # Examples
49
49
  #
50
50
  # TMDb::Movie.cast(68721, language: pt)
51
-
52
51
  def self.cast(id, options = {})
53
- res = get("/movie/#{id}/casts", query: options)
52
+ res = get("/movie/#{id}/credits", query: options)
54
53
  res.success? ? res['cast'] : bad_response(res)
55
54
  end
56
55
 
@@ -64,7 +63,7 @@ module TMDb
64
63
  # TMDb::Movie.crew(68721, language: pt)
65
64
 
66
65
  def self.crew(id, options = {})
67
- res = get("/movie/#{id}/casts", query: options)
66
+ res = get("/movie/#{id}/credits", query: options)
68
67
  res.success? ? res['crew'] : bad_response(res)
69
68
  end
70
69
 
@@ -1,3 +1,3 @@
1
1
  module TMDb
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
@@ -0,0 +1,681 @@
1
+ {
2
+ "id": 550,
3
+ "cast": [
4
+ {
5
+ "id": 819,
6
+ "name": "Edward Norton",
7
+ "character": "The Narrator",
8
+ "order": 0,
9
+ "cast_id": 4,
10
+ "profile_path": "/588Hrov6wwM9WcU88nJHlw2iufN.jpg"
11
+ },
12
+ {
13
+ "id": 287,
14
+ "name": "Brad Pitt",
15
+ "character": "Tyler Durden",
16
+ "order": 1,
17
+ "cast_id": 5,
18
+ "profile_path": "/kc3M04QQAuZ9woUvH3Ju5T7ZqG5.jpg"
19
+ },
20
+ {
21
+ "id": 1283,
22
+ "name": "Helena Bonham Carter",
23
+ "character": "Marla Singer",
24
+ "order": 2,
25
+ "cast_id": 6,
26
+ "profile_path": "/58oJPFG1wefMC0Vj7sFzHPrm67J.jpg"
27
+ },
28
+ {
29
+ "id": 7470,
30
+ "name": "Meat Loaf",
31
+ "character": "Robert 'Bob' Paulson",
32
+ "order": 3,
33
+ "cast_id": 7,
34
+ "profile_path": "/pwNyXgegO1nlZ8uWT847JM8EjGj.jpg"
35
+ },
36
+ {
37
+ "id": 7471,
38
+ "name": "Zach Grenier",
39
+ "character": "Richard Chesler",
40
+ "order": 4,
41
+ "cast_id": 8,
42
+ "profile_path": "/jghYiKdNkVehKpiVyE97AWrU9KQ.jpg"
43
+ },
44
+ {
45
+ "id": 7472,
46
+ "name": "Richmond Arquette",
47
+ "character": "Intern",
48
+ "order": 5,
49
+ "cast_id": 9,
50
+ "profile_path": null
51
+ },
52
+ {
53
+ "id": 7219,
54
+ "name": "David Andrews",
55
+ "character": "Thomas",
56
+ "order": 6,
57
+ "cast_id": 10,
58
+ "profile_path": "/pxmxn29UHW9r6uvLrd7bEwLswlQ.jpg"
59
+ },
60
+ {
61
+ "id": 7473,
62
+ "name": "Rachel Singer",
63
+ "character": "Chloe",
64
+ "order": 11,
65
+ "cast_id": 11,
66
+ "profile_path": null
67
+ },
68
+ {
69
+ "id": 7497,
70
+ "name": "Holt McCallany",
71
+ "character": "The Mechanic",
72
+ "order": 20,
73
+ "cast_id": 22,
74
+ "profile_path": "/hQBfcw9KVszdenlTZTR8AIrSpex.jpg"
75
+ },
76
+ {
77
+ "id": 7498,
78
+ "name": "Eion Bailey",
79
+ "character": "Ricky",
80
+ "order": 22,
81
+ "cast_id": 23,
82
+ "profile_path": "/4MnRgrwuiJvHsfoiJrIUL4TkfoC.jpg"
83
+ },
84
+ {
85
+ "id": 7499,
86
+ "name": "Jared Leto",
87
+ "character": "Angel Face",
88
+ "order": 23,
89
+ "cast_id": 24,
90
+ "profile_path": "/lzQSuu5o0JC9mCncYjVnncSH5lO.jpg"
91
+ },
92
+ {
93
+ "id": 7500,
94
+ "name": "Peter Iacangelo",
95
+ "character": "Lou",
96
+ "order": 24,
97
+ "cast_id": 25,
98
+ "profile_path": null
99
+ },
100
+ {
101
+ "id": 56112,
102
+ "name": "David Lee Smith",
103
+ "character": "Walter",
104
+ "order": 19,
105
+ "cast_id": 30,
106
+ "profile_path": "/xYkMA9AWtUN93KV5hWzlDkcnebB.jpg"
107
+ },
108
+ {
109
+ "id": 1129738,
110
+ "name": "George Maguire",
111
+ "character": "Group Leader",
112
+ "order": 7,
113
+ "cast_id": 31,
114
+ "profile_path": null
115
+ },
116
+ {
117
+ "id": 197790,
118
+ "name": "Eugenie Bondurant",
119
+ "character": "Weeping Woman",
120
+ "order": 8,
121
+ "cast_id": 32,
122
+ "profile_path": null
123
+ },
124
+ {
125
+ "id": 68277,
126
+ "name": "Christina Cabot",
127
+ "character": "Group Leader",
128
+ "order": 9,
129
+ "cast_id": 33,
130
+ "profile_path": "/7UBTv5lW6apPdVLnOqTTBMTJWwY.jpg"
131
+ },
132
+ {
133
+ "id": 202080,
134
+ "name": "Sydney 'Big Dawg' Colston",
135
+ "character": "Speaker",
136
+ "order": 10,
137
+ "cast_id": 34,
138
+ "profile_path": null
139
+ },
140
+ {
141
+ "id": 1172435,
142
+ "name": "Christie Cronenweth",
143
+ "character": "Airline Attendant",
144
+ "order": 12,
145
+ "cast_id": 35,
146
+ "profile_path": null
147
+ },
148
+ {
149
+ "id": 956719,
150
+ "name": "Tim De Zarn",
151
+ "character": "Inspector Bird",
152
+ "order": 13,
153
+ "cast_id": 36,
154
+ "profile_path": null
155
+ },
156
+ {
157
+ "id": 59285,
158
+ "name": "Ezra Buzzington",
159
+ "character": "Inspector Dent",
160
+ "order": 14,
161
+ "cast_id": 37,
162
+ "profile_path": "/dl0SIqpOqS05UpJHKuDQqZTwUvP.jpg"
163
+ },
164
+ {
165
+ "id": 1269622,
166
+ "name": "Dierdre Downing-Jackson",
167
+ "character": "Woman on Plane",
168
+ "order": 15,
169
+ "cast_id": 38,
170
+ "profile_path": null
171
+ },
172
+ {
173
+ "id": 543293,
174
+ "name": "Bob Stephenson",
175
+ "character": "Airport Security Officer (as Robert J. Stephenson)",
176
+ "order": 16,
177
+ "cast_id": 39,
178
+ "profile_path": "/iH86ZmoSGOCnWZ8aycavGdlu3ht.jpg"
179
+ },
180
+ {
181
+ "id": 62846,
182
+ "name": "Charlie Dell",
183
+ "character": "Doorman",
184
+ "order": 17,
185
+ "cast_id": 40,
186
+ "profile_path": "/z0JgZxazJAVlHxLYXWM8eUZlOk8.jpg"
187
+ },
188
+ {
189
+ "id": 530040,
190
+ "name": "Rob Lanza",
191
+ "character": "Man in Suit",
192
+ "order": 18,
193
+ "cast_id": 41,
194
+ "profile_path": null
195
+ },
196
+ {
197
+ "id": 137425,
198
+ "name": "Joel Bissonnette",
199
+ "character": "Food Court Maitre D'",
200
+ "order": 21,
201
+ "cast_id": 42,
202
+ "profile_path": null
203
+ },
204
+ {
205
+ "id": 175120,
206
+ "name": "Evan Mirand",
207
+ "character": "Steph",
208
+ "order": 25,
209
+ "cast_id": 43,
210
+ "profile_path": null
211
+ },
212
+ {
213
+ "id": 169636,
214
+ "name": "Robby Robinson",
215
+ "character": "Next Month's Opponent",
216
+ "order": 26,
217
+ "cast_id": 44,
218
+ "profile_path": null
219
+ },
220
+ {
221
+ "id": 168924,
222
+ "name": "Lou Beatty Jr.",
223
+ "character": "Cop at Marla's Building",
224
+ "order": 27,
225
+ "cast_id": 45,
226
+ "profile_path": null
227
+ },
228
+ {
229
+ "id": 1219497,
230
+ "name": "Thom Gossom Jr.",
231
+ "character": "Detective Stern",
232
+ "order": 28,
233
+ "cast_id": 46,
234
+ "profile_path": null
235
+ },
236
+ {
237
+ "id": 157938,
238
+ "name": "Valerie Bickford",
239
+ "character": "Susan, Cosmetics Dealer",
240
+ "order": 29,
241
+ "cast_id": 47,
242
+ "profile_path": null
243
+ },
244
+ {
245
+ "id": 42824,
246
+ "name": "Carl Ciarfalio",
247
+ "character": "Lou's Body Guard (as Carl N. Ciarfalio)",
248
+ "order": 30,
249
+ "cast_id": 48,
250
+ "profile_path": null
251
+ },
252
+ {
253
+ "id": 40277,
254
+ "name": "Stuart Blumberg",
255
+ "character": "Car Salesman",
256
+ "order": 31,
257
+ "cast_id": 49,
258
+ "profile_path": null
259
+ },
260
+ {
261
+ "id": 1270716,
262
+ "name": "Todd Peirce",
263
+ "character": "Man #1 at Auto Shop",
264
+ "order": 32,
265
+ "cast_id": 50,
266
+ "profile_path": null
267
+ },
268
+ {
269
+ "id": 122805,
270
+ "name": "Mark Fite",
271
+ "character": "Man #2 at Auto Shop",
272
+ "order": 33,
273
+ "cast_id": 51,
274
+ "profile_path": "/9On8A4VRctM8uuaJYE0KaLhDjcw.jpg"
275
+ },
276
+ {
277
+ "id": 35521,
278
+ "name": "Matt Winston",
279
+ "character": "Seminary Student",
280
+ "order": 34,
281
+ "cast_id": 52,
282
+ "profile_path": "/6hGcDyUaewBHdwfmKYp6EP7otRh.jpg"
283
+ },
284
+ {
285
+ "id": 1270720,
286
+ "name": "Joon Kim",
287
+ "character": "Raymond K. Hessel (as Joon B. Kim)",
288
+ "order": 35,
289
+ "cast_id": 53,
290
+ "profile_path": null
291
+ },
292
+ {
293
+ "id": 1010551,
294
+ "name": "Bennie Moore",
295
+ "character": "Bus Driver with Broken Nose (as Bennie E. Moore Jr.)",
296
+ "order": 36,
297
+ "cast_id": 54,
298
+ "profile_path": null
299
+ },
300
+ {
301
+ "id": 1224996,
302
+ "name": "Lauren Sánchez",
303
+ "character": "Channel 4 Reporter (as W. Lauren Sanchez)",
304
+ "order": 37,
305
+ "cast_id": 55,
306
+ "profile_path": null
307
+ },
308
+ {
309
+ "id": 1174793,
310
+ "name": "Pat McNamara",
311
+ "character": "Police Commissioner Jacobs",
312
+ "order": 38,
313
+ "cast_id": 56,
314
+ "profile_path": null
315
+ },
316
+ {
317
+ "id": 1270723,
318
+ "name": "Tyrone R. Livingston",
319
+ "character": "Banquet Speaker",
320
+ "order": 39,
321
+ "cast_id": 57,
322
+ "profile_path": null
323
+ },
324
+ {
325
+ "id": 1113343,
326
+ "name": "Owen Masterson",
327
+ "character": "Airport Valet",
328
+ "order": 40,
329
+ "cast_id": 58,
330
+ "profile_path": null
331
+ },
332
+ {
333
+ "id": 109100,
334
+ "name": "David Jean Thomas",
335
+ "character": "Policeman (as David Jean-Thomas)",
336
+ "order": 41,
337
+ "cast_id": 59,
338
+ "profile_path": null
339
+ },
340
+ {
341
+ "id": 160412,
342
+ "name": "Paul Carafotes",
343
+ "character": "Salvator, Winking Bartender",
344
+ "order": 42,
345
+ "cast_id": 60,
346
+ "profile_path": "/yFRANT8p0D4j4PJclkd1psi5a0J.jpg"
347
+ },
348
+ {
349
+ "id": 145531,
350
+ "name": "Christopher John Fields",
351
+ "character": "Proprietor of Dry Cleaners",
352
+ "order": 43,
353
+ "cast_id": 61,
354
+ "profile_path": "/jTWw4B74VhrPo8AN6Q9jq31eYDD.jpg"
355
+ },
356
+ {
357
+ "id": 182139,
358
+ "name": "Anderson Bourell",
359
+ "character": "Bruised Bar Patron #1",
360
+ "order": 44,
361
+ "cast_id": 62,
362
+ "profile_path": null
363
+ },
364
+ {
365
+ "id": 63537,
366
+ "name": "Scotch Ellis Loring",
367
+ "character": "Bruised Bar Patron #2",
368
+ "order": 45,
369
+ "cast_id": 63,
370
+ "profile_path": "/7Tk72GCd4TLfJj16EvVroEtMv86.jpg"
371
+ },
372
+ {
373
+ "id": 9291,
374
+ "name": "Michael Shamus Wiles",
375
+ "character": "Bartender in Halo",
376
+ "order": 46,
377
+ "cast_id": 64,
378
+ "profile_path": "/upfSW6BGze446iqsZRehzcToNm8.jpg"
379
+ },
380
+ {
381
+ "id": 170315,
382
+ "name": "Andi Carnick",
383
+ "character": "Hotel Desk Clerk",
384
+ "order": 47,
385
+ "cast_id": 65,
386
+ "profile_path": null
387
+ },
388
+ {
389
+ "id": 1270724,
390
+ "name": "Edward Kowalczyk",
391
+ "character": "Waiter at Clifton's",
392
+ "order": 48,
393
+ "cast_id": 66,
394
+ "profile_path": null
395
+ },
396
+ {
397
+ "id": 7140,
398
+ "name": "Leonard Termo",
399
+ "character": "Desk Sergeant",
400
+ "order": 49,
401
+ "cast_id": 67,
402
+ "profile_path": null
403
+ },
404
+ {
405
+ "id": 41352,
406
+ "name": "Van Quattro",
407
+ "character": "Detective Andrew",
408
+ "order": 50,
409
+ "cast_id": 68,
410
+ "profile_path": null
411
+ },
412
+ {
413
+ "id": 140476,
414
+ "name": "Markus Redmond",
415
+ "character": "Detective Kevin",
416
+ "order": 51,
417
+ "cast_id": 69,
418
+ "profile_path": null
419
+ },
420
+ {
421
+ "id": 177175,
422
+ "name": "Michael Girardin",
423
+ "character": "Detective Walker",
424
+ "order": 52,
425
+ "cast_id": 70,
426
+ "profile_path": null
427
+ },
428
+ {
429
+ "id": 74507,
430
+ "name": "Michael Arturo",
431
+ "character": "BMW Salesman (uncredited)",
432
+ "order": 53,
433
+ "cast_id": 71,
434
+ "profile_path": "/yMm3LVd8tm63B3e3DF415U5qRaI.jpg"
435
+ },
436
+ {
437
+ "id": 1194120,
438
+ "name": "Matt Cinquanta",
439
+ "character": "Fighter (uncredited)",
440
+ "order": 54,
441
+ "cast_id": 72,
442
+ "profile_path": null
443
+ },
444
+ {
445
+ "id": 1270725,
446
+ "name": "Tommy Dallace",
447
+ "character": "Champion Fighter (uncredited)",
448
+ "order": 55,
449
+ "cast_id": 73,
450
+ "profile_path": null
451
+ },
452
+ {
453
+ "id": 13925,
454
+ "name": "Paul Dillon",
455
+ "character": "Irvin (uncredited)",
456
+ "order": 56,
457
+ "cast_id": 74,
458
+ "profile_path": "/6jouXtMcbJ7nTuDNwvaePnqCHTX.jpg"
459
+ },
460
+ {
461
+ "id": 552271,
462
+ "name": "Eddie Hargitay",
463
+ "character": "Chanting Fighter (uncredited)",
464
+ "order": 57,
465
+ "cast_id": 75,
466
+ "profile_path": null
467
+ },
468
+ {
469
+ "id": 94561,
470
+ "name": "Phil Hawn",
471
+ "character": "Banquet Guest (uncredited)",
472
+ "order": 58,
473
+ "cast_id": 76,
474
+ "profile_path": null
475
+ },
476
+ {
477
+ "id": 1270726,
478
+ "name": "Jawara",
479
+ "character": "Fight Patron Saying 'What's going on?' (uncredited)",
480
+ "order": 59,
481
+ "cast_id": 77,
482
+ "profile_path": null
483
+ },
484
+ {
485
+ "id": 207609,
486
+ "name": "Baron Jay",
487
+ "character": "Waiter (uncredited)",
488
+ "order": 60,
489
+ "cast_id": 78,
490
+ "profile_path": null
491
+ },
492
+ {
493
+ "id": 154636,
494
+ "name": "Jim Jenkins",
495
+ "character": "Restaurant Maitre'd (uncredited)",
496
+ "order": 61,
497
+ "cast_id": 79,
498
+ "profile_path": null
499
+ },
500
+ {
501
+ "id": 1270727,
502
+ "name": "Kevin Scott Mack",
503
+ "character": "Passenger Clutching Armrest (uncredited)",
504
+ "order": 62,
505
+ "cast_id": 80,
506
+ "profile_path": null
507
+ },
508
+ {
509
+ "id": 1270728,
510
+ "name": "Trey Ore",
511
+ "character": "Fight Club Patron / Guy #2 in video store (uncredited)",
512
+ "order": 63,
513
+ "cast_id": 81,
514
+ "profile_path": null
515
+ },
516
+ {
517
+ "id": 1270729,
518
+ "name": "Louis Ortiz",
519
+ "character": "Fight Spectator (uncredited)",
520
+ "order": 64,
521
+ "cast_id": 82,
522
+ "profile_path": null
523
+ },
524
+ {
525
+ "id": 1270730,
526
+ "name": "Hugh Peddy",
527
+ "character": "Fight Club Man (uncredited)",
528
+ "order": 65,
529
+ "cast_id": 83,
530
+ "profile_path": null
531
+ },
532
+ {
533
+ "id": 1270731,
534
+ "name": "J.T. Pontino",
535
+ "character": "Fight Club Man (uncredited)",
536
+ "order": 66,
537
+ "cast_id": 84,
538
+ "profile_path": null
539
+ },
540
+ {
541
+ "id": 1270732,
542
+ "name": "Chad Randau",
543
+ "character": "Waiter (uncredited)",
544
+ "order": 67,
545
+ "cast_id": 85,
546
+ "profile_path": null
547
+ },
548
+ {
549
+ "id": 133153,
550
+ "name": "Marcio Rosario",
551
+ "character": "Fighter (uncredited)",
552
+ "order": 68,
553
+ "cast_id": 86,
554
+ "profile_path": null
555
+ },
556
+ {
557
+ "id": 962235,
558
+ "name": "Gregory Silva",
559
+ "character": "Riley Wilde, Fighter (uncredited)",
560
+ "order": 69,
561
+ "cast_id": 87,
562
+ "profile_path": null
563
+ },
564
+ {
565
+ "id": 16060,
566
+ "name": "Brian Tochi",
567
+ "character": "Fight Bully (uncredited)",
568
+ "order": 70,
569
+ "cast_id": 88,
570
+ "profile_path": "/2nAC2ssCFu74zkhg1722WQhArGO.jpg"
571
+ },
572
+ {
573
+ "id": 1270733,
574
+ "name": "Alekxia Valdez",
575
+ "character": "Bar Worker saying \"His name is Robert Paulsen\" (uncredited)",
576
+ "order": 71,
577
+ "cast_id": 89,
578
+ "profile_path": null
579
+ }
580
+ ],
581
+ "crew": [
582
+ {
583
+ "id": 7469,
584
+ "name": "Jim Uhls",
585
+ "department": "Writing",
586
+ "job": "Author",
587
+ "profile_path": null
588
+ },
589
+ {
590
+ "id": 7474,
591
+ "name": "Ross Grayson Bell",
592
+ "department": "Production",
593
+ "job": "Producer",
594
+ "profile_path": null
595
+ },
596
+ {
597
+ "id": 7475,
598
+ "name": "Ceán Chaffin",
599
+ "department": "Production",
600
+ "job": "Producer",
601
+ "profile_path": null
602
+ },
603
+ {
604
+ "id": 1254,
605
+ "name": "Art Linson",
606
+ "department": "Production",
607
+ "job": "Producer",
608
+ "profile_path": "/dEtVivCXxQBtIzmJcUNupT1AB4H.jpg"
609
+ },
610
+ {
611
+ "id": 7477,
612
+ "name": "John King",
613
+ "department": "Sound",
614
+ "job": "Original Music Composer",
615
+ "profile_path": null
616
+ },
617
+ {
618
+ "id": 7478,
619
+ "name": "Michael Simpson",
620
+ "department": "Sound",
621
+ "job": "Original Music Composer",
622
+ "profile_path": null
623
+ },
624
+ {
625
+ "id": 7479,
626
+ "name": "Jeff Cronenweth",
627
+ "department": "Camera",
628
+ "job": "Director of Photography",
629
+ "profile_path": null
630
+ },
631
+ {
632
+ "id": 7480,
633
+ "name": "James Haygood",
634
+ "department": "Editing",
635
+ "job": "Editor",
636
+ "profile_path": null
637
+ },
638
+ {
639
+ "id": 7481,
640
+ "name": "Laray Mayfield",
641
+ "department": "Production",
642
+ "job": "Casting",
643
+ "profile_path": null
644
+ },
645
+ {
646
+ "id": 1303,
647
+ "name": "Alex McDowell",
648
+ "department": "Art",
649
+ "job": "Production Design",
650
+ "profile_path": null
651
+ },
652
+ {
653
+ "id": 7763,
654
+ "name": "Ren Klyce",
655
+ "department": "Sound",
656
+ "job": "Sound Editor",
657
+ "profile_path": null
658
+ },
659
+ {
660
+ "id": 7764,
661
+ "name": "Richard Hymns",
662
+ "department": "Sound",
663
+ "job": "Sound Editor",
664
+ "profile_path": null
665
+ },
666
+ {
667
+ "id": 7467,
668
+ "name": "David Fincher",
669
+ "department": "Directing",
670
+ "job": "Director",
671
+ "profile_path": "/dcBHejOsKvzVZVozWJAPzYthb8X.jpg"
672
+ },
673
+ {
674
+ "id": 7468,
675
+ "name": "Chuck Palahniuk",
676
+ "department": "Writing",
677
+ "job": "Novel",
678
+ "profile_path": "/8nOJDJ6SqwV2h7PjdLBDTvIxXvx.jpg"
679
+ }
680
+ ]
681
+ }