mirror of
https://github.com/kodjodevf/mangayomi-extensions.git
synced 2026-02-14 10:51:17 +00:00
Merge pull request #142 from hollow-frenk/main
animesaturn: fix for this:
This commit is contained in:
@@ -45,7 +45,7 @@ class AnimeSaturn extends MProvider {
|
|||||||
|
|
||||||
final urls = xpath(res, '//*[@class="card mb-4 shadow-sm"]/a/@href');
|
final urls = xpath(res, '//*[@class="card mb-4 shadow-sm"]/a/@href');
|
||||||
|
|
||||||
final names = xpath(res, '///*[@class="card mb-4 shadow-sm"]/a/@title');
|
final names = xpath(res, '//*[@class="card mb-4 shadow-sm"]/a/@title');
|
||||||
|
|
||||||
final images = xpath(res,
|
final images = xpath(res,
|
||||||
'//*[@class="card mb-4 shadow-sm"]/a/img[@class="new-anime"]/@src');
|
'//*[@class="card mb-4 shadow-sm"]/a/img[@class="new-anime"]/@src');
|
||||||
@@ -149,15 +149,18 @@ class AnimeSaturn extends MProvider {
|
|||||||
|
|
||||||
final res = (await client.get(Uri.parse(url))).body;
|
final res = (await client.get(Uri.parse(url))).body;
|
||||||
MManga anime = MManga();
|
MManga anime = MManga();
|
||||||
final details = xpath(res,
|
final detailsList = xpath(res,
|
||||||
'//div[@class="container shadow rounded bg-dark-as-box mb-3 p-3 w-100 text-white"]/text()')
|
'//div[@class="container shadow rounded bg-dark-as-box mb-3 p-3 w-100 text-white"]/text()');
|
||||||
.first;
|
if (detailsList.isNotEmpty) {
|
||||||
|
final details = detailsList.first;
|
||||||
|
|
||||||
|
anime.status = parseStatus(
|
||||||
|
details.substring(
|
||||||
|
details.indexOf("Stato:") + 6, details.indexOf("Data di uscita:")),
|
||||||
|
statusList);
|
||||||
|
anime.author = details.substring(7, details.indexOf("Stato:"));
|
||||||
|
}
|
||||||
|
|
||||||
anime.status = parseStatus(
|
|
||||||
details.substring(
|
|
||||||
details.indexOf("Stato:") + 6, details.indexOf("Data di uscita:")),
|
|
||||||
statusList);
|
|
||||||
anime.author = details.substring(7, details.indexOf("Stato:"));
|
|
||||||
final description = xpath(res, '//*[@id="shown-trama"]/text()');
|
final description = xpath(res, '//*[@id="shown-trama"]/text()');
|
||||||
final descriptionFull = xpath(res, '//*[@id="full-trama"]/text()');
|
final descriptionFull = xpath(res, '//*[@id="full-trama"]/text()');
|
||||||
if (description.isNotEmpty) {
|
if (description.isNotEmpty) {
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import '../../../../../model/source.dart';
|
import '../../../../../model/source.dart';
|
||||||
|
|
||||||
Source get animesaturn => _animesaturn;
|
Source get animesaturn => _animesaturn;
|
||||||
const _animesaturnVersion = "0.0.4";
|
const _animesaturnVersion = "0.0.5";
|
||||||
const _animesaturnCodeUrl =
|
const _animesaturnCodeUrl =
|
||||||
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/$branchName/dart/anime/src/it/animesaturn/animesaturn.dart";
|
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/$branchName/dart/anime/src/it/animesaturn/animesaturn.dart";
|
||||||
Source _animesaturn = Source(
|
Source _animesaturn = Source(
|
||||||
|
|||||||
Reference in New Issue
Block a user