diff --git a/package-lock.json b/package-lock.json index 9b48ecf..b2fda52 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "moopa", - "version": "4.2.4", + "version": "4.2.5", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "moopa", - "version": "4.2.4", + "version": "4.2.5", "dependencies": { "@apollo/client": "^3.7.3", "@headlessui/react": "^1.7.15", diff --git a/package.json b/package.json index 3beb438..986217f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "moopa", - "version": "4.2.4", + "version": "4.2.5", "private": true, "founder": "Factiven", "scripts": { diff --git a/pages/api/v2/episode/[id].js b/pages/api/v2/episode/[id].js index 0e747d6..0ca2a8b 100644 --- a/pages/api/v2/episode/[id].js +++ b/pages/api/v2/episode/[id].js @@ -48,17 +48,17 @@ async function fetchConsumet(id) { try { async function fetchData(dub) { const { data } = await axios.get( - `${CONSUMET_URI}/meta/anilist/episodes/${id}${dub ? "?dub=true" : ""}` + `https://api.consumet.org/meta/anilist/info/${id}${dub ? "?dub=true" : ""}` ); if (data?.message === "Anime not found" && data?.length < 1) { return []; } if (dub) { - if (!data?.some((i) => i.id.includes("dub"))) return []; + if (!data?.episodes?.some((i) => i.id.includes("dub"))) return []; } - const reformatted = data.map((item) => ({ + const reformatted = data.episodes?.map((item) => ({ id: item?.id || null, title: item?.title || null, img: item?.image || null, diff --git a/release.md b/release.md index 0fe5909..d525bf0 100644 --- a/release.md +++ b/release.md @@ -2,9 +2,8 @@ This document contains a summary of all significant changes made to this release. -## 🎉 Update v4.2.4 +## 🎉 Update v4.2.5 ### What's Changed -- fix: Re-Added new episodes -- fix: Cannot paste text on search bar +- fix: Gogoanime episode id is null