mirror of
https://github.com/kodjodevf/mangayomi-extensions.git
synced 2026-02-14 10:51:17 +00:00
Refactor
This commit is contained in:
@@ -145,13 +145,10 @@ class DataLifeEngine extends MProvider {
|
||||
}
|
||||
|
||||
MPages animeFromElement(String res, String baseUrl) {
|
||||
final htmls = querySelectorAll(res,
|
||||
selector: "div#dle-content > div.mov",
|
||||
typeElement: 1,
|
||||
attributes: "",
|
||||
typeRegExp: 0);
|
||||
final htmls = parseHtml(res).select("div#dle-content > div.mov");
|
||||
List<MManga> animeList = [];
|
||||
for (var html in htmls) {
|
||||
for (var h in htmls) {
|
||||
final html = h.innerHtml;
|
||||
final url = xpath(html, '//a/@href').first;
|
||||
final name = xpath(html, '//a/text()').first;
|
||||
final image = xpath(html, '//div[contains(@class,"mov")]/img/@src').first;
|
||||
|
||||
Reference in New Issue
Block a user