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
Can't find a movie or TV show? Login to create it.
Elementu hau kalifikatu edo zerrenda batera gehitzea nahi al duzu?
Ez zara kidea?
ticao2 π§π· pt-BR Erabiltzailearen Erantzuna
Abuztua 14, 2024 egunean 11:20 AM(e)tan
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 Erabiltzailearen Erantzuna
Abuztua 17, 2024 egunean 11:16 AM(e)tan
π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 Erabiltzailearen Erantzuna
Abuztua 17, 2024 egunean 11:41 AM(e)tan
When you get "undefined" in the request, that means that the variable ${id} hasn't been initialised in your code.
Jay Joshi Erabiltzailearen Erantzuna
Abuztua 17, 2024 egunean 12:24 PM(e)tan
superboy97 Erabiltzailearen Erantzuna
Abuztua 17, 2024 egunean 12:28 PM(e)tan
Sorry, but we do not debug user code.
Jay Joshi Erabiltzailearen Erantzuna
Abuztua 17, 2024 egunean 12:31 PM(e)tan
OK