pull/540/head
gedoor 4 years ago
parent 690cd9b083
commit 79ddeec20d
  1. 8
      app/src/main/java/io/legado/app/help/BookHelp.kt

@ -68,16 +68,16 @@ object BookHelp {
content.split("\n").forEach {
val matcher = AppPattern.imgPattern.matcher(it)
if (matcher.find()) {
var src = matcher.group(1)
src = NetworkUtils.getAbsoluteURL(bookChapter.url, src)
src?.let {
saveImage(book, src)
matcher.group(1)?.let { src ->
val mSrc = NetworkUtils.getAbsoluteURL(bookChapter.url, src)
saveImage(book, mSrc)
}
}
}
postEvent(EventBus.SAVE_CONTENT, bookChapter)
}
@Suppress("unused")
fun saveFont(book: Book, bookChapter: BookChapter, font: ByteArray) {
FileUtils.createFileIfNotExist(
downloadDir,

Loading…
Cancel
Save