Sprijin Bază de date filme (The Movie Database)

Hi guys, thanks for your amazing work. The endpoint upcoming is returning old data, I know release date is different for each country, but i'm getting like film 50 years old, or 25 years old, or from the last year. I leave a LINK to show to you the log (title is title|originaltitle and date is releasedate).

I know I could use the discover endpoint, but it's a bit more tricky. Thanks.

6 răspunsuri (pe pagina 1 din 1)

Jump to last post

I checked the first 5 of these movies and they appear correct :

The upcoming endpoint check all the release dates listed for each movie.

thanks for the reply, so if I'd like to get the first 20 upcoming movie in US, which original release date (mean no re-release or something similar) is bigger then today, how to do it? I'm pretty confused

You need to use discover

  • either with check on the primary_release_date to only check the first release date
  • or a region parameter and with check on the release_date to only check on all the dates in a specific region.

I'm not sure that you can combine the 2.

@c-gian said:
upcoming endpoint return film really old
Hi guys, thanks for your amazing work.
The endpoint upcoming is returning old data,
I know release date is different for each country, but i'm getting like film 50 years old, or 25 years old, or from the last year.
I leave a LINK to show to you the log (title is title|originaltitle and date is releasedate).
I know I could use the discover endpoint, but it's a bit more tricky.
Thanks.

and

thanks for the reply,
so if I'd like to get the first 20 upcoming movie in US,
which original release date (mean no re-release or something similar) is bigger then today,
how to do it? I'm pretty confused

I think you didn't specify the Region value.
Try this:

https://api.themoviedb.org/3/movie/upcoming?language=en-US&page=1&region=US  

This should eliminate movies released in other countries.
But it won't eliminate re-releases in your country, US.
To eliminate re-releases, just use Discover with the &with_release_type= filter.
I think with parameters 3|2
&with_release_type=3|2

*Movie Release Type* (with_release_type string)
ID  Release Type
1   Premiere
2   Theatrical (limited)
3   Theatrical
4   Digital
5   Physical
6   TV

It's important to note the order of the release types that are used.
Specifying 2|3 would return the limited theatrical release date as opposed to 3|2 which would return the theatrical date.

@ticao2 said:

To eliminate re-releases, just use Discover with the &with_release_type= filter.
I think with parameters 3|2
&with_release_type=3|2

This will not eliminate theatrical re-release like the Wicked case in its original list of movies.

@superboy97 said:

@ticao2 said:

To eliminate re-releases, just use Discover with the &with_release_type= filter.
I think with parameters 3|2
&with_release_type=3|2

This will not eliminate theatrical re-release like the Wicked case in its original list of movies.

Yes.
We do not have a separate re-release from a release.
I also don't know if using the &year filter, or delimiting the time using &primary_release_date.gte and &primary_release_date.lte can solve the problem.
Only the user can find out by testing.


EDIT
Maybe in Wicked's case it will work.
The re-release is as 2 Theatrical (limited)
So it should get 3 Theatrical

Nu găsiți un film sau un serial? Autentificați-vă pentru a-l crea.

Globale

s focalizează bara de căutare
p deschide meniul profilului
esc închide o fereastră deschisă
? deschide fereastra cu scurtături de la tastatură

Pe paginile media

b mergi înapoi (sau la părinte atunci când este cazul)
e mergi la pagina de editare

Pe paginile sezoanelor filmelor seriale

(săgeată dreapta) mergi la sezonul următor
(săgeată stânga) mergi la sezonul precedent

Pe paginile episoadelor filmelor seriale

(săgeată dreapta) mergi la episodul următor
(săgeată stânga) mergi la episodul precedent

Pe toate paginile de imagini

a deschide fereastra pentru adăugarea de imagini

Pe toate paginile de editare

t deschide selectorul de traduceri
ctrl+ s trimite formularul

Pe paginile de discuții

n crează o discuție nouă
w comută starea de vizionare
p comută publică/privată
c comută închisă/deschisă
a deschide activitatea
r răspunde la discuție
l mergi la ultimul răspuns
ctrl+ enter trimite mesajul
(săgeată dreapta) pagina următoare
(săgeată stânga) pagina precedentă

Setări

Doriți să evaluați sau să adăugați acest articol într-o listă?

Autentificare