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://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);