fix(epub): titlepage.xhtml

pull/1949/head
Xwite 3 years ago
parent 23d26172a4
commit c71099a379
  1. 7
      app/src/main/java/io/legado/app/model/localBook/EpubFile.kt

@ -122,11 +122,10 @@ class EpubFile(var book: Book) {
private fun getContent(chapter: BookChapter): String? {
/**
* <image width="1038" height="670" xlink:href="cover.jpeg"/>
* <img width="1038" height="670" src="cover.jpeg"/>
* titlepage.xhtml
* <image width="1038" height="670" xlink:href="..."/>
* ...titlepage.xhtml
*/
if (chapter.url == "titlepage.xhtml") {
if (chapter.url.contains("titlepage.xhtml")) {
return "<img src=\"cover.jpeg\" />"
}
/*获取当前章节文本*/

Loading…
Cancel
Save