Sprijin Bază de date filme (The Movie Database)

I was looking at the movie changes API, with the URL pattern, for example, http://api.themoviedb.org/3/movie/267860/changes?api_key=&startdate=2016-05-30&enddate=2016-06-10. I have some questions. In the images key for example, this image file name is repeated thrice : T2ckqPYnro521KCv7Xfn5FfOvI.jpg

One is for deleting and replacing by a new one, and one is for adding. What does this mean? Does this mean that the image file name is the same, only the image has been replaced? If so, why it is present in the "Added" section as well?

Secondly, for a certain movie (id 136984), I saw a change key as this:

"key":"adult", "items":[ { "id":"507436ef19c2957f2700005c", "action":"updated", "time":"2012-10-09 14:38:39 UTC", "value":false } ]

Shouldn't there be an "old value" key as well, which shows what the previous value was?

3rdly, when there are changes in cast and crew, how will the update look like? Can the person's name itself change? If so, will it come under movie/changes or person/changes? Basically I could not find one example where crew or cast is updated. All examples had these keys as "added". So I want to know how an update to crew or cast for a movie will look like, where for example, some crew information is updated or deleted.

The documentation on changes is not very clear and there are lots of assumptions to be made, so I think it is better if someone can clarify it.

8 răspunsuri (pe pagina 1 din 1)

Jump to last post

I think some of this might be easier to understand by looking at the website: https://www.themoviedb.org/movie/267860-london-has-fallen/changes

The image 2MORPerZU0zYgi915PLsuHBDTT9.jpg for example, was added then had it's language updated.

Re: adult, since it's a boolean, it's always going to be false by default. Updated to true or vice versa.

Cast and crew are only added and deleted although on the credit record character names can be updated. With regards to person changes themselves, they happen on the person object, not the movie object.

Thanks Travis. However, the JSON structure of the response is still not clear. Is there any documentation on all possible keys that can be present in a change list JSON response? It looks like it will be trivial, since the keys are supposed to be the same in movie/id/changes as those found in the JSON response for movie/id, but in the example page for example, there is a key "character_names", which I have no way of knowing.

One example - in the example provided at http://docs.themoviedb.apiary.io/#reference/movies/movieidchanges/get, for the "adult" key, it shows only update, whereas for the "overview" key it shows first delete and then add. What is the difference between these two scenarios?

Any update? Sorry for badgering, but the change API is not well documented in my opinion, and without understanding completely how it works, I won't be able to set automation tasks which periodically updates the database, which would mean that my entire project will sink. :(

You can grab the list of change keys from the /configuration method.

Re: your question about the overview, it's probably best to look at the actual responses, they documentation looks out of date. As far as I recall, there won't be a "deleted" action on any overviews. Those are always a "added" (the initial input since there's no original value) or a "updated" (with both the original and new value) action.

An example would be: https://api.themoviedb.org/3/movie/258489/changes?api_key=###&start_date=2016-07-03

Cool. So basically there should be no scenario where I see a "deleted" and an "added", right?

That should be correct. You would see a "deleted" if there's no new data that was input (it was cleared out), but the event of replacing an overview, it should be "updated".

Yeah, exactly.. Thanks a lot, Travis!

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