Update anime/anicrush/source.js

This commit is contained in:
2025-12-25 21:41:21 +01:00
parent efa82ecbe9
commit af96d0126a

View File

@@ -258,8 +258,7 @@ class AniCrush {
`${this.apiBase}/shared/v2/episode/sources?_movieId=${encodeURIComponent(id)}` +
`&ep=${encodeURIComponent(String(num))}&sv=${encodeURIComponent(String(sv))}&sc=${encodeURIComponent(subOrDub)}`;
// ✅ LOG: confirm SUB/DUB + final API URL used
try { Native.log("AniCrush", `findEpisodeServer: sc=${subOrDub} movieId=${id} ep=${num} sv=${sv} url=${linkUrl}`); } catch (e) {}
try { Native.log("AniCrush", "findEpisodeServer: sc=" + subOrDub + " movieId=" + id + " ep=" + num + " sv=" + sv + " url=" + linkUrl); } catch (e) {}
const json = this._getJson(linkUrl, this._headers());
const encryptedIframe = (((json || {}).result || {}).link) ? String(json.result.link) : "";