mirror of
https://github.com/gedoor/legado.git
synced 2024-08-30 09:23:26 +08:00
优化
This commit is contained in:
parent
6e82100518
commit
4537f1325a
@ -498,6 +498,7 @@ object ReadBook : CoroutineScope by MainScope() {
|
|||||||
fun upToc() {
|
fun upToc() {
|
||||||
val bookSource = bookSource ?: return
|
val bookSource = bookSource ?: return
|
||||||
val book = book ?: return
|
val book = book ?: return
|
||||||
|
if (!book.canUpdate) return
|
||||||
if (System.currentTimeMillis() - book.lastCheckTime < 600000) return
|
if (System.currentTimeMillis() - book.lastCheckTime < 600000) return
|
||||||
book.lastCheckTime = System.currentTimeMillis()
|
book.lastCheckTime = System.currentTimeMillis()
|
||||||
WebBook.getChapterList(this, bookSource, book).onSuccess(IO) { cList ->
|
WebBook.getChapterList(this, bookSource, book).onSuccess(IO) { cList ->
|
||||||
|
Loading…
Reference in New Issue
Block a user