优化
This commit is contained in:
@@ -127,10 +127,13 @@ class AddToBookshelfDialog() : BaseDialogFragment(R.layout.dialog_add_to_bookshe
|
||||
}
|
||||
}
|
||||
appDb.bookSourceDao.hasBookUrlPattern.forEach { source ->
|
||||
if (bookUrl.matches(source.bookUrlPattern!!.toRegex())) {
|
||||
getBookInfo(bookUrl, source)?.let { book ->
|
||||
return@execute book
|
||||
try {
|
||||
if (bookUrl.matches(source.bookUrlPattern!!.toRegex())) {
|
||||
getBookInfo(bookUrl, source)?.let { book ->
|
||||
return@execute book
|
||||
}
|
||||
}
|
||||
} catch (_: Exception) {
|
||||
}
|
||||
}
|
||||
throw NoStackTraceException("未找到匹配书源")
|
||||
|
||||
Reference in New Issue
Block a user