From 9c5c484e1a52287b6e73c8bd9b60d0e7017751bc Mon Sep 17 00:00:00 2001 From: aka paul <50n50@noreply.localhost> Date: Sat, 6 Dec 2025 22:49:19 +0000 Subject: [PATCH] Update hianime/hianime.js --- hianime/hianime.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/hianime/hianime.js b/hianime/hianime.js index d93e674..89a7e72 100644 --- a/hianime/hianime.js +++ b/hianime/hianime.js @@ -144,7 +144,7 @@ async function extractStreamUrl(ID) { const getSourcesUrl = `${defaultDomain}embed-2/v3/e-1/getSources?id=${fileId}&_k=${nonce}`; const getSourcesResp = await fetchv2(getSourcesUrl, headers); const getSourcesJson = await getSourcesResp.json(); - + console.log(JSON.stringify(getSourcesJson)); const videoUrl = getSourcesJson.sources?.[0]?.file || ""; if (!videoUrl) return null; @@ -184,10 +184,13 @@ async function extractStreamUrl(ID) { streamUrl: s.streamUrl, headers: s.headers })); - - return JSON.stringify({ + console.log(JSON.stringify({ streams: finalStreams, subtitle: subtitle + })); + return JSON.stringify({ + streams: finalStreams, + subtitles: subtitle }); } catch (err) { console.error(err);