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 回复(第 1 页,共 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.

找不到电影或节目?登录并创建它吧。

全站通用

s 聚焦到搜索栏
p 打开个人资料菜单
esc 关闭打开的窗口
? 打开键盘快捷键窗口

在媒体页面

b 返回(或返回上级)
e 进入编辑页面

在电视季页面

(右箭头)下一季
(左箭头)前一季

在电视集页面

(右箭头)下一集
(左箭头)上一集

在所有图像页面

a 打开添加图片窗口

在所有编辑页面

t 打开翻译选择器
ctrl+ s 提交

在讨论页面

n 创建新讨论
w 切换关注状态
p 设为公开 / 私密讨论
c 关闭 / 开放讨论
a 打开活动页
r 回复讨论
l 跳转至最新回复
ctrl+ enter 发送信息
(右箭头)下一页
(左箭头)前一页

设置

想给这个条目评分或将其添加到片单中?

登录

还不是会员?

注册加入社区