Skip to content

Commit

Permalink
V3.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Noname968 committed Jul 15, 2024
1 parent 6371e80 commit b4f2758
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 14 deletions.
Binary file modified bun.lockb
Binary file not shown.
10 changes: 4 additions & 6 deletions src/app/api/episode/[...animeid]/route.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ async function fetchConsumet(id) {

async function fetchAnify(id) {
try {
const { data } = await axios.get(`https://api.anify.tv/info/${id}?fields=[episodes]`);
const { data } = await axios.get(`https://anify.eltik.cc/info/${id}?fields=[episodes]`);

if (!data || !data?.episodes?.data) {
return [];
Expand Down Expand Up @@ -81,14 +81,12 @@ async function MalSync(id) {
newdata.forEach(item => {
const { providerId, data } = item;
if (providerId === 'gogoanime') {
const remove = 'https://anitaku.to/category/';
const dub = data.find(item => item.title.toLowerCase().endsWith(" (dub)"));
const duburl = dub?.url?.replace(remove,'');
const sub = data.find(item => item.title.toLowerCase().includes(" (uncensored)"))?.url?.replace(remove,'') ?? data.find((item) => item?.url === dub?.url?.replace(/-dub$/, ''))?.url?.replace(remove,'') ?? data.find(item => !item.title.toLowerCase().includes(")"))?.url?.replace(remove,'');
const duburl = dub?.url?.split('/').pop();
const sub = data.find(item => item.title.toLowerCase().includes(" (uncensored)"))?.url?.split('/').pop() ?? data.find((item) => item?.url === dub?.url?.replace(/-dub$/, ''))?.url?.split('/').pop() ?? data.find(item => !item.title.toLowerCase().includes(")"))?.url?.split('/').pop();
finaldata.push({ providerId, sub: sub || "", dub: duburl || "" });
} else {
const remove = 'https://hianime.to/';
const sub = data[0]?.url?.replace(remove, '')
const sub = data[0]?.url?.split('/').pop()
finaldata.push({ providerId, sub: sub || '' });
}
});
Expand Down
2 changes: 1 addition & 1 deletion src/app/api/recent/route.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ axios.interceptors.request.use(config => {
async function fetchRecent() {
try {
const { data } = await axios.get(
`https://api.anify.tv/recent?type=anime&page=1&perPage=20&fields=[id,title,status,format,currentEpisode,coverImage,episodes,totalEpisodes]`
`https://anify.eltik.cc/recent?type=anime&page=1&perPage=20&fields=[id,title,status,format,currentEpisode,coverImage,episodes,totalEpisodes]`
);

const mappedData = data.map((i) => {
Expand Down
2 changes: 1 addition & 1 deletion src/app/api/schedule/route.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { NextResponse } from "next/server";
async function fetchSchedule() {
try {
const { data } = await axios.get(
`https://api.anify.tv/schedule?fields=[id,title,coverImage]`
`https://anify.eltik.cc/schedule?fields=[id,title,coverImage]`
);
return data;
} catch (error) {
Expand Down
20 changes: 15 additions & 5 deletions src/components/Changelogs.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import React, { useEffect, useState } from "react";
import { Modal, ModalContent, ModalBody, ModalFooter, Button, useDisclosure } from "@nextui-org/react";
import Link from "next/link";

const newVersion = "V3.2.1"
const newVersion = "V3.2.2"

const releaseLogs = [
// {
Expand Down Expand Up @@ -45,12 +45,22 @@ const releaseLogs = [
// "View Github for more information",
// ],
// },
// {
// version: "V3.2.1",
// changes: [
// "Performance Improvements",
// "Added All Time Popular in home page",
// "Change Seasonal Anime to latest Season",
// "Fixed Player Not Working Properly",
// "Fixed Some Bugs",
// ],
// },
{
version: "V3.2.1",
version: "V3.2.2",
changes: [
"Performance Improvements",
"Added All Time Popular in home page",
"Change Seasonal Anime to latest Season",
"Fixed new anime not showing.",
"Fixed anime not found issue.",
"Fixed recent episodes",
"Fixed Player Not Working Properly",
"Fixed Some Bugs",
],
Expand Down
2 changes: 1 addition & 1 deletion src/components/Footer.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ function Footer() {
</div>
<div className='bg-tersier border-t border-white/5 mt-2'></div>
<div className="mx-auto w-full lg:max-w-[83%] lg:flex lg:items-center lg:justify-between lg:text-[0.8rem] text-[0.7rem] text-[#ffffffb2] py-3">
<span className="sm:text-center ms-5 lg:ms-0">© {year} <Link href="/" className="hover:text-white">Airin™</Link> | Made by <span className="font-bold" >Airin Team</span>
<span className="sm:text-center ms-5 lg:ms-0">© {year} <Link href="/" className="hover:text-white">Airin™</Link> | Made by <span className="font-bold" >Luckyhv</span>
</span>
<div className="flex mt-4 lg:justify-center lg:mt-0">
<Link href="https://github.com/Noname968/airin" target="_blank" className=" hover:text-gray-900 dark:hover:text-white ms-5 lg:ms-0">
Expand Down

0 comments on commit b4f2758

Please sign in to comment.