new source: Temple Scan (#16653)
This commit is contained in:
parent
7ddf4ac5c7
commit
8b15072a4c
Binary file not shown.
After Width: | Height: | Size: 6.0 KiB |
Binary file not shown.
After Width: | Height: | Size: 3.1 KiB |
Binary file not shown.
After Width: | Height: | Size: 9.2 KiB |
Binary file not shown.
After Width: | Height: | Size: 17 KiB |
Binary file not shown.
After Width: | Height: | Size: 25 KiB |
Binary file not shown.
After Width: | Height: | Size: 102 KiB |
|
@ -0,0 +1,47 @@
|
||||||
|
package eu.kanade.tachiyomi.extension.en.templescan
|
||||||
|
|
||||||
|
import eu.kanade.tachiyomi.multisrc.madara.Madara
|
||||||
|
import eu.kanade.tachiyomi.network.interceptor.rateLimit
|
||||||
|
import eu.kanade.tachiyomi.source.model.SChapter
|
||||||
|
import eu.kanade.tachiyomi.source.model.SManga
|
||||||
|
import okhttp3.OkHttpClient
|
||||||
|
import org.jsoup.nodes.Element
|
||||||
|
import java.text.SimpleDateFormat
|
||||||
|
import java.util.Locale
|
||||||
|
|
||||||
|
class TempleScan : Madara(
|
||||||
|
"Temple Scan",
|
||||||
|
"https://templescan.net",
|
||||||
|
"en",
|
||||||
|
SimpleDateFormat("dd.MM.yyyy", Locale.ENGLISH),
|
||||||
|
) {
|
||||||
|
override val mangaSubString = "comic"
|
||||||
|
override val useNewChapterEndpoint = true
|
||||||
|
override fun popularMangaSelector() = "div.c-tabs-item > div > div"
|
||||||
|
override val popularMangaUrlSelector = "div.series-box a"
|
||||||
|
override val mangaDetailsSelectorStatus = ".post-content_item:contains(Status) .summary-content"
|
||||||
|
|
||||||
|
override val client: OkHttpClient = super.client.newBuilder()
|
||||||
|
.rateLimit(1)
|
||||||
|
.build()
|
||||||
|
|
||||||
|
override fun popularMangaFromElement(element: Element): SManga {
|
||||||
|
return super.popularMangaFromElement(element).apply {
|
||||||
|
title = element.select(popularMangaUrlSelector).text()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
override fun searchPage(page: Int): String {
|
||||||
|
return if (page > 1) {
|
||||||
|
"page/$page/"
|
||||||
|
} else {
|
||||||
|
""
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
override fun chapterFromElement(element: Element): SChapter {
|
||||||
|
return super.chapterFromElement(element).apply {
|
||||||
|
name = element.select(".chapter-manhwa-title").text()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -394,6 +394,7 @@ class MadaraGenerator : ThemeSourceGenerator {
|
||||||
SingleLang("Taurus Fansub", "https://taurusfansub.com", "es"),
|
SingleLang("Taurus Fansub", "https://taurusfansub.com", "es"),
|
||||||
SingleLang("Tecno Scan", "https://tecnoscann.com", "es"),
|
SingleLang("Tecno Scan", "https://tecnoscann.com", "es"),
|
||||||
SingleLang("TeenManhua", "https://teenmanhua.com", "en"),
|
SingleLang("TeenManhua", "https://teenmanhua.com", "en"),
|
||||||
|
SingleLang("Temple Scan", "https://templescan.net", "en"),
|
||||||
SingleLang("The Beginning After The End", "https://www.thebeginningaftertheend.fr", "fr", overrideVersionCode = 1),
|
SingleLang("The Beginning After The End", "https://www.thebeginningaftertheend.fr", "fr", overrideVersionCode = 1),
|
||||||
SingleLang("The Guild", "https://theguildscans.com", "en"),
|
SingleLang("The Guild", "https://theguildscans.com", "en"),
|
||||||
SingleLang("The Sugar", "https://thesugarscan.com", "pt-BR"),
|
SingleLang("The Sugar", "https://thesugarscan.com", "pt-BR"),
|
||||||
|
|
Loading…
Reference in New Issue