ChrisMichaelPerezSantiago / gogoanime

Gogoanime is a custom API that provides data from the 10.gogoanime.io website. You will have access to the entire catalog whether movies, series, current episodes, etc., with English subtitles.
MIT License
75 stars 52 forks source link

Servers not displayed. #12

Closed Om215 closed 2 years ago

Om215 commented 3 years ago

I have copy pasted following code as it is:

api.animeEpisodeHandler('actors-songs-connection-episode-9') .then(res =>{ console.log(res) });

I got all the data except severs: Output for servers looked like this.

servers: [ [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object]

Please fix this issue.

Screenshots code error

mohit-k-s commented 2 years ago

The servers are objects , this method returns a list in order to get the servers with their names and iframes , u need to write this

console.log(res[0].servers)

This will display what you wanted, I think now we can close the issue.