|
|
@ -72,7 +72,11 @@ class CheckSourceService : BaseService() { |
|
|
|
if (processIndex < allIds.size) { |
|
|
|
if (processIndex < allIds.size) { |
|
|
|
val sourceUrl = allIds[processIndex] |
|
|
|
val sourceUrl = allIds[processIndex] |
|
|
|
App.db.bookSourceDao().getBookSource(sourceUrl)?.let { source -> |
|
|
|
App.db.bookSourceDao().getBookSource(sourceUrl)?.let { source -> |
|
|
|
|
|
|
|
if (source.searchUrl.isNullOrEmpty()) { |
|
|
|
|
|
|
|
onNext(sourceUrl) |
|
|
|
|
|
|
|
} else { |
|
|
|
check(source) |
|
|
|
check(source) |
|
|
|
|
|
|
|
} |
|
|
|
} ?: onNext(sourceUrl) |
|
|
|
} ?: onNext(sourceUrl) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|