add MangaLionz source (#6208)

* Add files via upload

* Update MadaraGenerator.kt
This commit is contained in:
zeredouni 2021-03-18 15:44:08 +01:00 committed by GitHub
parent 1438fb4c43
commit 7316207883
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 25 additions and 0 deletions

View File

@ -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
}
}

View File

@ -103,6 +103,7 @@ class MadaraGenerator : ThemeSourceGenerator {
SingleLang("MangaKomi", "https://mangakomi.com", "en"), SingleLang("MangaKomi", "https://mangakomi.com", "en"),
SingleLang("Manga Land Arabic", "https://mangalandarabic.com", "ar"), SingleLang("Manga Land Arabic", "https://mangalandarabic.com", "ar"),
SingleLang("مانجا ليك", "https://mangalek.com", "ar", className = "Mangalek"), SingleLang("مانجا ليك", "https://mangalek.com", "ar", className = "Mangalek"),
SingleLang("MangaLionz", "https://mangalionz.com", "ar"),
SingleLang("Manga Lord", "https://mangalord.com", "en"), SingleLang("Manga Lord", "https://mangalord.com", "en"),
SingleLang("Manganelo.link", "https://manganelo.link", "en", className = "ManganeloLink"), SingleLang("Manganelo.link", "https://manganelo.link", "en", className = "ManganeloLink"),
SingleLang("Manga Nine", "https://manganine.com", "en"), SingleLang("Manga Nine", "https://manganine.com", "en"),