Mark HenChan manga as nsfw

This commit is contained in:
Koitharu
2021-12-10 18:07:40 +02:00
parent eefd1129f7
commit 8f2cf8141a
2 changed files with 6 additions and 8 deletions

View File

@@ -18,12 +18,10 @@ class HenChanRepository(loaderContext: MangaLoaderContext) : ChanRepository(load
sortOrder: SortOrder?
): List<Manga> {
return super.getList2(offset, query, tags, sortOrder).map {
val cover = it.coverUrl
if (cover.contains("_blur")) {
it.copy(coverUrl = cover.replace("_blur", ""))
} else {
it
}
it.copy(
coverUrl = it.coverUrl.replace("_blur", ""),
isNsfw = true,
)
}
}