tmdb search endpoint returns object twice, not object and object length. #30
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.