diff --git a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/heancms/HeanCms.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/heancms/HeanCms.kt index 593b9f698..5f48b71f0 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/heancms/HeanCms.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/heancms/HeanCms.kt @@ -220,7 +220,7 @@ abstract class HeanCms( val seriesDetails = seriesSlugMap?.get(seriesSlug) val currentSlug = seriesDetails?.slug ?: seriesSlug - val currentStatus = seriesDetails?.status ?: SManga.UNKNOWN + val currentStatus = seriesDetails?.status ?: manga.status val apiHeaders = headersBuilder() .add("Accept", ACCEPT_JSON) @@ -248,6 +248,7 @@ abstract class HeanCms( val currentTimestamp = System.currentTimeMillis() return result.chapters.orEmpty() + .filterNot { it.price == 1 } .map { it.toSChapter(seriesSlug, dateFormat) } .filter { it.date_upload <= currentTimestamp } .reversed() diff --git a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/heancms/HeanCmsDto.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/heancms/HeanCmsDto.kt index 9695f5cf9..72086cf7c 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/heancms/HeanCmsDto.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/heancms/HeanCmsDto.kt @@ -91,6 +91,7 @@ data class HeanCmsChapterDto( @SerialName("chapter_slug") val slug: String, val index: String, @SerialName("created_at") val createdAt: String, + val price: Int? = null, ) { fun toSChapter(seriesSlug: String, dateFormat: SimpleDateFormat): SChapter = SChapter.create().apply { diff --git a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/heancms/HeanCmsGenerator.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/heancms/HeanCmsGenerator.kt index 38a07327b..c49f263f7 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/heancms/HeanCmsGenerator.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/heancms/HeanCmsGenerator.kt @@ -12,7 +12,7 @@ class HeanCmsGenerator : ThemeSourceGenerator { override val baseVersionCode: Int = 13 override val sources = listOf( - SingleLang("Omega Scans", "https://omegascans.org", "en", isNsfw = true, overrideVersionCode = 16), + SingleLang("Omega Scans", "https://omegascans.org", "en", isNsfw = true, overrideVersionCode = 17), SingleLang("Reaper Scans", "https://reaperscans.net", "pt-BR", overrideVersionCode = 35), SingleLang("YugenMangas", "https://yugenmangas.com", "es", isNsfw = true, overrideVersionCode = 1), )