pull/1395/head
gedoor 3 years ago
parent f2689285de
commit 7128ede82c
  1. 3
      app/src/main/java/io/legado/app/service/HttpReadAloudService.kt

@ -114,9 +114,6 @@ class HttpReadAloudService : BaseReadAloudService(),
var response = analyzeUrl.getResponse() var response = analyzeUrl.getResponse()
httpTts.loginCheckJs?.let { checkJs -> httpTts.loginCheckJs?.let { checkJs ->
if (checkJs.isNotBlank()) { if (checkJs.isNotBlank()) {
if (response.headers["Content-Type"] != "audio/mpeg") {
response.body!!.string()
}
response = analyzeUrl.evalJS(checkJs, response) as Response response = analyzeUrl.evalJS(checkJs, response) as Response
} }
} }

Loading…
Cancel
Save