diff --git a/app/src/main/java/com/hippo/ehviewer/spider/SpiderInfo.kt b/app/src/main/java/com/hippo/ehviewer/spider/SpiderInfo.kt index d4ea01f75a..de8ec79526 100644 --- a/app/src/main/java/com/hippo/ehviewer/spider/SpiderInfo.kt +++ b/app/src/main/java/com/hippo/ehviewer/spider/SpiderInfo.kt @@ -41,7 +41,7 @@ fun SpiderInfo.write(file: UniFile) { suspend fun SpiderInfo.saveToCache() { runSuspendCatching { spiderInfoCache.edit(gid.toString()) { - data.toFile().writeBytes(Cbor.encodeToByteArray(this)) + data.toFile().writeBytes(Cbor.encodeToByteArray(this@saveToCache)) } }.onFailure { it.printStackTrace()