diff --git a/komga/src/main/kotlin/org/gotson/komga/infrastructure/mediacontainer/epub/EpubExtractor.kt b/komga/src/main/kotlin/org/gotson/komga/infrastructure/mediacontainer/epub/EpubExtractor.kt index d2072e310..8db0230c8 100644 --- a/komga/src/main/kotlin/org/gotson/komga/infrastructure/mediacontainer/epub/EpubExtractor.kt +++ b/komga/src/main/kotlin/org/gotson/komga/infrastructure/mediacontainer/epub/EpubExtractor.kt @@ -67,7 +67,7 @@ class EpubExtractor( ?: // try id="cover-image" manifest.values.firstOrNull { it.id == "cover-image" } if (coverManifestItem != null) { - val href = coverManifestItem.href + val href = URLDecoder.decode(coverManifestItem.href, Charsets.UTF_8) val mediaType = coverManifestItem.mediaType val coverPath = normalizeHref(opfDir, href) zip.getEntryBytes(coverPath)?.let { coverBytes ->