aboutsummaryrefslogtreecommitdiff
path: root/src/lib/Data/Manga/raw.ts
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-07-23 03:09:28 -0700
committerFuwn <[email protected]>2024-07-23 03:09:28 -0700
commitb14e2d69526970e01af66dbc436e055c487dd4c5 (patch)
tree3322ae21dfb136680fb15ec3caab4de8fcc9d36f /src/lib/Data/Manga/raw.ts
parentfeat(proxy): enable level two proxy encoding (diff)
downloaddue.moe-b14e2d69526970e01af66dbc436e055c487dd4c5.tar.xz
due.moe-b14e2d69526970e01af66dbc436e055c487dd4c5.zip
feat(Manga): proxy raw
Diffstat (limited to 'src/lib/Data/Manga/raw.ts')
-rw-r--r--src/lib/Data/Manga/raw.ts4
1 files changed, 3 insertions, 1 deletions
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<number | undefined> => {
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');