This commit is contained in:
Horis
2024-12-15 17:56:18 +08:00
parent 5d2eb919ae
commit 219e58ea26
@@ -148,9 +148,11 @@ object BookHelp {
book.getFolderName(), book.getFolderName(),
bookChapter.getFileName(), bookChapter.getFileName(),
).writeText(content) ).writeText(content)
if (!book.isLocal) {
bookChapter.wordCount = StringUtils.wordCountFormat(content.length) bookChapter.wordCount = StringUtils.wordCountFormat(content.length)
appDb.bookChapterDao.update(bookChapter) appDb.bookChapterDao.update(bookChapter)
} }
}
suspend fun saveImages( suspend fun saveImages(
bookSource: BookSource, bookSource: BookSource,