a lil oopsie

This commit is contained in:
2026-03-29 21:19:53 -05:00
parent cf155183f2
commit 0224d88313
9 changed files with 11 additions and 15 deletions

View File

@@ -379,7 +379,7 @@
const [jikanInfoResp, jikanEpisodesResp, kitsuMapResp] = await Promise.all([
fetch(`https://api.jikan.moe/v4/anime/${jikanId}`),
fetch(`https://api.jikan.moe/v4/anime/${jikanId}/episodes`),
fetch(`http://${serverIp}:7275/map/mal/${jikanId}`)
fetch(`/map/mal/${jikanId}`)
]);
if (jikanInfoResp.ok) {
@@ -430,7 +430,7 @@
async function populateSourceChanger() {
try {
const response = await fetch(`http://${serverIp}:7275/modules/streaming`);
const response = await fetch(`/modules/streaming`);
if (!response.ok) throw new Error('Failed to fetch streaming modules');
const modules = await response.json();
@@ -499,7 +499,7 @@
loadingContainer.style.display = 'flex';
}
let iframeSrcURL = `http://${serverIp}:7275/iframe-src?mal_id=${jikanId}&episode=${episode}&dub=${dub}`;
let iframeSrcURL = `/iframe-src?mal_id=${jikanId}&episode=${episode}&dub=${dub}`;
if (preferModule && preferModule !== 'default') {
iframeSrcURL += `&prefer_module=${encodeURIComponent(preferModule)}`;
}