fix: change epub file copy position
BookHelp.clearInvalidCache will delete epub file, move to book folder rather than cache folder fix #2206
This commit is contained in:
1 parent
88247c7f35
commit
b521f090b7
1 file changed
+1
-1
@@ -165,7 +165,7 @@ object BookHelp {
|
||||
fun getEpubFile(book: Book): ZipFile {
|
||||
val uri = Uri.parse(book.bookUrl)
|
||||
if (uri.isContentScheme()) {
|
||||
val path = FileUtils.getPath(downloadDir, cacheFolderName, book.originName)
|
||||
val path = FileUtils.getPath(downloadDir, cacheFolderName, book.getFolderName(), book.originName)
|
||||
val file = File(path)
|
||||
val doc = DocumentFile.fromSingleUri(appCtx, uri)
|
||||
?: throw IOException("文件不存在")
|
||||
|
||||
Reference in new issue
Block a user