Skip to content
This repository has been archived by the owner on Jul 14, 2024. It is now read-only.

Commit

Permalink
Update v4.2.5
Browse files Browse the repository at this point in the history
  • Loading branch information
DevanAbinaya committed Nov 8, 2023
1 parent 9bbd267 commit 156d0e5
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "moopa",
"version": "4.2.4",
"version": "4.2.5",
"private": true,
"founder": "Factiven",
"scripts": {
Expand Down
6 changes: 3 additions & 3 deletions pages/api/v2/episode/[id].js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
5 changes: 2 additions & 3 deletions release.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 156d0e5

Please sign in to comment.