|
|
|
@ -138,6 +138,11 @@ internal class GocTruyenTranh(context: MangaLoaderContext) :
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
emptySet()
|
|
|
|
emptySet()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Check NSFW manga by tags, API / Site not have this information
|
|
|
|
|
|
|
|
val checkNsfw = tags.any { tag ->
|
|
|
|
|
|
|
|
tag.key in setOf("25", "39", "41", "43", "57", "63")
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Manga(
|
|
|
|
Manga(
|
|
|
|
id = generateUid(mangaUrl),
|
|
|
|
id = generateUid(mangaUrl),
|
|
|
|
@ -147,7 +152,7 @@ internal class GocTruyenTranh(context: MangaLoaderContext) :
|
|
|
|
altTitle = item.optString("origin_name")?.takeUnless { it == "null" || it.isEmpty() },
|
|
|
|
altTitle = item.optString("origin_name")?.takeUnless { it == "null" || it.isEmpty() },
|
|
|
|
description = item.optString("content"),
|
|
|
|
description = item.optString("content"),
|
|
|
|
rating = RATING_UNKNOWN,
|
|
|
|
rating = RATING_UNKNOWN,
|
|
|
|
isNsfw = isNsfwSource,
|
|
|
|
isNsfw = checkNsfw || isNsfwSource,
|
|
|
|
coverUrl = item.optString("thumbnail"),
|
|
|
|
coverUrl = item.optString("thumbnail"),
|
|
|
|
tags = tags,
|
|
|
|
tags = tags,
|
|
|
|
state = when (item.optString("status")) {
|
|
|
|
state = when (item.optString("status")) {
|
|
|
|
|