fix: typo
This commit is contained in:
1 parent
ab7e777e15
commit
5dd9dd4510
1 file changed
+1
-1
@@ -196,7 +196,7 @@ class EpubFile(var book: Book) {
|
||||
}
|
||||
|
||||
private fun getImage(href: String): InputStream? {
|
||||
if (href == "cover.jpg") return epubBook?.coverImage?.inputStream
|
||||
if (href == "cover.jpeg") return epubBook?.coverImage?.inputStream
|
||||
val abHref = href.replace("../", "")
|
||||
return epubBook?.resources?.getByHref(abHref)?.inputStream
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user