Update anime/anicrush/source.js
This commit is contained in:
@@ -258,6 +258,9 @@ class AniCrush {
|
|||||||
`${this.apiBase}/shared/v2/episode/sources?_movieId=${encodeURIComponent(id)}` +
|
`${this.apiBase}/shared/v2/episode/sources?_movieId=${encodeURIComponent(id)}` +
|
||||||
`&ep=${encodeURIComponent(String(num))}&sv=${encodeURIComponent(String(sv))}&sc=${encodeURIComponent(subOrDub)}`;
|
`&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 json = this._getJson(linkUrl, this._headers());
|
||||||
const encryptedIframe = (((json || {}).result || {}).link) ? String(json.result.link) : "";
|
const encryptedIframe = (((json || {}).result || {}).link) ? String(json.result.link) : "";
|
||||||
if (!encryptedIframe) throw new Error("Missing encrypted iframe link");
|
if (!encryptedIframe) throw new Error("Missing encrypted iframe link");
|
||||||
|
|||||||
Reference in New Issue
Block a user