mirror of
https://github.com/gedoor/legado.git
synced 2024-09-01 09:34:25 +08:00
优化
This commit is contained in:
parent
8b6698ae86
commit
f3c2d70ef5
@ -11,6 +11,10 @@
|
||||
* 正文出现缺字漏字、内容缺失、排版错乱等情况,有可能是净化规则或简繁转换出现问题。
|
||||
* 漫画源看书显示乱码,**阅读与其他软件的源并不通用**,请导入阅读的支持的漫画源!
|
||||
|
||||
**2021/10/14**
|
||||
|
||||
* 修复遇到一些存标点段朗读出错后不继续的问题
|
||||
|
||||
**2021/10/10**
|
||||
|
||||
* 阿里云语音自动登录
|
||||
|
@ -33,6 +33,7 @@ class HttpReadAloudService : BaseReadAloudService(),
|
||||
private var task: Coroutine<*>? = null
|
||||
private var playingIndex = -1
|
||||
private var playIndexJob: Job? = null
|
||||
private var errorNo = 0
|
||||
|
||||
override fun onCreate() {
|
||||
super.onCreate()
|
||||
@ -153,6 +154,7 @@ class HttpReadAloudService : BaseReadAloudService(),
|
||||
toastOnUi("tts文件解析错误")
|
||||
} catch (e: Exception) {
|
||||
removeSpeakCacheFile(fileName)
|
||||
createSpeakFileAsMd5IfNotExist(fileName)
|
||||
AppLog.put("tts接口错误\n${e.localizedMessage}", e)
|
||||
toastOnUi("tts接口错误\n${e.localizedMessage}")
|
||||
e.printOnDebug()
|
||||
@ -279,8 +281,6 @@ class HttpReadAloudService : BaseReadAloudService(),
|
||||
upPlayPos()
|
||||
}
|
||||
|
||||
private var errorNo = 0
|
||||
|
||||
override fun onError(mp: MediaPlayer?, what: Int, extra: Int): Boolean {
|
||||
if (what == -38 && extra == 0) {
|
||||
play()
|
||||
|
Loading…
Reference in New Issue
Block a user