Hello, I am a new member of the TMDB community. I am currently building a Netflix clone. Can anyone help me with how to get these images rendered? I tried in every way possible and I am getting failed to load resource error. I have tried the image link as "https://image.tmdb.org/t/p/originals/".
EDIT: It's giving me 400 error now
Не можете найти фильм или сериал? Войдите на сайт, чтобы добавить его.
Хотите поставить оценку или добавить в список?
Нет аккаунта?
Ответ от Travis Bell
, 26 января 2021 в 10:12
A full image URL needs the image path that you get from different items returned via methods like search, or discover. So when you get one of those paths, ie.
/cDDb7WA2i7cENhkEEjXEDrXGyNL.jpg
you can then assemble the full URL:https://image.tmdb.org/t/p/original/cDDb7WA2i7cENhkEEjXEDrXGyNL.jpg
You can read the full documentation for this here.
Ответ от AdityaBhattacharjee
, 27 января 2021 в 04:45
@travisbell I gave the image path or the poster path and it is giving me a 404 error and it's saying file not found on
https://image.tmdb.org/t/p/originals/cDDb7WA2i7cENhkEEjXEDrXGyNL.jpg/sgxawbFB5Vi5OkPWQLNfl3dvkNJ.jpg URL.
Ответ от ticao2 🇧🇷 pt-BR
, 27 января 2021 в 06:27
This URL of yours has 2 Path Posters placed.
In addition, the original parameter is in the plural.
It must be in the singular, without the ending S.
Experiment with 1 poster path at a time:
https://image.tmdb.org/t/p/original/cDDb7WA2i7cENhkEEjXEDrXGyNL.jpg
https://image.tmdb.org/t/p/original/sgxawbFB5Vi5OkPWQLNfl3dvkNJ.jpg
Ответ от AdityaBhattacharjee
, 27 января 2021 в 06:54
thank you so much!!!!!!!!!!!!