@ -251,16 +251,12 @@ object BookHelp {
* 删除章节内容
*/
fun delContent(book: Book, bookChapter: BookChapter) {
if (book.isLocalTxt()) {
return
} else {
FileUtils.createFileIfNotExist(
downloadDir,
cacheFolderName,
book.getFolderName(),
bookChapter.getFileName()
).delete()
}
/**
@ -162,6 +162,7 @@ object LocalBook {
fun deleteBook(book: Book, deleteOriginal: Boolean) {
kotlin.runCatching {
BookHelp.clearCache(book)
if (deleteOriginal) {
if (book.bookUrl.isContentScheme()) {
val uri = Uri.parse(book.bookUrl)