Hi.
Parts array is empty in collections endpoint. For example, there are 3 movies in this collection, but this is empty in the API request:
https://www.themoviedb.org/collection/121938
Endpoint: https://api.themoviedb.org/3/collection/121938?api_key=API_KEY&language=en-US
Response:
{
"id":121938,
"name":"The Hobbit Collection",
"overview":"The Hobbit collection is a three-part epic fantasy-adventure film directed and produced by Peter Jackson and based on J. R. R. Tolkien's fantasy novel of the same name. The trilogy of films are set in Middle-earth 60 years before \"The Lord of the Rings\", and will act as a prequel to Jackson's The Lord of the Rings trilogy.",
"poster_path":"/gwHNIXA6YeYsI9XgX4g1UmLDCxo.jpg",
"backdrop_path":"/sLy2GcCPrZcMlfaSSvoGeThWXBA.jpg",
"parts":[]
}
But when I don't send the language parameter, the endpoint works correctly:
Endpoint: https://api.themoviedb.org/3/collection/121938?api_key=API_KEY
Response:
{
"id":121938,
"name":"The Hobbit Collection",
"overview":"The Hobbit collection is a three-part epic fantasy-adventure film directed and produced by Peter Jackson and based on J. R. R. Tolkien's fantasy novel of the same name. The trilogy of films are set in Middle-earth 60 years before \"The Lord of the Rings\", and will act as a prequel to Jackson's The Lord of the Rings trilogy.",
"poster_path":"/gwHNIXA6YeYsI9XgX4g1UmLDCxo.jpg",
"backdrop_path":"/sLy2GcCPrZcMlfaSSvoGeThWXBA.jpg",
"parts":[
{
"original_language":"en",
"original_title":"The Hobbit: An Unexpected Journey",
"poster_path":"/yHA9Fc37VmpUA5UncTxxo3rTGVA.jpg",
"video":false,
"vote_average":7.3,
"overview":"Bilbo Baggins, a hobbit enjoying his quiet life, is swept into an epic quest by Gandalf the Grey and thirteen dwarves who seek to reclaim their mountain home from Smaug, the dragon.",
"release_date":"2012-11-26",
"vote_count":15492,
"adult":false,
"backdrop_path":"/gioXMobK8vbD6bcTsjKYKfgacNt.jpg",
"title":"The Hobbit: An Unexpected Journey",
"genre_ids":[
12,
14,
28
],
"id":49051,
"popularity":116.567
},
{
"original_language":"en",
"original_title":"The Hobbit: The Desolation of Smaug",
"poster_path":"/xQYiXsheRCDBA39DOrmaw1aSpbk.jpg",
"video":false,
"vote_average":7.6,
"overview":"The Dwarves, Bilbo and Gandalf have successfully escaped the Misty Mountains, and Bilbo has gained the One Ring. They all continue their journey to get their gold back from the Dragon, Smaug.",
"id":57158,
"vote_count":10618,
"adult":false,
"backdrop_path":"/bSQjIZO9aJCJBqxGX3Sx2xtujzT.jpg",
"title":"The Hobbit: The Desolation of Smaug",
"release_date":"2013-12-11",
"genre_ids":[
14,
12,
28
],
"popularity":108.034
},
{
"adult":false,
"backdrop_path":"/zn13a7U9eMTJq8sHthe3bCgsVm4.jpg",
"genre_ids":[
28,
12,
14
],
"id":122917,
"original_language":"en",
"original_title":"The Hobbit: The Battle of the Five Armies",
"overview":"Immediately after the events of The Desolation of Smaug, Bilbo and the dwarves try to defend Erebor's mountain of treasure from others who claim it: the men of the ruined Laketown and the elves of Mirkwood. Meanwhile an army of Orcs led by Azog the Defiler is marching on Erebor, fueled by the rise of the dark lord Sauron. Dwarves, elves and men must unite, and the hope for Middle-Earth falls into Bilbo's hands.",
"poster_path":"/xT98tLqatZPQApyRmlPL12LtiWp.jpg",
"release_date":"2014-12-10",
"title":"The Hobbit: The Battle of the Five Armies",
"video":false,
"vote_average":7.3,
"vote_count":11563,
"popularity":168.936
}
]
}
But for this collection the parts array with and without language parameter is empty:
https://www.themoviedb.org/collection/735384
Endpoint: https://api.themoviedb.org/3/collection/735384?api_key=API_KEY&language=en-US
Response:
{
"id":735384,
"name":"Hercule Poirot (Kenneth Branagh) Collection",
"overview":"The adventures of Belgian detective Hercule Poirot, as he solves gruesome murders on various vehicles of transportation.",
"poster_path":"/lSiVxZkNl9kWNQf6tlKzEVN8EtI.jpg",
"backdrop_path":"/edublNCxjewKUYSWw13A4fDiPxt.jpg",
"parts":[]
}
Endpoint: https://api.themoviedb.org/3/collection/735384?api_key=API_KEY
Response:
{
"id":735384,
"name":"Hercule Poirot (Kenneth Branagh) Collection",
"overview":"The adventures of Belgian detective Hercule Poirot, as he solves gruesome murders on various vehicles of transportation.",
"poster_path":"/lSiVxZkNl9kWNQf6tlKzEVN8EtI.jpg",
"backdrop_path":"/edublNCxjewKUYSWw13A4fDiPxt.jpg",
"parts":[]
}
找不到电影或节目?登录并创建它吧。
ticao2 🇧🇷 pt-BR 的回复
于 2022 年 01 月 01 日 11:05上午
I've now tested your 2 API Requests.
With and without language.
https://api.themoviedb.org/3/collection/121938?api_key=THE_KEY&language=en-US
https://api.themoviedb.org/3/collection/121938?api_key=THE_KEY
https://api.themoviedb.org/3/collection/735384?api_key=THE_KEY&language=en-US
https://api.themoviedb.org/3/collection/735384?api_key=THE_KEY
All answers are correct with all parts of the collections.
Maybe it was a temporary problem.
Can you try again and let us know the result?
sereisoglu 的回复
于 2022 年 01 月 01 日 11:13上午
I tried again and I continue to receive the responses I sent above.
ticao2 🇧🇷 pt-BR 的回复
于 2022 年 01 月 01 日 11:19上午
It may now be a Cache problem.
It takes about 8 hours for the Cache to expire.
So, if possible, test in 8 hours and let us know.
sereisoglu 的回复
于 2022 年 01 月 01 日 11:24上午
I had this problem for many collections since yesterday. I think there is a different problem here.
ticao2 🇧🇷 pt-BR 的回复
于 2022 年 01 月 01 日 12:27下午
In this case I believe that only Travis Bell can give a good answer.
Let's wait for him to pass through here.
jurialmunkey 的回复
于 2022 年 01 月 01 日 7:02下午
Can confirm I'm having the same issue with no parts being returned for collections
e.g. /collection/264
sereisoglu 的回复
于 2022 年 01 月 04 日 3:38上午
@ticao2 Still this problem persists.
SoLoR 的回复
于 2022 年 01 月 04 日 6:31上午
Having similar issue: yesterday collection/645 (James Bond) was broken, today is fine yesterday collection/14890 (Bad Boys) was fine, today its broken (empty in api)
This are just two examples. I run update script for this once/month and when i saw mess, i run it once more today manually, this are all changes for CIDs that for most part sholdnt happen:
Travis Bell 的回复
于 2022 年 01 月 04 日 1:58下午
I believe I found the cause of this and just deployed the fix.
Before seeing any changes, you will have to wait for all of the cached items to expire which can take up to 8 hours.
Cheers.
SoLoR 的回复
于 2022 年 01 月 05 日 2:24上午
can confirm its fixed now. thanks!