Horis 3 ani în urmă
părinte
comite
c0367b4bd9

+ 1 - 1
app/src/main/java/io/legado/app/data/entities/BookSource.kt

@@ -183,7 +183,7 @@ data class BookSource(
 
 
     fun getInvalidGroupNames(): String {
     fun getInvalidGroupNames(): String {
         return bookSourceGroup?.splitNotBlank(AppPattern.splitGroupRegex)?.toHashSet()?.filter {
         return bookSourceGroup?.splitNotBlank(AppPattern.splitGroupRegex)?.toHashSet()?.filter {
-            "失效" in it
+            "失效" in it || it == "校验超时"
         }?.joinToString() ?: ""
         }?.joinToString() ?: ""
     }
     }
 
 

+ 0 - 1
app/src/main/java/io/legado/app/service/CheckSourceService.kt

@@ -188,7 +188,6 @@ class CheckSourceService : BaseService() {
                         "" else "\n\n${source.bookSourceComment}"
                         "" else "\n\n${source.bookSourceComment}"
                 Debug.updateFinalMessage(source.bookSourceUrl, "校验失败:${it.localizedMessage}")
                 Debug.updateFinalMessage(source.bookSourceUrl, "校验失败:${it.localizedMessage}")
             }.onSuccess(searchCoroutine) {
             }.onSuccess(searchCoroutine) {
-                source.removeGroup("校验超时")
                 Debug.updateFinalMessage(source.bookSourceUrl, "校验成功")
                 Debug.updateFinalMessage(source.bookSourceUrl, "校验成功")
             }.onFinally(IO) {
             }.onFinally(IO) {
                 source.respondTime = Debug.getRespondTime(source.bookSourceUrl)
                 source.respondTime = Debug.getRespondTime(source.bookSourceUrl)