From 9590bc02de58524e467df4cd3b80ad9d51d7ca0a Mon Sep 17 00:00:00 2001 From: gedoor Date: Thu, 14 Oct 2021 20:26:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/io/legado/app/service/HttpReadAloudService.kt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/io/legado/app/service/HttpReadAloudService.kt b/app/src/main/java/io/legado/app/service/HttpReadAloudService.kt index a6bfefddf..c480ccec0 100644 --- a/app/src/main/java/io/legado/app/service/HttpReadAloudService.kt +++ b/app/src/main/java/io/legado/app/service/HttpReadAloudService.kt @@ -147,10 +147,8 @@ class HttpReadAloudService : BaseReadAloudService(), removeSpeakCacheFile(fileName) toastOnUi("tts接口网络错误\n${e.localizedMessage}") } catch (e: IOException) { - val file = getSpeakFileAsMd5(fileName) - if (file.exists()) { - FileUtils.deleteFile(file.absolutePath) - } + removeSpeakCacheFile(fileName) + createSpeakFileAsMd5IfNotExist(fileName) AppLog.put("tts文件解析错误") toastOnUi("tts文件解析错误\n${e.localizedMessage}") } catch (e: Exception) {