This commit is contained in:
Moustapha Kodjo Amadou
2025-01-13 17:50:16 +01:00
parent 68c9bcd124
commit cd24fb6322
2 changed files with 15 additions and 12 deletions

View File

@@ -2,7 +2,7 @@ import '../../../../model/source.dart';
import 'src/hianime/hianime.dart'; import 'src/hianime/hianime.dart';
import 'src/kaido/kaido.dart'; import 'src/kaido/kaido.dart';
const _zorothemeVersion = "0.1.0"; const _zorothemeVersion = "0.1.1";
const _zorothemeSourceCodeUrl = const _zorothemeSourceCodeUrl =
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/$branchName/dart/anime/multisrc/zorotheme/zorotheme.dart"; "https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/$branchName/dart/anime/multisrc/zorotheme/zorotheme.dart";

View File

@@ -127,18 +127,21 @@ class ZoroTheme extends MProvider {
final res = (await client.get(Uri.parse("${source.baseUrl}$url"))).body; final res = (await client.get(Uri.parse("${source.baseUrl}$url"))).body;
MManga anime = MManga(); MManga anime = MManga();
final status = xpath(res, final status = xpath(res,
'//*[@class="anisc-info"]/div[contains(text(),"Status:")]/span[2]/text()') '//*[@class="anisc-info"]/div[contains(text(),"Status:")]/span[2]/text()');
.first; if (status.isNotEmpty) {
anime.status = parseStatus(status.first, statusList);
}
anime.status = parseStatus(status, statusList); final author = xpath(res,
anime.author = xpath(res, '//*[@class="anisc-info"]/div[contains(text(),"Studios:")]/span/text()');
'//*[@class="anisc-info"]/div[contains(text(),"Studios:")]/span/text()') if (author.isNotEmpty) {
.first anime.author = author.first.replaceAll("Studios:", "");
.replaceAll("Studios:", ""); }
anime.description = xpath(res, final description = xpath(res,
'//*[@class="anisc-info"]/div[contains(text(),"Overview:")]/text()') '//*[@class="anisc-info"]/div[contains(text(),"Overview:")]/text()');
.first if (description.isNotEmpty) {
.replaceAll("Overview:", ""); anime.description = description.first.replaceAll("Overview:", "");
}
final genre = xpath(res, final genre = xpath(res,
'//*[@class="anisc-info"]/div[contains(text(),"Genres:")]/a/text()'); '//*[@class="anisc-info"]/div[contains(text(),"Genres:")]/a/text()');