mirror of
https://github.com/gotson/komga.git
synced 2025-12-06 08:32:25 +01:00
fix: properly decode cover href when generating epub cover
Closes: #2118
This commit is contained in:
parent
fe40ede34a
commit
f8ca936ee7
1 changed files with 1 additions and 1 deletions
|
|
@ -67,7 +67,7 @@ class EpubExtractor(
|
||||||
?: // try id="cover-image"
|
?: // try id="cover-image"
|
||||||
manifest.values.firstOrNull { it.id == "cover-image" }
|
manifest.values.firstOrNull { it.id == "cover-image" }
|
||||||
if (coverManifestItem != null) {
|
if (coverManifestItem != null) {
|
||||||
val href = coverManifestItem.href
|
val href = URLDecoder.decode(coverManifestItem.href, Charsets.UTF_8)
|
||||||
val mediaType = coverManifestItem.mediaType
|
val mediaType = coverManifestItem.mediaType
|
||||||
val coverPath = normalizeHref(opfDir, href)
|
val coverPath = normalizeHref(opfDir, href)
|
||||||
zip.getEntryBytes(coverPath)?.let { coverBytes ->
|
zip.getEntryBytes(coverPath)?.let { coverBytes ->
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue