aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRitesh Ghosh <[email protected]>2024-02-26 01:04:32 +0530
committerRitesh Ghosh <[email protected]>2024-02-26 01:04:32 +0530
commit74e9455890c176e51f89e59a9bc909cd959dc09f (patch)
tree77bdc60486ac454f1e4a38a2d8cc8323dc5791e6 /src
parentc634f6e560bdb3b8dec2333439a3e285813e6532 (diff)
downloadaniwatch-api-74e9455890c176e51f89e59a9bc909cd959dc09f.tar.xz
aniwatch-api-74e9455890c176e51f89e59a9bc909cd959dc09f.zip
feat: replace RapidCloud extractor for MegaCloud
Diffstat (limited to 'src')
-rw-r--r--src/parsers/animeEpisodeSrcs.ts9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/parsers/animeEpisodeSrcs.ts b/src/parsers/animeEpisodeSrcs.ts
index d604ef0..104bc4d 100644
--- a/src/parsers/animeEpisodeSrcs.ts
+++ b/src/parsers/animeEpisodeSrcs.ts
@@ -8,7 +8,12 @@ import axios, { AxiosError } from "axios";
import { load, type CheerioAPI } from "cheerio";
import createHttpError, { type HttpError } from "http-errors";
import { type AnimeServers, Servers } from "../types/anime.js";
-import { RapidCloud, StreamSB, StreamTape } from "../extractors/index.js";
+import {
+ RapidCloud,
+ StreamSB,
+ StreamTape,
+ MegaCloud,
+} from "../extractors/index.js";
import { type ScrapedAnimeEpisodesSources } from "../types/parsers/index.js";
// vidtreaming -> 4
@@ -28,7 +33,7 @@ async function scrapeAnimeEpisodeSources(
case Servers.VidStreaming:
case Servers.VidCloud:
return {
- ...(await new RapidCloud().extract(serverUrl)),
+ ...(await new MegaCloud().extract(serverUrl)),
};
case Servers.StreamSB:
return {