The Movie Database 支持

Hey, I'm confused about the behavior of the "translations" on the site. I'm looking at the following movie entry which has a "title" for en-US and ta-IN as shown on the website.

If I'm looking at the API response the "ta-IN" object actually has no "title" set:

    "translations": {
        "translations": [
            {
                "iso_3166_1": "US",
                "iso_639_1": "en",
                "name": "English",
                "english_name": "English",
                "data": {
                    "homepage": "",
                    "overview": "For Kathiravan, who lost his left leg in an accident,his 8-year-old daughter is his world. She is diagnosed with a congenital heart problem and 7 Million INR is needed to save his daughter. Unable to raise such a huge amount, he plans to kidnap businessman Rudra's daughter.  Instead Kathir becomes embroiled in his own kidnapping plot.",
                    "runtime": 117,
                    "tagline": "",
                    "title": "Poikkal Kuthirai"
                }
            },
            {
                "iso_3166_1": "IN",
                "iso_639_1": "ta",
                "name": "தமிழ்",
                "english_name": "Tamil",
                "data": {
                    "homepage": "",
                    "overview": "",
                    "runtime": 0,
                    "tagline": "",
                    "title": ""
                }
            }
        ]
    }

My guess is that the website somehow has a fallback based on the data in the "original_title" field, and as original_language matches the object in the "translations" array it falls back to that.

"original_language": "ta",
"original_title": "பொய்க்கால் குதிரை",

Is this the correct assumption? Is that a bug or expected behaviour? I think it would be less confusing if the API response resembles what's on the website, but I might be missing some complexity there.

Thanks!

1 回复(第 1 页,共 1 页)

Jump to last post

Hi @clapton, on the API this is expected. We do not support fallback queries on the API at this time.

We have an open ticket to think about adding this here.

With regards to the original title, you'll have to look at the "primary info" data to glean that right now. The website tries to infer the connection, but it's not stored in the DB that way, which is what is being returned on the API.

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

全站通用

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

在媒体页面

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

在电视季页面

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

在电视集页面

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

在所有图像页面

a 打开添加图片窗口

在所有编辑页面

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

在讨论页面

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

设置

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

登录

还不是会员?

注册加入社区