mirror of
https://github.com/kodjodevf/mangayomi-extensions.git
synced 2026-02-14 10:51:17 +00:00
+
This commit is contained in:
@@ -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";
|
||||||
|
|
||||||
|
|||||||
@@ -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()');
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user