mirror of
https://github.com/kodjodevf/mangayomi-extensions.git
synced 2026-02-17 20:30:33 +00:00
fix
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.5",
|
"version": "0.0.55",
|
||||||
"dateFormat": "",
|
"dateFormat": "",
|
||||||
"dateFormatLocale": "",
|
"dateFormatLocale": "",
|
||||||
"pkgPath": "anime/src/all/netflixmirror.js"
|
"pkgPath": "anime/src/all/netflixmirror.js"
|
||||||
@@ -19,7 +19,7 @@ class DefaultExtension extends MProvider {
|
|||||||
cookie = preferences.getString("cookie", "");
|
cookie = preferences.getString("cookie", "");
|
||||||
const check = await new Client().get(`${this.source.baseUrl}/home`, { "cookie": cookie });
|
const check = await new Client().get(`${this.source.baseUrl}/home`, { "cookie": cookie });
|
||||||
const elements = new Document(check.body).select(".tray-container, #top10");
|
const elements = new Document(check.body).select(".tray-container, #top10");
|
||||||
if (elements) {
|
if (elements && elements.length > 0) {
|
||||||
return cookie;
|
return cookie;
|
||||||
}
|
}
|
||||||
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");
|
||||||
|
|||||||
Reference in New Issue
Block a user