The Movie Database atbalsts

I am retrieving all results sorting by popularity using the discover movie end for each page and concatenating them for all pages in subsequent order like this:

allResults += response.json()['results'] 

However, when I look at

allResults

the ordering is not quite respected. It is for the most part, but then I see a 2.0 after a 0.6, and similar instances. What could be the cause of this? Thanks.

2 replies (on page 1 of 1)

Jump to last post

The objects returned on lists like discover and search are cached and when it comes to popularity, only refreshed once a day. Other events can however trigger items to get refreshed in the discover service and that happens outside of what data is actually returned in the response.

Short(er) reply, we make no guarantees that the data returned is 100% fresh and in sync. This is just the nature of the service given there is multiple layers of cached data being returned.

Thanks, that makes sense. I can sort the values a posteriori.

Vai nevarat atrast filmu vai TV pārraidi? Piesakieties, lai to izveidotu.

Vispārējs

s fokusējiet meklēšanas joslu
p atveriet profila izvēlni
esc aizveriet atvērtu logu
? atveriet īsinājumtaustiņu logu

Mediju lapās

b atgriezties (vai pie vecākiem, ja nepieciešams)
e dodieties uz rediģēšanas lapu

TV sezonas lappusēs

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

TV epizodes lappusē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 atveriet attēla pievienošanas logu

Visās rediģēšanas lapās

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

Diskusiju lapās

n radīt jaunu diskusiju
w pārslēgt skatīšanās statusu
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 dodieties uz pēdējo atbildi
ctrl+ enter iesniedziet savu ziņojumu
(labā bultiņa) nākamajā lapā
(kreisā bultiņa) iepriekšējā lapa

Iestatījumi

Vai vēlaties novērtēt vai uzskaitīt šo vienumu?

Pieslēgties