mirror of
https://github.com/gedoor/legado.git
synced 2024-08-30 09:23:26 +08:00
fix: fix: 尝试使用文件名是否带 cover 来解决某些epub封面的读取问题
This commit is contained in:
parent
0c7224d4d0
commit
b57b0d6e42
@ -119,9 +119,10 @@ class EpubFile(var book: Book) {
|
||||
/**
|
||||
* <image width="1038" height="670" xlink:href="..."/>
|
||||
* ...titlepage.xhtml
|
||||
* 大多数epub文件的封面页都会带有cover,可以一定程度上解决封面读取问题
|
||||
*/
|
||||
if (chapter.url.contains("titlepage.xhtml") ||
|
||||
chapter.url.contains("cover.xhtml")
|
||||
chapter.url.contains("cover")
|
||||
) {
|
||||
return "<img src=\"cover.jpeg\" />"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user