mirror of
https://github.com/kodjodevf/mangayomi-extensions.git
synced 2026-02-14 10:51:17 +00:00
Update madara.dart
This commit is contained in:
committed by
GitHub
parent
6863c8a8ec
commit
42334a164a
@@ -168,21 +168,10 @@ class Madara extends MProvider {
|
||||
"";
|
||||
|
||||
final imageElement = document.selectFirst("div.summary_image img");
|
||||
var image = imageElement?.attr("src") ??
|
||||
imageElement?.attr("data-src") ??
|
||||
imageElement?.attr("data-lazy-src") ??
|
||||
imageElement?.attr("srcset");
|
||||
if (image != null) {
|
||||
if (image.contains("dflazy")) {
|
||||
image = imageElement?.attr("data-src") ??
|
||||
imageElement?.attr("data-src") ??
|
||||
imageElement?.attr("data-lazy-src") ??
|
||||
imageElement?.attr("srcset");
|
||||
}
|
||||
if (image != null) {
|
||||
manga.imageUrl = image;
|
||||
}
|
||||
}
|
||||
manga.imageUrl = imageElement?.attr("data-src") ??
|
||||
imageElement?.attr("data-lazy-src") ??
|
||||
imageElement?.attr("srcset") ??
|
||||
imageElement?.getSrc;
|
||||
|
||||
final id = document
|
||||
.selectFirst("div[id^=manga-chapters-holder]")
|
||||
|
||||
Reference in New Issue
Block a user