fix: update anify url

This commit is contained in:
2024-08-12 18:56:25 -04:00
parent 713bb59780
commit 0e30b6b7d3
6 changed files with 153 additions and 150 deletions

View File

@@ -15,7 +15,7 @@ export async function getEpisodesFromAnify(
const abortController = new AbortController();
try {
response = await promiseTimeout(
fetch(`https://api.anify.tv/episodes/${aniListId}`, {
fetch(`https://anify.eltik.cc/episodes/${aniListId}`, {
signal: abortController.signal,
}).then((res) => res.json<AnifyEpisodesResponse[]>()),
30 * 1000,

View File

@@ -12,7 +12,7 @@ export async function getSourcesFromAnify(
watchId: string,
aniListId: number,
): Promise<FetchUrlResponse | null> {
const response = await fetch("https://api.anify.tv/sources", {
const response = await fetch("https://anify.eltik.cc/sources", {
body: JSON.stringify({
watchId,
providerId: provider,

View File

@@ -53,7 +53,7 @@ type AnifyInformation = {
function fetchMissingInformationFromAnify(
aniListId: number,
): Promise<AnifyInformation> {
return fetch(`https://api.anify.tv/info?id=${aniListId}`)
return fetch(`https://anify.eltik.cc/info?id=${aniListId}`)
.then((res) => res.json() as Promise<AnifyInformation>)
.then(({ bannerImage, countryOfOrigin }) => ({
bannerImage,