diff --git a/app/src/main/java/com/starry/myne/epub/EpubParser.kt b/app/src/main/java/com/starry/myne/epub/EpubParser.kt index 711e78f..fe82362 100644 --- a/app/src/main/java/com/starry/myne/epub/EpubParser.kt +++ b/app/src/main/java/com/starry/myne/epub/EpubParser.kt @@ -257,7 +257,7 @@ class EpubParser { val title = navPoint.selectFirstChildTag("navLabel")?.selectFirstChildTag("text")?.textContent val chapterSrc = navPoint.selectFirstChildTag("content")?.getAttributeValue("src") - ?.hrefAbsolutePath(hrefRootPath) + ?.decodedURL?.hrefAbsolutePath(hrefRootPath) if (chapterSrc != null) { // Check if the chapter source contains a fragment ID