mirror of
https://github.com/gedoor/legado.git
synced 2025-08-10 00:52:30 +00:00
优化
This commit is contained in:
@@ -469,7 +469,9 @@ class ExportBookService : BaseService() {
|
||||
val bookFile = FileUtils.createFileWithReplace(bookPath)
|
||||
//设置正文
|
||||
setEpubContent(contentModel, book, epubBook)
|
||||
EpubWriter().write(epubBook, bookFile.outputStream().buffered())
|
||||
bookFile.outputStream().buffered().use {
|
||||
EpubWriter().write(epubBook, it)
|
||||
}
|
||||
if (AppConfig.exportToWebDav) {
|
||||
// 导出到webdav
|
||||
AppWebDav.exportWebDav(Uri.fromFile(bookFile), filename)
|
||||
|
||||
Reference in New Issue
Block a user