This commit is contained in:
tom5079
2019-12-19 09:33:10 +09:00
parent 2d3fb75576
commit 0ef7b358e0
2 changed files with 4 additions and 3 deletions

View File

@@ -114,7 +114,8 @@ fun updateOldReaderGalleries(context: Context) {
reader["code"] = when {
(File(gallery, "images").list()?.
all { !it.endsWith("webp") } ?: return@forEach) &&
availableInHiyobi(gallery.name.toInt()) -> json.toJson(codeSerializer, Reader.Code.HIYOBI)
availableInHiyobi(gallery.name.toIntOrNull() ?: return@forEach)
-> json.toJson(codeSerializer, Reader.Code.HIYOBI)
else -> json.toJson(codeSerializer, Reader.Code.HITOMI)
}