The Movie Database Support

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.

Can't find a movie or TV show? Login to create it.

Global

s focus the search bar
p open profile menu
esc close an open window
? open keyboard shortcut window

On media pages

b go back (or to parent when applicable)
e go to edit page

On TV season pages

(right arrow) go to next season
(left arrow) go to previous season

On TV episode pages

(right arrow) go to next episode
(left arrow) go to previous episode

On all image pages

a open add image window

On all edit pages

t open translation selector
ctrl+ s submit form

On discussion pages

n create new discussion
w toggle watching status
p toggle public/private
c toggle close/open
a open activity
r reply to discussion
l go to last reply
ctrl+ enter submit your message
(right arrow) next page
(left arrow) previous page

Settings

Want to rate or add this item to a list?

Login