Podpora The Movie Database

Just wondering how unique the poster_path value is between different records in the database. I am considering making the local cache just put all the files (using the poster path as the filename sans illegal characters) in a single directory. Since the largest cache I am expecting here will probably be a few thousand at most I probably should not be too worried. Essentially I am just wanting to make sure that poster x is not displayed for movie y and if two posters in the system get the same poster path (but different overall access URLS) then my local cache could fail and I am wondering if there are steps taken on the API side to ensure that the poster_path value is 100% unique for all posters in the system.

Thanks in advance.

2 replies (on page 1 of 1)

Jump to last post

I do not code for ThemovieDb. But in all the time I have used it which is some many years now the Poster_Path is different for every film. I have not hit a film with the same URL string yet (don't think i will.).

What I would recommend doing is writing a update script that checks the update page for any image that are up dates as it does happen and then clear the old image out or just keep the old one and update your meta data for the new unique URL string.

I am sure Travis confirm this for you.

Dale.

Hi wizengamot,

We do validate file uniqueness per movie but there's two things to mention:

  1. It's only validated within it's own object meaning if the same image was uploaded to another movie and/or object (person, movie collection, TV show) it would be the same path.
  2. The file paths are generated via a number of things but it all starts with the sha1 of the converted file on our server.

Because of these issues, you'll find that even when images are removed from an object, the image stays online. Having said all of this though, we make no guarantees each image file path is unique to the particular collection you're referencing, only the individual object.

Cheers.

Ne najdete filma ali serije? Prijavite se, da ga/jo ustvarite.

Povsod

s aktiviraj iskalno vrstico
p odpri meni profila
esc zapri odprto okno
? odpri okno za bližnjice

Na predstavnostnih straneh

b pojdi nazaj (ali na starša, kjer je smiselno)
e pojdi na urejanje strani

Na straneh sezon serij

(desna puščica) pojdi na naslednjo sezono
(leva puščica) pojdi na prejšnjo sezono

Na straneh epizod serij

(desna puščica) pojdi na naslednjo epizodo
(leva puščica) pojdi na prejšnjo epizodo

Na vseh slikovnih straneh

a odpri okno za dodajanje slike

Na vseh urejevalnih straneh

t odpri izbirnik prevodov
ctrl+ s pošlji obrazec

Na straneh za razpravo

n ustvari novo razpravo
w preklopi gledalski status
p preklopi javno/zasebno
c preklopi zaprto/odprto
a odpri aktivnost
r odgovori na razpravo
l pojdi na zadnji odgovor
ctrl+ enter objavi sporočilo
(desna puščica) naslednja stran
(leva puščica) prejšnja stran

Settings

Want to rate or add this item to a list?

Prijava