diff options
| author | Ritesh Ghosh <[email protected]> | 2024-07-18 23:53:35 +0530 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-07-18 23:53:35 +0530 |
| commit | c02cc3f3fd01d186e21bf45e2f274d2f0d6a260f (patch) | |
| tree | 3e188b6eabcf4d5e4130be75eea4eba8235bd08e | |
| parent | c86fb35d5862320ba98e87318272d9c4c03f35e5 (diff) | |
| parent | bf2c69e7abf161f611d8b5c85248d63548211e79 (diff) | |
| download | aniwatch-api-c02cc3f3fd01d186e21bf45e2f274d2f0d6a260f.tar.xz aniwatch-api-c02cc3f3fd01d186e21bf45e2f274d2f0d6a260f.zip | |
Merge pull request #59 from WBRK-dev/main
fix: fixed using specific server for episode sources
| -rw-r--r-- | src/types/anime.ts | 10 | ||||
| -rw-r--r-- | test/animeEpisodeSrcs.test.ts | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/types/anime.ts b/src/types/anime.ts index c23acaa..52bf13a 100644 --- a/src/types/anime.ts +++ b/src/types/anime.ts @@ -114,18 +114,18 @@ export type AnimeCategories = | "completed"; export type AnimeServers = - | "vidstreaming" + | "hd-1" + | "hd-2" | "megacloud" | "streamsb" - | "streamtape" - | "vidcloud"; + | "streamtape"; export enum Servers { - VidStreaming = "vidstreaming", + VidStreaming = "hd-1", MegaCloud = "megacloud", StreamSB = "streamsb", StreamTape = "streamtape", - VidCloud = "vidcloud", + VidCloud = "hd-2", AsianLoad = "asianload", GogoCDN = "gogocdn", MixDrop = "mixdrop", diff --git a/test/animeEpisodeSrcs.test.ts b/test/animeEpisodeSrcs.test.ts index 3aed842..1c6f160 100644 --- a/test/animeEpisodeSrcs.test.ts +++ b/test/animeEpisodeSrcs.test.ts @@ -4,7 +4,7 @@ import { scrapeAnimeEpisodeSources } from "../src/parsers/index.js"; test("returns anime episode streaming link(s)", async () => { const data = await scrapeAnimeEpisodeSources( "steinsgate-3?ep=230", - "vidstreaming", + "hd-1", "sub" ); |
