feat: added the ability to grab episode sources from raw servers in endpoint /episode-srcs

This commit is contained in:
WBRK-dev
2024-04-28 10:26:39 +02:00
parent 22599a38d9
commit a0d039ecc1
4 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ import { type ScrapedAnimeEpisodesSources } from "../types/parsers/index.js";
async function scrapeAnimeEpisodeSources(
episodeId: string,
server: AnimeServers = Servers.VidStreaming,
category: "sub" | "dub" = "sub"
category: "sub" | "dub" | "raw" = "sub"
): Promise<ScrapedAnimeEpisodesSources | HttpError> {
if (episodeId.startsWith("http")) {
const serverUrl = new URL(episodeId);