honeyManga: filter payed chapters (#7795)

* honeyManga: filter payed chapters

* honeyManga: checklist

* honeyManga: formatting
This commit is contained in:
Hen 2025-03-01 04:24:15 +01:00 committed by Draff
parent 481fd54452
commit 20f78a35bb
No known key found for this signature in database
GPG Key ID: E8A89F3211677653
3 changed files with 3 additions and 2 deletions

View File

@ -1,7 +1,7 @@
ext {
extName = 'HoneyManga'
extClass = '.HoneyManga'
extVersionCode = 3
extVersionCode = 4
isNsfw = true
}

View File

@ -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}"

View File

@ -46,4 +46,5 @@ data class HoneyMangaChapterDto(
val subChapterNum: Int,
val mangaId: String,
val lastUpdated: String,
val isMonetized: Boolean,
)