https://api.themoviedb.org/3/discover/movie?api_key={API_KEY}&language=en-US®ion=US&sort_by=release_date.asc&include_adult=false&include_video=false&page=1&release_date.gte=2019-11-17&release_date.lte=2019-12-17&with_release_type=3
I really wish this would actually return the correct order of movies based on the release type. I understand movies have all different releases, but the fact that in this call I am specifying the release type and asking it to be sorted by release type and I get an order of movies all out of order because its looking at what I can only guess is another release type release date.
Only solutions I've came up with so far, for this issue is to to make smaller release window calls (so all movies fit on a single page), or to call all pages (one after another) then manually sort the data, but those additional calls don't always succeed.
Не можеш да нађеш филм или серију? Пријави се да додаш.
Желите ли да оцените или додате ову ставку у листу?
Нисте члан?
Одговор од ticao2 🇧🇷 pt-BR
дана 18. новембар 2019. у 2:53 PM
I didn't quite understand what the problem is.
I believe Google Translate didn't work correctly.
But...
Maybe if you use primary_release_date the result is what you want.
Одговор од brianminor
дана 20. новембар 2019. у 1:55 PM
no both result in the movies being in the wrong order.
if you try (with a valid api key):
https://api.themoviedb.org/3/discover/movie?api_key={API_KEY}&language=en-US-US®ion=US&sort_by=release_date.asc&include_adult=false&include_video=false&page=1&release_date.gte=2019-11-17&release_date.lte=2019-12-17&with_release_type=3
You can quickly see the order by release dates is not looking at the release_type to order the releases. It is going by the premiere date, which for some movies can be multiple weeks before they major public release.
Одговор од Travis Bell
дана 20. новембар 2019. у 2:54 PM
Hi @brianminor,
I think I know why this is happening. I don't have time to look into this right away but I've created a ticket for it here.
Одговор од brianminor
дана 07. децембар 2019. у 10:19 AM
Awesome thanks, this has definitely been the biggest hurdle Ive had with the API, right now I am just calling all the pages of movies for an entire year at a time and manually displaying the order. Biggest issue with that is so many unneeded calls for some users and sometimes calls fail and I have to setups check and do recalls.
Одговор од Travis Bell
дана 03. април 2020. у 1:50 PM
Hey Brian,
I think I just corrected this. How's it look for you?
Одговор од brianminor
дана 21. мај 2020. у 9:55 AM
Travis,
Sorry for the delay and thanks so much this is working perfectly cant wait to get an update of my app out with it included.