The Movie Database Подршка

https://api.themoviedb.org/3/discover/movie?api_key={API_KEY}&language=en-US&region=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.

6 одговора (на страни 1 од 1)

Jump to last post

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.

@ticao2 said:

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.

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&region=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.

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.

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.

Hey Brian,

I think I just corrected this. How's it look for you?

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.

Не можеш да нађеш филм или серију? Пријави се да додаш.

Глобално

s фокусирај траку за претрагу
p отворите мени профила
esc затворити отворени прозор
? отвори прозор пречице на тастатури

На страницама медија

b вратити се назад (или родитељу кад је то применљиво)
e иди на страницу за уређивање

На страницама ТВ сезона

(стрелица надесно) пређите на следећу сезону
(лева стрелица) иди на претходну сезону

На страницама ТВ епизода

(стрелица надесно) пређите на следећу епизоду
(лева стрелица) иди на претходну епизоду

На свим страницама са сликама

a отвори прозор за додавање слике

На свим страницама за уређивање

t отвори селектор превода
ctrl+ s пошаљи образац

На страницама за дискусију

n отвори нову дискусију
w мења статус гледања
p мења јавно/приватно
c мења отвори/затвори
a отвори активност
r одговор на дискусију
l иди на последњи одговор
ctrl+ enter пошаљи поруку
(стрелица надесно) следећа страница
(лева стрелица) претходна страница

Подешавања

Желите ли да оцените или додате ову ставку у листу?

Пријави се