honeyManga: filter payed chapters (#7795)
* honeyManga: filter payed chapters * honeyManga: checklist * honeyManga: formatting
This commit is contained in:
parent
481fd54452
commit
20f78a35bb
@ -1,7 +1,7 @@
|
||||
ext {
|
||||
extName = 'HoneyManga'
|
||||
extClass = '.HoneyManga'
|
||||
extVersionCode = 3
|
||||
extVersionCode = 4
|
||||
isNsfw = true
|
||||
}
|
||||
|
||||
|
@ -106,7 +106,7 @@ class HoneyManga : HttpSource() {
|
||||
|
||||
override fun chapterListParse(response: Response): List<SChapter> {
|
||||
val result = response.asClass<HoneyMangaChapterResponseDto>()
|
||||
return result.data.map {
|
||||
return result.data.filter { !it.isMonetized }.map {
|
||||
val suffix = if (it.subChapterNum == 0) "" else ".${it.subChapterNum}"
|
||||
SChapter.create().apply {
|
||||
url = "$baseUrl/read/${it.id}/${it.mangaId}"
|
||||
|
@ -46,4 +46,5 @@ data class HoneyMangaChapterDto(
|
||||
val subChapterNum: Int,
|
||||
val mangaId: String,
|
||||
val lastUpdated: String,
|
||||
val isMonetized: Boolean,
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user