parent
661311c13b
commit
7c2504bb1f
|
@ -2,6 +2,7 @@ package eu.kanade.tachiyomi.extension.es.scambertraslator
|
|||
|
||||
import eu.kanade.tachiyomi.multisrc.madara.Madara
|
||||
import eu.kanade.tachiyomi.source.model.SChapter
|
||||
import eu.kanade.tachiyomi.source.model.SManga
|
||||
import org.jsoup.nodes.Element
|
||||
import java.text.SimpleDateFormat
|
||||
import java.util.Locale
|
||||
|
@ -14,12 +15,30 @@ class ScamberTraslator : Madara(
|
|||
) {
|
||||
override val useNewChapterEndpoint = true
|
||||
|
||||
override val popularMangaUrlSelector = "div.item-thumb-slime a"
|
||||
override fun chapterListSelector() = "li.wp-manga-chapter:has(a[href*=$baseUrl])" // The source has hidden links to external sites by default
|
||||
|
||||
override val mangaDetailsSelectorGenre = "div.genres-container-slime-slime a"
|
||||
override val mangaDetailsSelectorThumbnail = "div.thumb-half-slime img"
|
||||
override val mangaDetailsSelectorStatus = "div.status-slime"
|
||||
|
||||
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.attr("title")
|
||||
}
|
||||
|
||||
select("img").first()?.let {
|
||||
manga.thumbnail_url = imageFromElement(it)
|
||||
}
|
||||
}
|
||||
|
||||
return manga
|
||||
}
|
||||
|
||||
override fun chapterFromElement(element: Element): SChapter {
|
||||
val chapter = SChapter.create()
|
||||
|
||||
|
|
|
@ -369,7 +369,7 @@ class MadaraGenerator : ThemeSourceGenerator {
|
|||
SingleLang("Sagrado Império da Britannia", "https://imperiodabritannia.com", "pt-BR", className = "ImperioDaBritannia"),
|
||||
SingleLang("SamuraiScan", "https://samuraiscan.com", "es", overrideVersionCode = 1),
|
||||
SingleLang("Sawamics", "https://sawamics.com", "en"),
|
||||
SingleLang("ScamberTraslator", "https://scambertraslator.com", "es", overrideVersionCode = 1),
|
||||
SingleLang("ScamberTraslator", "https://scambertraslator.com", "es", overrideVersionCode = 2),
|
||||
SingleLang("Scans Raw", "https://scansraw.com", "en", overrideVersionCode = 1),
|
||||
SingleLang("Sdl scans", "https://sdlscans.com", "es", className = "SdlScans"),
|
||||
SingleLang("Sensaina Yuri", "https://sensainayuri.dropescan.com", "pt-BR", isNsfw = true, overrideVersionCode = 2),
|
||||
|
|
Loading…
Reference in New Issue