mirror of
https://github.com/gedoor/legado.git
synced 2024-08-30 09:23:26 +08:00
文件类书源解压位置改到保存书籍目录的地方
This commit is contained in:
parent
f9cf583d8d
commit
94597164c0
@ -12,6 +12,7 @@ import io.legado.app.constant.AppPattern
|
||||
import io.legado.app.constant.BookSourceType
|
||||
import io.legado.app.constant.BookType
|
||||
import io.legado.app.constant.EventBus
|
||||
import io.legado.app.help.config.AppConfig.defaultBookTreeUri
|
||||
import io.legado.app.data.appDb
|
||||
import io.legado.app.data.entities.Book
|
||||
import io.legado.app.data.entities.BookChapter
|
||||
@ -274,7 +275,7 @@ class BookInfoViewModel(application: Application) : BaseViewModel(application) {
|
||||
|
||||
fun deCompress(archiveFileUri: Uri, onSuccess: (List<FileDoc>) -> Unit) {
|
||||
execute {
|
||||
ArchiveUtils.deCompress(archiveFileUri).list {
|
||||
ArchiveUtils.deCompress(archiveFileUri, defaultBookTreeUri).list {
|
||||
AppPattern.bookFileRegex.matches(it.name)
|
||||
} ?: emptyList()
|
||||
}.onError {
|
||||
|
Loading…
Reference in New Issue
Block a user