From 8fe175118bc97e8ac35e982374be57c8e3dd7b86 Mon Sep 17 00:00:00 2001 From: Radiquum Date: Sat, 16 Aug 2025 03:30:24 +0500 Subject: [PATCH 1/2] fix/anix-api-prox: respect `ANIXART_BASE_URL` env var --- api-prox/shared.ts | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/api-prox/shared.ts b/api-prox/shared.ts index a9ba0d3..e50ed78 100644 --- a/api-prox/shared.ts +++ b/api-prox/shared.ts @@ -112,15 +112,20 @@ const _anixart_baseUrlList = [ ]; export async function getAnixartApiBaseUrl() { - if (process.env.ANIXART_BASE_URL) return process.env.ANIXART_BASE_URL; - logger.info("FINDING WORKING ANIXART API BASE URL..."); + if (process.env.ANIXART_BASE_URL) { + ANIXART_API = process.env.ANIXART_BASE_URL + logger.info(`Using predefined anixart base url: ${process.env.ANIXART_BASE_URL}`); + return; + }; + + logger.info("Finding working anixart base url..."); for (const url of _anixart_baseUrlList) { try { const res = await fetch(`${url}/config/toggles?version_code=25062213&is_beta=true&is_api_alt=false&token=`, { method: "GET" }); await res.json(); ANIXART_API = url; - logger.info(`FOUND WORKING ANIXART API BASE URL: ${url}`); + logger.info(`Found anixart base url: ${url}`); break; } catch { continue; @@ -128,7 +133,7 @@ export async function getAnixartApiBaseUrl() { } if (!ANIXART_API) { - logger.error("FAILED TO FIND WORKING ANIXART API BASE URL!"); + logger.error("FATAL: Failed to find working anixart base url!"); process.exit(1); } } From 940c6e9de2abf3e56f04772b7d59a70af3954948 Mon Sep 17 00:00:00 2001 From: Radiquum Date: Sat, 16 Aug 2025 03:37:28 +0500 Subject: [PATCH 2/2] fix: alias Liberty to Libria source for AniLibria (AniLiberty) VoiceOver --- app/components/ReleasePlayer/ReleasePlayerCustom.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/components/ReleasePlayer/ReleasePlayerCustom.tsx b/app/components/ReleasePlayer/ReleasePlayerCustom.tsx index 2ac55a1..43139dd 100644 --- a/app/components/ReleasePlayer/ReleasePlayerCustom.tsx +++ b/app/components/ReleasePlayer/ReleasePlayerCustom.tsx @@ -97,7 +97,7 @@ export const ReleasePlayerCustom = (props: { } return; } - if (source.selected.name == "Libria") { + if (["Libria", "Liberty"].includes(source.selected.name)) { const { manifest, poster } = await _fetchAnilibriaManifest( episode.selected.url, setPlayerError