fix netflixmirror
This commit is contained in:
parent
6d971cb4fb
commit
4cc8f54fa4
1 changed files with 6 additions and 4 deletions
|
|
@ -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.55",
|
||||
"version": "0.0.6",
|
||||
"dateFormat": "",
|
||||
"dateFormatLocale": "",
|
||||
"pkgPath": "anime/src/all/netflixmirror.js"
|
||||
|
|
@ -22,8 +22,10 @@ class DefaultExtension extends MProvider {
|
|||
if (elements && elements.length > 0) {
|
||||
return cookie;
|
||||
}
|
||||
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?vhfd=${addhash}&a=y`);
|
||||
const hDoc = new Document((await new Client().get(`${this.source.baseUrl}/home`, { "cookie": "" })).body);
|
||||
const addhash = hDoc.selectFirst("body").attr("data-addhash");
|
||||
const time = hDoc.selectFirst("body").attr("data-time");
|
||||
await new Client().get(`https://userverify.netmirror.app/?fr3=${addhash}&a=y&t=${time}`);
|
||||
let body;
|
||||
let res;
|
||||
do {
|
||||
|
|
@ -209,4 +211,4 @@ class DefaultExtension extends MProvider {
|
|||
return videoList;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue