This commit is contained in:
Horis
2025-02-03 15:55:01 +08:00
parent 5a25edeefb
commit a8f2e4762b
@@ -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("未找到匹配书源")