mirror of
https://github.com/kodjodevf/mangayomi-extensions.git
synced 2026-02-15 03:10:59 +00:00
fix NetflixMirror
This commit is contained in:
@@ -6,7 +6,7 @@ const mangayomiSources = [{
|
|||||||
"iconUrl": "https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/main/javascript/icon/all.netflixmirror.png",
|
"iconUrl": "https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/main/javascript/icon/all.netflixmirror.png",
|
||||||
"typeSource": "single",
|
"typeSource": "single",
|
||||||
"isManga": false,
|
"isManga": false,
|
||||||
"version": "0.0.35",
|
"version": "0.0.4",
|
||||||
"dateFormat": "",
|
"dateFormat": "",
|
||||||
"dateFormatLocale": "",
|
"dateFormatLocale": "",
|
||||||
"pkgPath": "anime/src/all/netflixmirror.js"
|
"pkgPath": "anime/src/all/netflixmirror.js"
|
||||||
@@ -15,7 +15,7 @@ const mangayomiSources = [{
|
|||||||
class DefaultExtension extends MProvider {
|
class DefaultExtension extends MProvider {
|
||||||
async getCookie() {
|
async getCookie() {
|
||||||
const addhash = new Document((await new Client().get(`${this.source.baseUrl}/home`, { "cookie": "" })).body).selectFirst("body").attr("data-addhash");
|
const addhash = new Document((await new Client().get(`${this.source.baseUrl}/home`, { "cookie": "" })).body).selectFirst("body").attr("data-addhash");
|
||||||
await new Client().get(`${this.source.baseUrl}/v.php?hash=${addhash}`);
|
await new Client().get(`${this.source.baseUrl}/v.php?dp1=${addhash}&a=2`);
|
||||||
const res = (await new Client().post(`${this.source.baseUrl}/verify2.php`, { "cookie": "" }, { "verify": addhash }));
|
const res = (await new Client().post(`${this.source.baseUrl}/verify2.php`, { "cookie": "" }, { "verify": addhash }));
|
||||||
return res.headers["set-cookie"];
|
return res.headers["set-cookie"];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user