Skip to content

Commit

Permalink
fix: Fix error when parsing chapters when chapter src is url encoded (#…
Browse files Browse the repository at this point in the history
…182)

Signed-off-by: starry-shivam <[email protected]>
  • Loading branch information
starry-shivam authored Jun 4, 2024
1 parent a3cf5f0 commit 13c472c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/main/java/com/starry/myne/epub/EpubParser.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 13c472c

Please sign in to comment.