I trying to make a page that recommends TV Shows based on ID
I successfully made a details page but when I tried to make a recommendations page it is showing error
the console output for the details page => https://api.themoviedb.org/3/tv/237480?language=en-US&api_key
I was able to successfully made a recommendation page for the movies but failed for tv_shows
api that I am using ->https://api.themoviedb.org/3/tv/${id}/recommendations?language=en-US&api_key=${publicKey}
console output => https://api.themoviedb.org/3/tv/undefined/recommendations?language=en-US
لم تجد الفلم أو المسلسل ؟ سجل دخولك و انشئها
هل تريد تقييم او اضافة هذا العنصر للقائمة؟
لست عضو؟
رد بواسطة ticao2 🇧🇷 pt-BR
بتاريخ أغسطس 14, 2024 في 11:20 صباحا
Considering the "undefined" in the console output, I assume there must be some problem with the Series ID placement.
If that's the case, I don't know how to help you.
It seems you didn't enter the Series ID.
رد بواسطة Jay Joshi
بتاريخ أغسطس 17, 2024 في 11:16 صباحا
👆This is the one I am using for tv details but this is working fine
👆 This is the I am using for Movies but this is showing error
The one for movies is adding undefined to every id name
When I posted this ques atleast this one was working but now it is also broken 😭😭😭
رد بواسطة superboy97
بتاريخ أغسطس 17, 2024 في 11:41 صباحا
When you get "undefined" in the request, that means that the variable ${id} hasn't been initialised in your code.
رد بواسطة Jay Joshi
بتاريخ أغسطس 17, 2024 في 12:24 مساءا
رد بواسطة superboy97
بتاريخ أغسطس 17, 2024 في 12:28 مساءا
Sorry, but we do not debug user code.
رد بواسطة Jay Joshi
بتاريخ أغسطس 17, 2024 في 12:31 مساءا
OK