From af5ed95502ec488b5b2b43ae58a6d2a05becf74f Mon Sep 17 00:00:00 2001 From: kodjomoustapha <107993382+kodjodevf@users.noreply.github.com> Date: Wed, 6 Nov 2024 16:09:35 +0100 Subject: [PATCH] fix NetflixMirror --- javascript/anime/src/all/netflixmirror.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/javascript/anime/src/all/netflixmirror.js b/javascript/anime/src/all/netflixmirror.js index ca4568fc..83fa85da 100644 --- a/javascript/anime/src/all/netflixmirror.js +++ b/javascript/anime/src/all/netflixmirror.js @@ -6,7 +6,7 @@ const mangayomiSources = [{ "iconUrl": "https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/main/javascript/icon/all.netflixmirror.png", "typeSource": "single", "isManga": false, - "version": "0.0.3", + "version": "0.0.35", "dateFormat": "", "dateFormatLocale": "", "pkgPath": "anime/src/all/netflixmirror.js" @@ -15,13 +15,13 @@ const mangayomiSources = [{ class DefaultExtension extends MProvider { async getCookie() { const addhash = new Document((await new Client().get(`${this.source.baseUrl}/home`, { "cookie": "" })).body).selectFirst("body").attr("data-addhash"); - await new Client().get(`https://userverify.netmirror.app/verify?hash=${addhash}`); + await new Client().get(`${this.source.baseUrl}/v.php?hash=${addhash}`); const res = (await new Client().post(`${this.source.baseUrl}/verify2.php`, { "cookie": "" }, { "verify": addhash })); return res.headers["set-cookie"]; } async request(url, cookie) { cookie = cookie ?? await this.getCookie(); - return (await new Client().get(this.source.baseUrl + url, { "cookie": `hd=on; ${cookie}` })).body; + return (await new Client().get(this.source.baseUrl + url, { "cookie": `ott=nf; hd=on; ${cookie}` })).body; } async getPopular(page) { return await this.getPages(await this.request("/home"), ".tray-container, #top10")