The Movie Database Support

Hi guys,

in my application, I'm aiming to make the collection of movies with the total number of elements specified at the same beginning. It would mean that I need a reliable "total_results" field and paging requests.

However, I find the paging responses very unstable.

Let's check out an example of the "https://api.themoviedb.org/3/movie/now_playing?page=1&language=en"

Performing the same request one after another gives us the responses like:

"total_results":687,"dates":{"maximum":"2017-07-19","minimum":"2017-06-07"},"total_pages":35}
"total_results":686,"dates":{"maximum":"2017-07-19","minimum":"2017-06-07"},"total_pages":35}
"total_results":699,"dates":{"maximum":"2017-07-13","minimum":"2017-06-01"},"total_pages":35}
"total_results":686,"dates":{"maximum":"2017-07-19","minimum":"2017-06-07"},"total_pages":35}
"total_results":686,"dates":{"maximum":"2017-07-19","minimum":"2017-06-07"},"total_pages":35}
"total_results":686,"dates":{"maximum":"2017-07-19","minimum":"2017-06-07"},"total_pages":35}
"total_results":686,"dates":{"maximum":"2017-07-19","minimum":"2017-06-07"},"total_pages":35}
"total_results":686,"dates":{"maximum":"2017-07-19","minimum":"2017-06-07"},"total_pages":35}
"total_results":693,"dates":{"maximum":"2017-07-14","minimum":"2017-06-02"},"total_pages":35}
"total_results":693,"dates":{"maximum":"2017-07-14","minimum":"2017-06-02"},"total_pages":35}

Basically, a problem lies in a range of dates. It cannot be specified in the request and it's not deterministic which ones are picked.

The problem that rises here is that I cannot rely on the "total_results" received in the page=1 request in order to prepare a whole collection. Moreover, I also need to filter out the results to have them all unique (e.g. it always happen to me that after going through all the 35 pages, I need to filter out dozens of movies because they were actually fetched in one of the previous pages).

My desired result would be to have a deterministic "total_results" field and all results unique (I think this one would be achieved implicitly if I would have all the page responses with the same minimum and maximum date) :)

Is it a known issue or maybe I'm missing anything here? :)

Great thanks for your help!

Best regards

3 replies (on page 1 of 1)

Jump to last post

Yes, the flip flopping dates is a known bug. I haven't found time to fix it yet but it's on my radar.

Sure, thanks for the quick response. I'll greatly appreciate a fix for this issue ;) I'll handle it on the frontend side for now.

I believe this is still not fixed. And not sure what the workaround could be. At any given time there will be duplicated and missing movies, when they are swapped between pages, but one of the pages returns the cached version. The only solution I can imagine is the coordinated update of the pages. Or is there anything else I could do?

Can't find a movie or TV show? Login to create it.

Global

s focus the search bar
p open profile menu
esc close an open window
? open keyboard shortcut window

On media pages

b go back (or to parent when applicable)
e go to edit page

On TV season pages

(right arrow) go to next season
(left arrow) go to previous season

On TV episode pages

(right arrow) go to next episode
(left arrow) go to previous episode

On all image pages

a open add image window

On all edit pages

t open translation selector
ctrl+ s submit form

On discussion pages

n create new discussion
w toggle watching status
p toggle public/private
c toggle close/open
a open activity
r reply to discussion
l go to last reply
ctrl+ enter submit your message
(right arrow) next page
(left arrow) previous page

Settings

Want to rate or add this item to a list?

Login