Skip to content

Commit

Permalink
fix typo (#178)
Browse files Browse the repository at this point in the history
* Fix typo

missing animeInfo before the episodes[0].id before

* fix typo

code only works after adding results.results[0]
  • Loading branch information
Sodiumchloridy authored Jan 11, 2023
1 parent b615f63 commit 72e240a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/guides/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,14 @@ const main = async () => {
// Print the results
console.log(results);
// Get the first anime info
const firstAnime = results[0];
const firstAnime = results.results[0];
const animeInfo = await gogoanime.fetchAnimeInfo(firstAnime.id);
// Print the info
console.log(animeInfo);
// get the first episode stream link. By default, it chooses goload server.
const episodes = await gogoanime.fetchEpisodeSources(animeInfo.episodes[0].id);
// get the available streaming servers for the first episode
const streamingServers = await gogoanime.fetchEpisodeServers(episodes[0].id);
const streamingServers = await gogoanime.fetchEpisodeServers(animeInfo.episodes[0].id);
}
```
*see also [ANIME documentation](./anime.md#anime) for more information.*\
Expand Down

0 comments on commit 72e240a

Please sign in to comment.