mirror of
https://github.com/gedoor/legado.git
synced 2024-09-01 09:34:25 +08:00
优化
This commit is contained in:
parent
0e24588776
commit
8b6698ae86
@ -144,7 +144,7 @@ class HttpReadAloudService : BaseReadAloudService(),
|
||||
downloadAudio()
|
||||
} catch (e: ConnectException) {
|
||||
removeSpeakCacheFile(fileName)
|
||||
toastOnUi("网络错误")
|
||||
toastOnUi("tts接口网络错误")
|
||||
} catch (e: IOException) {
|
||||
val file = getSpeakFileAsMd5(fileName)
|
||||
if (file.exists()) {
|
||||
@ -152,8 +152,10 @@ class HttpReadAloudService : BaseReadAloudService(),
|
||||
}
|
||||
toastOnUi("tts文件解析错误")
|
||||
} catch (e: Exception) {
|
||||
e.printOnDebug()
|
||||
removeSpeakCacheFile(fileName)
|
||||
AppLog.put("tts接口错误\n${e.localizedMessage}", e)
|
||||
toastOnUi("tts接口错误\n${e.localizedMessage}")
|
||||
e.printOnDebug()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user