|
|
|
@ -128,7 +128,7 @@ internal abstract class YuriGardenParser(
|
|
|
|
else -> null
|
|
|
|
else -> null
|
|
|
|
},
|
|
|
|
},
|
|
|
|
description = jo.getString("description"),
|
|
|
|
description = jo.getString("description"),
|
|
|
|
contentRating = if (jo.getBooleanOrDefault("r18", false)) ContentRating.ADULT else ContentRating.SAFE,
|
|
|
|
contentRating = if (jo.getBooleanOrDefault("r18", false)) ContentRating.ADULT else ContentRating.SUGGESTIVE,
|
|
|
|
source = source,
|
|
|
|
source = source,
|
|
|
|
rating = jo.getFloatOrDefault("rating", -5f) / 5f,
|
|
|
|
rating = jo.getFloatOrDefault("rating", -5f) / 5f,
|
|
|
|
)
|
|
|
|
)
|
|
|
|
@ -163,7 +163,7 @@ internal abstract class YuriGardenParser(
|
|
|
|
contentRating = if (json.getBooleanOrDefault("r18", false)) {
|
|
|
|
contentRating = if (json.getBooleanOrDefault("r18", false)) {
|
|
|
|
ContentRating.ADULT
|
|
|
|
ContentRating.ADULT
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
ContentRating.SAFE
|
|
|
|
ContentRating.SUGGESTIVE
|
|
|
|
},
|
|
|
|
},
|
|
|
|
authors = authors,
|
|
|
|
authors = authors,
|
|
|
|
tags = tags,
|
|
|
|
tags = tags,
|
|
|
|
@ -219,4 +219,4 @@ internal abstract class YuriGardenParser(
|
|
|
|
)
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|