Compare commits

...

2 commits

Author SHA1 Message Date
940c6e9de2
fix: alias Liberty to Libria source for AniLibria (AniLiberty) VoiceOver
Some checks failed
Build and Publish 'anix-api-prox' to Docker Hub / publish (push) Has been cancelled
Build and Publish 'anix' to Docker Hub / publish (push) Has been cancelled
2025-08-16 03:37:28 +05:00
8fe175118b
fix/anix-api-prox: respect ANIXART_BASE_URL env var 2025-08-16 03:30:24 +05:00
2 changed files with 10 additions and 5 deletions

View file

@ -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);
}
}

View file

@ -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