diff options
| author | Factiven <[email protected]> | 2023-10-24 20:27:32 +0700 |
|---|---|---|
| committer | Factiven <[email protected]> | 2023-10-24 20:27:32 +0700 |
| commit | 451e4dffd000169e7113aa3275e4acaf7f1fbbbc (patch) | |
| tree | 035edf0d05e2f6878be745c326935aba3d821636 /lib/anify | |
| parent | Update v4.2.1 (diff) | |
| download | moopa-4.2.2.tar.xz moopa-4.2.2.zip | |
Update v4.2.2v4.2.2
Diffstat (limited to 'lib/anify')
| -rw-r--r-- | lib/anify/info.js | 4 | ||||
| -rw-r--r-- | lib/anify/page.js | 4 |
2 files changed, 3 insertions, 5 deletions
diff --git a/lib/anify/info.js b/lib/anify/info.js index 08d64aa..05159ce 100644 --- a/lib/anify/info.js +++ b/lib/anify/info.js @@ -3,9 +3,7 @@ import { redis } from "../redis"; export async function fetchInfo(id, key) { try { - const { data } = await axios.get( - `https://api.anify.tv/info/${id}?apikey=${key}` - ); + const { data } = await axios.get(`https://api.anify.tv/info/${id}`); return data; } catch (error) { console.error("Error fetching data:", error); diff --git a/lib/anify/page.js b/lib/anify/page.js index 0f0bb93..6362f88 100644 --- a/lib/anify/page.js +++ b/lib/anify/page.js @@ -1,10 +1,10 @@ import { redis } from "../redis"; // Function to fetch new data -async function fetchData(id, chapterNumber, providerId, chapterId, key) { +async function fetchData(id, chapterNumber, providerId, chapterId) { try { const res = await fetch( - `https://api.anify.tv/pages/${id}/${chapterNumber}/${providerId}/${chapterId}&apikey=${key}` + `https://api.anify.tv/pages/${id}/${chapterNumber}/${providerId}/${chapterId}` ); const data = await res.json(); return data; |