🛠️ Get only "content.opf" in EpubFileParser
* Can prevent other ".opf" file to ruin book's parsing
This commit is contained in:
parent
a063a5d1cb
commit
dcdc7851d6
1 changed files with 1 additions and 1 deletions
|
|
@ -24,7 +24,7 @@ class EpubFileParser @Inject constructor() : FileParser {
|
|||
withContext(Dispatchers.IO) {
|
||||
ZipFile(file).use { zip ->
|
||||
val opfEntry = zip.entries().asSequence().find { entry ->
|
||||
entry.name.endsWith(".opf")
|
||||
entry.name.endsWith("content.opf")
|
||||
} ?: return@withContext
|
||||
|
||||
val opfContent = zip
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue