mirror of
https://github.com/kodjodevf/mangayomi-extensions.git
synced 2026-02-14 02:41:39 +00:00
animesaturn: fix for this:
dart_eval runtime exception: Bad state: No element
List.first (dart:core-patch/growable_array.dart:344)
SIterable.SgetProperty (package:dart_eval/src/eval/shared/stdlib/core/iterable.dart:609)
SList. S getProperty (package:dart-_eval/s/eval/shared/stdib/core/list.dart:900)
at < asynchronous gap>
Shangri-La Frontier 2
RUNTIME STATE
6-=-=========
Program offset: 831
Shangri-La Frontier 2
Stack sample: [L7: Instance of "$Future<$Response>', L8: Instance of '$Response', L9: $" «html» <body» «script type="text/javascript" src="/min.js" > </script»<noscript»<h1 style="text-align:center;color:red;"› «strong»Please turn JavaScript on and reload the page.</ strong> </h1></noscripts ‹script»function toNumbers(d)(var e=;d.replace(//g,function(d)epush(parselnt(d,16));return e/function toHexfor(vard=[d=1==arguments.length&&arguments|01.constructor==Array?arguments[Ol:arguments, e=**,f=0;f<d.length;f+
+)e+=(16>dff]?")". "*)+d[f|.toString(16);return e.toLowerCase())var a=toNumbers("F4baf9d74d4cb868c5317e9802ca7c1f""),b=toNumbers("Ic2aabd2a4a9ed25aeae78669546c8f9"),c=toNumbers("2e34487f1b463e342a9ec7986e427e80");document.cookie="ASNew-
Gv="+ toHex(slowAES.decrypt(c,2,a,b))+"; path=/";location.href="http://www.animesaturn.cx/anime/Dan-Da-Dan?d=1";</script></body></html>", L10: Instance of '$MManga', L11: Function{func: Closure: (dynamic, dynamic, List<$Value?>) => $Value? from Function
'Xpath@1865285211': static.), L12: $"//div@class="container shadow rounded bg-dark-as-box mb-3 p-3 w-100 text-white"/textO", L13: D, *L14: null, L15: null, L16: null]
Args sample: 1
Call stack: [0, -1]
TRACE:
Nanatsu no Taizai: Mokushiroku no Yonkishi 2
Episodio 9
825: PushConstant (C55)
Tail: 100 Years Quest
826: BoxString (L12)
827: PushArg (L9)
Dragon Ball Daima
828: PushArg (L12)
829: InvokeDynamic (LO.C8)
on Ball Daimal
830: PushReturnValue O
831: PushObjectProperty (L13.C56) < < < EXCEPTION
832: PushReturnValue ()
833: PushObjectProperty (LO.C57)
834: PushReturnValue
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 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,
|
||||
'//*[@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;
|
||||
MManga anime = MManga();
|
||||
final details = xpath(res,
|
||||
'//div[@class="container shadow rounded bg-dark-as-box mb-3 p-3 w-100 text-white"]/text()')
|
||||
.first;
|
||||
final detailsList = xpath(res,
|
||||
'//div[@class="container shadow rounded bg-dark-as-box mb-3 p-3 w-100 text-white"]/text()');
|
||||
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 descriptionFull = xpath(res, '//*[@id="full-trama"]/text()');
|
||||
if (description.isNotEmpty) {
|
||||
@@ -356,4 +359,4 @@ class AnimeSaturn extends MProvider {
|
||||
|
||||
AnimeSaturn main(MSource source) {
|
||||
return AnimeSaturn(source: source);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user