diff --git a/multisrc/overrides/madara/mangalionz/src/MangaLionz.kt b/multisrc/overrides/madara/mangalionz/src/MangaLionz.kt new file mode 100644 index 000000000..cb6546f91 --- /dev/null +++ b/multisrc/overrides/madara/mangalionz/src/MangaLionz.kt @@ -0,0 +1,24 @@ +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 + } +} diff --git a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/madara/MadaraGenerator.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/madara/MadaraGenerator.kt index b320b958a..8f0030cd8 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/madara/MadaraGenerator.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/madara/MadaraGenerator.kt @@ -103,6 +103,7 @@ class MadaraGenerator : ThemeSourceGenerator { SingleLang("MangaKomi", "https://mangakomi.com", "en"), SingleLang("Manga Land Arabic", "https://mangalandarabic.com", "ar"), SingleLang("مانجا ليك", "https://mangalek.com", "ar", className = "Mangalek"), + SingleLang("MangaLionz", "https://mangalionz.com", "ar"), SingleLang("Manga Lord", "https://mangalord.com", "en"), SingleLang("Manganelo.link", "https://manganelo.link", "en", className = "ManganeloLink"), SingleLang("Manga Nine", "https://manganine.com", "en"),