fix: typo

This commit is contained in:
Xwite
2022-06-01 14:22:29 +08:00
parent ed29ccc7b0
commit fc6745b6fe

View File

@@ -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
}