Update anime/anicrush/source.js

This commit is contained in:
2025-12-25 21:38:38 +01:00
parent 9768b0f64f
commit efa82ecbe9

View File

@@ -258,6 +258,9 @@ 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) {}
const json = this._getJson(linkUrl, this._headers());
const encryptedIframe = (((json || {}).result || {}).link) ? String(json.result.link) : "";
if (!encryptedIframe) throw new Error("Missing encrypted iframe link");