mirror of
https://github.com/gotson/komga.git
synced 2025-12-14 04:22:27 +01:00
parent
f8e40ce968
commit
e09cbc49eb
1 changed files with 1 additions and 1 deletions
|
|
@ -43,7 +43,7 @@ class EpubExtractor(
|
|||
|
||||
fun isEpub(path: Path): Boolean =
|
||||
try {
|
||||
getEntryStream(path, "mimetype").decodeToString() == "application/epub+zip"
|
||||
getEntryStream(path, "mimetype").decodeToString().trim() == "application/epub+zip"
|
||||
} catch (e: Exception) {
|
||||
false
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue