This commit is contained in:
kodjomoustapha
2024-12-03 12:15:15 +01:00
parent 995fb59cce
commit 59433f2846

View File

@@ -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");