The Movie Database atbalsts

I happened to notice that for some queries the API is returning conflicting numbers of results, total_results is sometimes higher than the actual number of results, as an example, querying for 'Kung Fu Panda' returns:

{ "page": 1 "results": { "0": { "adult": "false" "backdrop_path": "/UJwhgwAxU42cm9XKncO9boFAEV.jpg" "id": 9502 "original_title": "Kung Fu Panda" "release_date": "2008-06-05" "poster_path": "/kShWOYf66HOuHTuCdIULgW4D60S.jpg" "popularity": 6.76111832255882 "title": "Kung Fu Panda" "vote_average": 6.4 "vote_count": 878 } "1": { "adult": "false" "backdrop_path": "null" "id": 152404 "original_title": "Kung Fu Panda: Po's Winter Wonderland" "release_date": "2010-11-15" "poster_path": "/3gxajJRugsFObstuWZPakdlGr66.jpg" "popularity": 0.23 "title": "Kung Fu Panda: Po's Winter Wonderland" "vote_average": 5 "vote_count": 2 } "2": { "adult": "false" "backdrop_path": "/eyiE1vuizMKVu8MoZkg2xsramFl.jpg" "id": 49444 "original_title": "Kung Fu Panda 2" "release_date": "2011-05-25" "poster_path": "/fTztLcGmOe7BzPbJzRaHXdEI2WG.jpg" "popularity": 5.99808764571379 "title": "Kung Fu Panda 2" "vote_average": 6.4 "vote_count": 476 } "3": { "adult": "false" "backdrop_path": "/a14RyRGC3kz7YeQtvphuYMtou9v.jpg" "id": 50393 "original_title": "Kung Fu Panda Holiday" "release_date": "2010-11-26" "poster_path": "/gp18R42TbSUlw9VnXFqyecm52lq.jpg" "popularity": 1.92774344266228 "title": "Kung Fu Panda Holiday" "vote_average": 7.7 "vote_count": 5 } "4": { "adult": "false" "backdrop_path": "null" "id": 140300 "original_title": "Kung Fu Panda 3" "release_date": "2015-12-23" "poster_path": "null" "popularity": 0.9384 "title": "Kung Fu Panda 3" "vote_average": 0 "vote_count": 0 } "5": { "adult": "false" "backdrop_path": "/hrjeL2XpS5NeFc1hdmJ8DkCPdBM.jpg" "id": 81003 "original_title": "Kung Fu Panda: Secrets of the Masters" "release_date": "2011-12-12" "poster_path": "/lNMQQaU2UVYprlhuFocavx0ICCL.jpg" "popularity": 1.69357630174051 "title": "Kung Fu Panda: Secrets of the Masters" "vote_average": 5.6 "vote_count": 5 } "6": { "adult": "false" "backdrop_path": "/51xNCEVTIVNdq1q3p8y16je8DZT.jpg" "id": 15854 "original_title": "Kung Fu Panda: Secrets of the Furious Five" "release_date": "2008-11-08" "poster_path": "/1K82HieXcMZIQjaYel9cTyzsG9g.jpg" "popularity": 1.53370978896539 "title": "Kung Fu Panda: Secrets of the Furious Five" "vote_average": 7.1 "vote_count": 12 } } "total_pages": 1 "total_results": 8 }

Seems to be either a missing result, or an off-by-one in calculating total_results, I'm guessing that this is a bug somewhere along the line.

1 reply (on page 1 of 1)

Jump to last post

This is being caused by some stale items in our Solr index. I've created a new ticket for this and will look at it when I get some time.

Cheers.

Nevari atrast filmu vai TV pārraidi? Jāpiesakās, lai to izveidotu.

Vispārējs

s fokusēties uz meklēšanas joslu
p atvērt profila izvēlni
esc aizvērt atvērtu logu
? atvērt īsinājumtaustiņu logu

Informācijas nesēju lapās

b atgriezties (vai pie vecākiem, ja nepieciešams)
e doties uz labošanas lapu

TV sezonas lapās

(labā bultiņa) pāriet uz nākamo sezonu
(kreisā bultiņa) pāriet uz iepriekšējo sezonu

TV sērijas lapās

(labā bultiņa) pāriet uz nākamo sēriju
(kreisā bultiņa) pāriet uz iepriekšējo sēriju

Visās attēlu lapās

a atvērt attēla pievienošanas logu

Visās labošanas lapās

t atvērt tulkošanas atlasītāju
ctrl+ s iesniegt veidlapu

Diskusiju lapās

n radīt jaunu diskusiju
w pārslēgt skatīšanās stāvokli
p pārslēgt publisko/privāto
c pārslēgt aizvērt/atvērt
a atklāta darbība
r atbilde uz diskusiju
l doties uz pēdējo atbildi
ctrl+ enter iesniegt savu ziņojumu
(labā bultiņa) nākamajā lapā
(kreisā bultiņa) iepriekšējā lapa

Iestatījumi

Vēlies novērtēt šo vienumu vai pievienot to sarakstam?

Pieteikties