Merge pull request #63 from WBRK-dev/main

docs: fixed documentation about episode sources
This commit is contained in:
Ritesh Ghosh
2024-08-14 22:38:44 +05:30
committed by GitHub
+2 -2
View File
@@ -1053,14 +1053,14 @@ https://api-aniwatch.onrender.com/anime/episode-srcs?id={episodeId}&server={serv
| Parameter | Type | Description | Required? | Default | | Parameter | Type | Description | Required? | Default |
| :--------: | :----: | :--------------------------------------------------: | :-------: | :--------------: | | :--------: | :----: | :--------------------------------------------------: | :-------: | :--------------: |
| `id` | string | The id of the episode. | Yes | -- | | `id` | string | The id of the episode. | Yes | -- |
| `server` | string | The name of the server. | No | `"vidstreaming"` | | `server` | string | The name of the server. | No | `"hd-1"` |
| `category` | string | The category of the episode ('sub', 'dub' or 'raw'). | No | `"sub"` | | `category` | string | The category of the episode ('sub', 'dub' or 'raw'). | No | `"sub"` |
#### Request sample #### Request sample
```javascript ```javascript
const resp = await fetch( const resp = await fetch(
"https://api-aniwatch.onrender.com/anime/episode-srcs?id=steinsgate-3?ep=230&server=vidstreaming&category=dub" "https://api-aniwatch.onrender.com/anime/episode-srcs?id=steinsgate-3?ep=230&server=hd-1&category=dub"
); );
const data = await resp.json(); const data = await resp.json();
console.log(data); console.log(data);