The Movie Database-ondersteuning

Hi. I was just curious as to what that maximum numerical value of a movie ID actually is.

When my application ("Movie Manager") edits metadata, it offers an opportunity for users to manually edit the various metadata fields first, including the appropriate MovieDB ID for a particular movie. The Editing window allows users the search for and download the appropriate metadata for movies from MovieDB. But a function also exists to completely bypass the "Search MovieDB" by downloading the metadata directly using a known MovieDB ID.

Currently, the text entry field for the ID accepts numbers only, and has a range of 0 - 999999. Does the MovieDB ID fit within this range?

5 antwoorde (op blad 1 van 1)

Jump to last post

That number seems low to me, only 1 million IDs? surely there are more entries than that. My guess that it is at least a 31/32 bit number (2/4 billion).

I know 999999 movie IDs does seem low, but it is a number that I have arbitrarily chosen for use in my "Movie Manager" when editing movie meta data. This is why I asked about what the maximum numerical value is for a MovieDB ID, so that I can set the editor control to be able to accept maximum values larger than 999999, or to whatever the accepted maximum might be.

Using a full 32-bit number as max (‭4,294,967,295‬) seemed like a bit much. There is no relation between MovieDB ID numbers and IMDB IDs (which use 7 digits, excluding "tt"), so I had to make my own choices, as the MovieDB API Documentation does not make any references to the maximum values allowed for a Movie ID...

The /movie/latest method holds the id of the latest movie which at the time of me writing this is currently sitting at 373816.

The field in our own DB is a 32-bit integer field.

Thanks Travis, having some "insider information" does make things a little clearer.

So I think for practical purposes, I'll increase the maximum that my own application can use to 16777215 (24 bit), which I think should safely cover all the possibilities? I do not believe that there are even that many movies in existence, or that there would be within my lifetime.

Merry Christmas to you and all your colleagues!

I would think that would be fine, yes.

Thanks and a happy holidays to you too!

Kan ’n rolprent of TV-program nie vind nie? Teken aan om dit te skep.

Globaal

s fokus op soekbalk
p open profielkieslys
esc sluit ’n oop venster
? open sneltoetsvenster

Op mediablaaie

b gaan terug (na ouer waar van toepassing)
e gaan na wysigblad

Op TV-seisoenblaaie

(regterpyl) gaan na volgende seisoen
(linkerpyl) gaan na vorige seisoen

Op TV-episodeblaaie

(regterpyl) gaan na volgende episode
(linkerpyl) gaan na vorige episode

Op alle beeldblaaie

a open beeldtoevoegvenster

Op alle wysigingsblaaie

t open vertaalkieser
ctrl+ s dien form in

Op besprekingsblaaie

n skep nuwe bespreking
w tokkel kykstatus
p tokkel openbaar/privaat
c tokkel maak oop/toe
a open aktiwiteit
r reageer op bespreking
l gaan na laaste reaksie
ctrl+ enter dien u boodskap in
(regterpyl) volgende blad
(linkerpyl) vorige blad

Instellings

Wil u hierdie item gradeer of tot ’n lys toevoeg?

Teken aan