mirror of
https://github.com/gedoor/legado.git
synced 2024-07-06 23:47:49 +08:00
优化
This commit is contained in:
parent
44e22bdcf7
commit
36eb6bec24
@ -178,6 +178,9 @@ class EpubFile(var book: Book) {
|
||||
elements.select("title").remove()
|
||||
elements.select("img").forEach {
|
||||
val src = it.attr("src")
|
||||
if (src == "cover.jpeg") {
|
||||
return@forEach
|
||||
}
|
||||
val path = chapter.url.substringBeforeLast("/", "")
|
||||
val absSrc = if (path.isEmpty()) {
|
||||
src
|
||||
|
Loading…
Reference in New Issue
Block a user