mirror of
https://github.com/kodjodevf/mangayomi-extensions.git
synced 2026-02-16 03:40:30 +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.15",
|
"version": "0.0.2",
|
||||||
"dateFormat": "",
|
"dateFormat": "",
|
||||||
"dateFormatLocale": "",
|
"dateFormatLocale": "",
|
||||||
"pkgPath": "anime/src/all/netflixmirror.js"
|
"pkgPath": "anime/src/all/netflixmirror.js"
|
||||||
@@ -14,12 +14,7 @@ const mangayomiSources = [{
|
|||||||
|
|
||||||
class DefaultExtension extends MProvider {
|
class DefaultExtension extends MProvider {
|
||||||
async request(url) {
|
async request(url) {
|
||||||
const baseUrl = this.source.baseUrl;
|
return (await new Client().get(this.source.baseUrl + url, { "hd": "on" })).body;
|
||||||
const body = (await new Client().get(baseUrl + url, { "hd": "on" })).body
|
|
||||||
if (body.includes("Just verify you're a human, Just click to below box, Without verification you can't access this app.")) {
|
|
||||||
throw new Error("reCAPTCHA ERROR:\nOpen webview and just verify you're a human, Without verification you can't access to contents.");
|
|
||||||
}
|
|
||||||
return body;
|
|
||||||
}
|
}
|
||||||
async getPopular(page) {
|
async getPopular(page) {
|
||||||
return await this.getPages(await this.request("/home"), ".tray-container, #top10")
|
return await this.getPages(await this.request("/home"), ".tray-container, #top10")
|
||||||
@@ -63,7 +58,7 @@ class DefaultExtension extends MProvider {
|
|||||||
const description = data.desc;
|
const description = data.desc;
|
||||||
let episodes = [];
|
let episodes = [];
|
||||||
if (data.episodes[0] === null) {
|
if (data.episodes[0] === null) {
|
||||||
episodes.push({ name, url });
|
episodes.push({ name, url: JSON.stringify({ id: url, name }) });
|
||||||
} else {
|
} else {
|
||||||
episodes = data.episodes.map(ep => ({
|
episodes = data.episodes.map(ep => ({
|
||||||
name: `${ep.s.replace('S', 'Season ')} ${ep.ep.replace('E', 'Episode ')} : ${ep.t}`,
|
name: `${ep.s.replace('S', 'Season ')} ${ep.ep.replace('E', 'Episode ')} : ${ep.t}`,
|
||||||
|
|||||||
Reference in New Issue
Block a user