Suporte do 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 respostas (na página 1 de 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.

Não consegue encontrar um certo filme ou série? Inicie sessão e adicione-o.

Geral

s focus the search bar
p abrir menu do perfil
esc close an open window
? open keyboard shortcut window

Em páginas de Média

b go back (or to parent when applicable)
e ir para a página de edição

Em páginas de temporadas de séries

(seta para a direita) ir para a próxima temporada
(seta para a esquerda) ir para a temporada anterior

Em Páginas de Episódios de Séries

(seta para a direita) ir para o próximo episódio
(seta para a esquerda) ir para o episódio anterior

Em Todas as Páginas de Imagens

a abrir janela para adicionar imagem

Em Todas as Páginas de Edição

t open translation selector
ctrl+ s submit form

Em Páginas de Discussão

n criar uma nova discussão
w toggle watching status
p toggle public/private
c toggle close/open
a abrir actividade
r reply to discussion
l ir para a última resposta
ctrl+ enter submit your message
(seta para a direita) página seguinte
(seta para a esquerda) página anterior

Definições

Deseja classificar ou adicionar este item a uma lista?

Iniciar Sessão

Ainda não é um membro?

Crie uma Conta e Adere a Comunidade