From b14e2d69526970e01af66dbc436e055c487dd4c5 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Tue, 23 Jul 2024 03:09:28 -0700 Subject: feat(Manga): proxy raw --- src/lib/Data/Manga/raw.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/lib/Data/Manga') diff --git a/src/lib/Data/Manga/raw.ts b/src/lib/Data/Manga/raw.ts index a09fa17f..c570474d 100644 --- a/src/lib/Data/Manga/raw.ts +++ b/src/lib/Data/Manga/raw.ts @@ -1,6 +1,8 @@ +import proxy from '$lib/Utility/proxy'; + export const getChapterCount = async (nativeTitle: string): Promise => { const html = new DOMParser().parseFromString( - await (await fetch(`https://rawkuma.com/?s=${encodeURIComponent(nativeTitle)}`)).text(), + await (await fetch(proxy(`https://rawkuma.com/?s=${encodeURIComponent(nativeTitle)}`))).text(), 'text/html' ); const listContent = html.querySelector('.listupd'); -- cgit v1.2.3