From 4437ef24cc224e784701fbed2fa26e1ce90e04a5 Mon Sep 17 00:00:00 2001 From: WBRK-dev Date: Thu, 18 Jul 2024 17:39:03 +0200 Subject: [PATCH 1/2] fix: fixed using specific server for episode sources --- src/types/anime.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/types/anime.ts b/src/types/anime.ts index c23acaa..782add8 100644 --- a/src/types/anime.ts +++ b/src/types/anime.ts @@ -121,11 +121,11 @@ export type AnimeServers = | "vidcloud"; 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", From bf2c69e7abf161f611d8b5c85248d63548211e79 Mon Sep 17 00:00:00 2001 From: WBRK-dev Date: Thu, 18 Jul 2024 19:34:09 +0200 Subject: [PATCH 2/2] fix: fixed tests regarding episode sources --- src/types/anime.ts | 6 +++--- test/animeEpisodeSrcs.test.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/types/anime.ts b/src/types/anime.ts index 782add8..52bf13a 100644 --- a/src/types/anime.ts +++ b/src/types/anime.ts @@ -114,11 +114,11 @@ export type AnimeCategories = | "completed"; export type AnimeServers = - | "vidstreaming" + | "hd-1" + | "hd-2" | "megacloud" | "streamsb" - | "streamtape" - | "vidcloud"; + | "streamtape"; export enum Servers { VidStreaming = "hd-1", 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" );