parent
9c0fefbd7f
commit
3835cb30f5
@ -1,10 +0,0 @@
|
||||
ext {
|
||||
extName = 'NhatTruyenS (unoriginal)'
|
||||
extClass = '.NhatTruyenS'
|
||||
themePkg = 'wpcomics'
|
||||
baseUrl = 'https://nhattruyensss.com'
|
||||
overrideVersionCode = 3
|
||||
isNsfw = false
|
||||
}
|
||||
|
||||
apply from: "$rootDir/common.gradle"
|
Binary file not shown.
Before Width: | Height: | Size: 3.1 KiB |
Binary file not shown.
Before Width: | Height: | Size: 1.9 KiB |
Binary file not shown.
Before Width: | Height: | Size: 4.2 KiB |
Binary file not shown.
Before Width: | Height: | Size: 7.4 KiB |
Binary file not shown.
Before Width: | Height: | Size: 10 KiB |
@ -1,54 +0,0 @@
|
||||
package eu.kanade.tachiyomi.extension.vi.nhattruyens
|
||||
|
||||
import eu.kanade.tachiyomi.multisrc.wpcomics.WPComics
|
||||
import eu.kanade.tachiyomi.source.model.MangasPage
|
||||
import eu.kanade.tachiyomi.source.model.SManga
|
||||
import eu.kanade.tachiyomi.util.asJsoup
|
||||
import okhttp3.Response
|
||||
import org.jsoup.nodes.Document
|
||||
import java.text.SimpleDateFormat
|
||||
import java.util.Locale
|
||||
|
||||
class NhatTruyenS : WPComics(
|
||||
"NhatTruyenS (unoriginal)",
|
||||
"https://nhattruyensss.com",
|
||||
"vi",
|
||||
dateFormat = SimpleDateFormat("dd/MM/yy", Locale.getDefault()),
|
||||
gmtOffset = null,
|
||||
) {
|
||||
override val popularPath = "truyen-hot"
|
||||
|
||||
/**
|
||||
* Remove fake-manga ads
|
||||
*/
|
||||
override fun searchMangaParse(response: Response): MangasPage {
|
||||
val document = response.asJsoup()
|
||||
|
||||
val mangas = document.select(searchMangaSelector())
|
||||
.filter { element -> element.select("figure > div > a[rel='nofollow']").isNullOrEmpty() }
|
||||
.map { element ->
|
||||
searchMangaFromElement(element)
|
||||
}
|
||||
|
||||
val hasNextPage = searchMangaNextPageSelector().let { selector ->
|
||||
document.select(selector).first()
|
||||
} != null
|
||||
|
||||
return MangasPage(mangas, hasNextPage)
|
||||
}
|
||||
|
||||
// Details
|
||||
override fun mangaDetailsParse(document: Document): SManga {
|
||||
return SManga.create().apply {
|
||||
document.select("article#item-detail").let { info ->
|
||||
author = info.select("li.author p.col-xs-8").text()
|
||||
status = info.select("li.status p.col-xs-8").text().toStatus()
|
||||
genre = info.select("li.kind p.col-xs-8 a").joinToString { it.text() }
|
||||
val otherName = info.select("h2.other-name").text()
|
||||
description = info.select("div.detail-content div.summary").text() +
|
||||
if (otherName.isNotBlank()) "\n\n ${intl["OTHER_NAME"]}: $otherName" else ""
|
||||
thumbnail_url = imageOrNull(info.select("div.col-image img").first()!!)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user