|
|
|
@ -9,7 +9,7 @@ import io.legado.app.model.rss.Rss |
|
|
|
|
import io.legado.app.model.webBook.WebBook |
|
|
|
|
import io.legado.app.utils.HtmlFormatter |
|
|
|
|
import io.legado.app.utils.isAbsUrl |
|
|
|
|
import io.legado.app.utils.msg |
|
|
|
|
import io.legado.app.utils.stackTraceStr |
|
|
|
|
import kotlinx.coroutines.CoroutineScope |
|
|
|
|
import java.text.SimpleDateFormat |
|
|
|
|
import java.util.* |
|
|
|
@ -128,7 +128,7 @@ object Debug { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
.onError { |
|
|
|
|
log(debugSource, it.msg, state = -1) |
|
|
|
|
log(debugSource, it.stackTraceStr, state = -1) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -145,7 +145,7 @@ object Debug { |
|
|
|
|
log(debugSource, "︽内容页解析完成", state = 1000) |
|
|
|
|
} |
|
|
|
|
.onError { |
|
|
|
|
log(debugSource, it.msg, state = -1) |
|
|
|
|
log(debugSource, it.stackTraceStr, state = -1) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -204,7 +204,7 @@ object Debug { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
.onError { |
|
|
|
|
log(debugSource, it.msg, state = -1) |
|
|
|
|
log(debugSource, it.stackTraceStr, state = -1) |
|
|
|
|
} |
|
|
|
|
tasks.add(explore) |
|
|
|
|
} |
|
|
|
@ -222,7 +222,7 @@ object Debug { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
.onError { |
|
|
|
|
log(debugSource, it.msg, state = -1) |
|
|
|
|
log(debugSource, it.stackTraceStr, state = -1) |
|
|
|
|
} |
|
|
|
|
tasks.add(search) |
|
|
|
|
} |
|
|
|
@ -246,7 +246,7 @@ object Debug { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
.onError { |
|
|
|
|
log(debugSource, it.msg, state = -1) |
|
|
|
|
log(debugSource, it.stackTraceStr, state = -1) |
|
|
|
|
} |
|
|
|
|
tasks.add(info) |
|
|
|
|
} |
|
|
|
@ -261,7 +261,7 @@ object Debug { |
|
|
|
|
contentDebug(scope, bookSource, book, it.first(), nextChapterUrl) |
|
|
|
|
} |
|
|
|
|
.onError { |
|
|
|
|
log(debugSource, it.msg, state = -1) |
|
|
|
|
log(debugSource, it.stackTraceStr, state = -1) |
|
|
|
|
} |
|
|
|
|
tasks.add(chapterList) |
|
|
|
|
} |
|
|
|
@ -284,7 +284,7 @@ object Debug { |
|
|
|
|
).onSuccess { |
|
|
|
|
log(debugSource, "︽正文页解析完成", state = 1000) |
|
|
|
|
}.onError { |
|
|
|
|
log(debugSource, it.msg, state = -1) |
|
|
|
|
log(debugSource, it.stackTraceStr, state = -1) |
|
|
|
|
} |
|
|
|
|
tasks.add(content) |
|
|
|
|
} |
|
|
|
|