a lil oopsie
This commit is contained in:
@@ -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)}`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user