mirror of
https://github.com/gedoor/legado.git
synced 2025-08-10 00:52:30 +00:00
优化
This commit is contained in:
@@ -66,12 +66,9 @@ class HttpReadAloudService : BaseReadAloudService(),
|
||||
super.play()
|
||||
kotlin.runCatching {
|
||||
val tts = ReadAloud.httpTTS ?: throw NoStackTraceException("httpTts is null")
|
||||
val fileName =
|
||||
md5SpeakFileName(
|
||||
tts.url,
|
||||
AppConfig.ttsSpeechRate.toString(),
|
||||
contentList[nowSpeak]
|
||||
)
|
||||
val fileName = md5SpeakFileName(
|
||||
tts.url, AppConfig.ttsSpeechRate.toString(), contentList[nowSpeak]
|
||||
)
|
||||
if (nowSpeak == 0 && downloadTask?.isActive != true) {
|
||||
downloadAudio()
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user