From a82e41aabb2f2bc5ced506193129abba6bb057da Mon Sep 17 00:00:00 2001 From: Koitharu Date: Wed, 12 Mar 2025 13:01:43 +0200 Subject: [PATCH] Deprecate Manga.isNsfw --- src/main/kotlin/org/koitharu/kotatsu/parsers/model/Manga.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/kotlin/org/koitharu/kotatsu/parsers/model/Manga.kt b/src/main/kotlin/org/koitharu/kotatsu/parsers/model/Manga.kt index 86c1be8e..7ff1874d 100644 --- a/src/main/kotlin/org/koitharu/kotatsu/parsers/model/Manga.kt +++ b/src/main/kotlin/org/koitharu/kotatsu/parsers/model/Manga.kt @@ -176,6 +176,7 @@ public data class Manga( public val hasRating: Boolean get() = rating > 0f && rating <= 1f + @Deprecated("Use contentRating instead", ReplaceWith("contentRating == ContentRating.ADULT")) public val isNsfw: Boolean get() = contentRating == ContentRating.ADULT