Initial commit
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 1.8 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 1.1 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 2.3 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 4.4 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 5.8 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 19 KiB |
@@ -0,0 +1,40 @@
|
||||
package eu.kanade.tachiyomi.extension.ja.tonarinoyoungjump
|
||||
|
||||
import eu.kanade.tachiyomi.multisrc.gigaviewer.GigaViewer
|
||||
import eu.kanade.tachiyomi.source.model.SManga
|
||||
import okhttp3.OkHttpClient
|
||||
import org.jsoup.nodes.Element
|
||||
|
||||
class TonariNoYoungJump : GigaViewer(
|
||||
"Tonari no Young Jump",
|
||||
"https://tonarinoyj.jp",
|
||||
"ja",
|
||||
"https://cdn-img.tonarinoyj.jp/public/page",
|
||||
) {
|
||||
|
||||
override val supportsLatest: Boolean = false
|
||||
|
||||
override val client: OkHttpClient = super.client.newBuilder()
|
||||
.addInterceptor(::imageIntercept)
|
||||
.build()
|
||||
|
||||
override val publisher: String = "集英社"
|
||||
|
||||
override fun popularMangaSelector(): String = "ul.series-table-list li.subpage-table-list-item > a"
|
||||
|
||||
override fun popularMangaFromElement(element: Element): SManga = SManga.create().apply {
|
||||
title = element.selectFirst("h4.title")!!.text()
|
||||
thumbnail_url = element.selectFirst("div.subpage-image-wrapper img")!!.attr("data-src")
|
||||
.replace("{width}", "528")
|
||||
.replace("{height}", "528")
|
||||
setUrlWithoutDomain(element.attr("href"))
|
||||
}
|
||||
|
||||
override val chapterListMode = CHAPTER_LIST_LOCKED
|
||||
|
||||
override fun getCollections(): List<Collection> = listOf(
|
||||
Collection("連載中", ""),
|
||||
Collection("読切", "oneshot"),
|
||||
Collection("出張作品", "trial"),
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user