package eu.kanade.tachiyomi.extension.ar.mangalionz import eu.kanade.tachiyomi.multisrc.madara.Madara import eu.kanade.tachiyomi.source.model.SManga import org.jsoup.nodes.Element class MangaLionz : Madara("MangaLionz", "https://mangalionz.com", "ar") { override fun popularMangaFromElement(element: Element): SManga { val manga = SManga.create() with(element) { select(popularMangaUrlSelector).first()?.let { manga.setUrlWithoutDomain(it.attr("abs:href")) manga.title = it.ownText() } select("img").first()?.let { manga.thumbnail_url = imageFromElement(it)?.replace("mangalionz", "mangalek") } } return manga } }