New Source: MangaWorld (IT) + Fixes

New Source:
- Manga World

JKAnime, TioAnime, ,AnimeFenix and AnimeWorld:
- Add await before this.parseAnimeList for readability
This commit is contained in:
RndDev123
2024-11-28 07:04:26 +01:00
parent c66f238097
commit 4a9f16c5ae
5 changed files with 297 additions and 17 deletions

View File

@@ -6,7 +6,7 @@ const mangayomiSources = [{
"iconUrl": "https://www3.animefenix.tv/themes/fenix-neo/images/AveFenix.png",
"typeSource": "single",
"isManga": false,
"version": "0.1.11",
"version": "0.1.12",
"dateFormat": "",
"dateFormatLocale": "",
"pkgPath": "anime/src/es/animefenix.js"
@@ -44,10 +44,10 @@ class DefaultExtension extends MProvider {
}[status.toLowerCase()] ?? 5;
}
async getPopular(page) {
return this.parseAnimeList(`${this.source.baseUrl}/animes?order=visits&page=${page}`);
return await this.parseAnimeList(`${this.source.baseUrl}/animes?order=visits&page=${page}`);
}
async getLatestUpdates(page) {
return this.parseAnimeList(`${this.source.baseUrl}/animes?order=updated&page=${page}`);
return await this.parseAnimeList(`${this.source.baseUrl}/animes?order=updated&page=${page}`);
}
async search(query, page, filters) {
query = query.trim().replaceAll(/\ +/g, "+");
@@ -72,7 +72,7 @@ class DefaultExtension extends MProvider {
url += `&order=${filters[3].values[filters[3].state].value}`;
url += `&page=${page}`;
return this.parseAnimeList(url);
return await this.parseAnimeList(url);
}
async getDetail(url) {
const detail = {};

View File

@@ -6,7 +6,7 @@ const mangayomiSources = [{
"iconUrl": "https://cdn.jkanime.net/logo_jk.png",
"typeSource": "single",
"isManga": false,
"version": "0.1.11",
"version": "0.1.12",
"dateFormat": "",
"dateFormatLocale": "",
"pkgPath": "anime/src/es/jkanime.js"
@@ -61,7 +61,7 @@ class DefaultExtension extends MProvider {
return { "list": list, "hasNextPage": false };
}
async getLatestUpdates(page) {
return this.parseAnimeList(`${this.source.baseUrl}/directorio/${page}/`);
return await this.parseAnimeList(`${this.source.baseUrl}/directorio/${page}/`);
}
async search(query, page, filters) {
query = query.trim().replaceAll(/\ +/g, "_");
@@ -85,7 +85,7 @@ class DefaultExtension extends MProvider {
url += `/${filters[7].values[filters[7].state].value}`;
url += `/${filters[8].values[filters[8].state].value}`;
}
return this.parseAnimeList(url);
return await this.parseAnimeList(url);
}
async getDetail(url) {
let res = await this.client.get(url);

View File

@@ -6,7 +6,7 @@ const mangayomiSources = [{
"iconUrl": "https://tioanime.com/assets/img/tio_fb.jpg",
"typeSource": "single",
"isManga": false,
"version": "0.1.1",
"version": "0.1.11",
"dateFormat": "",
"dateFormatLocale": "",
"pkgPath": "anime/src/es/tioanime.js"
@@ -42,15 +42,15 @@ class DefaultExtension extends MProvider {
}[status] ?? 5;
}
async getPopular(page) {
return this.parseAnimeList(`${this.source.baseUrl}/directorio?p=${page}`);
return await this.parseAnimeList(`${this.source.baseUrl}/directorio?p=${page}`);
}
async getLatestUpdates(page) {
return this.parseAnimeList(`${this.source.baseUrl}/directorio?p=${page}`);
return await this.parseAnimeList(`${this.source.baseUrl}/directorio?p=${page}`);
}
async search(query, page, filters) {
query = query.trim().replaceAll(/\ +/g, "+");
let url = `${this.source.baseUrl}/directorio?q=${query}&p=${page}`;
return this.parseAnimeList(url);
return await this.parseAnimeList(url);
}
async getDetail(url) {
const res = await this.client.get(this.source.baseUrl + url);