fix: update anify url
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user