tmdb search endpoint returns object twice, not object and object length. #30

Closed
opened 2017-09-20 09:56:02 +00:00 by KevinMidboe · 0 comments
KevinMidboe commented 2017-09-20 09:56:02 +00:00 (Migrated from github.com)

When getting https://apollo.kevinmidboe.com/api/v1/tmdb/search?query=baby%20driver we get:

{
"number_of_items_on_page": [
{
"background": "/goCvLSUFz0p7k8R10Hv4CVh3EQv.jpg",
"genre": [
28,
80
],
"id": 339403,
"matchedInPlex": false,
"popularity": 131.392861,
"poster": "/dN9LbVNNZFITwfaRjl4tmwGWkRg.jpg",
"rating": 7.2,
"summary": "After being coerced into working for a crime boss, a young getaway driver finds himself taking part in a heist doomed to fail.",
"title": "Baby Driver",
"type": "movie",
"vote_count": 1504,
"year": 2017
}
],
"page": 1,
"results": [
{
"background": "/goCvLSUFz0p7k8R10Hv4CVh3EQv.jpg",
"genre": [
28,
80
],
"id": 339403,
"matchedInPlex": false,
"popularity": 131.392861,
"poster": "/dN9LbVNNZFITwfaRjl4tmwGWkRg.jpg",
"rating": 7.2,
"summary": "After being coerced into working for a crime boss, a young getaway driver finds himself taking part in a heist doomed to fail.",
"title": "Baby Driver",
"type": "movie",
"vote_count": 1504,
"year": 2017
}
],
"total_pages": 1
}

Where number_of_items_on_page should be the length of result, not a duplicate.

When getting https://apollo.kevinmidboe.com/api/v1/tmdb/search?query=baby%20driver we get: { "number_of_items_on_page": [ { "background": "/goCvLSUFz0p7k8R10Hv4CVh3EQv.jpg", "genre": [ 28, 80 ], "id": 339403, "matchedInPlex": false, "popularity": 131.392861, "poster": "/dN9LbVNNZFITwfaRjl4tmwGWkRg.jpg", "rating": 7.2, "summary": "After being coerced into working for a crime boss, a young getaway driver finds himself taking part in a heist doomed to fail.", "title": "Baby Driver", "type": "movie", "vote_count": 1504, "year": 2017 } ], "page": 1, "results": [ { "background": "/goCvLSUFz0p7k8R10Hv4CVh3EQv.jpg", "genre": [ 28, 80 ], "id": 339403, "matchedInPlex": false, "popularity": 131.392861, "poster": "/dN9LbVNNZFITwfaRjl4tmwGWkRg.jpg", "rating": 7.2, "summary": "After being coerced into working for a crime boss, a young getaway driver finds himself taking part in a heist doomed to fail.", "title": "Baby Driver", "type": "movie", "vote_count": 1504, "year": 2017 } ], "total_pages": 1 } Where number_of_items_on_page should be the length of result, not a duplicate.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: KevinMidboe/seasonedShows#30