mirror of
https://github.com/kodjodevf/mangayomi-extensions.git
synced 2026-02-14 10:51:17 +00:00
fix netflixmirror
This commit is contained in:
committed by
GitHub
parent
012b801cc6
commit
2bf6bfb2b1
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user