mirror of
https://github.com/gedoor/legado.git
synced 2025-08-10 00:52:30 +00:00
@@ -139,6 +139,9 @@ object BookHelp {
|
||||
var bytes = analyzeUrl.getByteArrayAwait()
|
||||
//某些图片被加密,需要进一步解密
|
||||
bookSource?.getContentRule()?.imageDecode?.let {
|
||||
if (it.isBlank()) {
|
||||
return@let
|
||||
}
|
||||
kotlin.runCatching {
|
||||
bookSource.evalJS(it) {
|
||||
put("book", book)
|
||||
|
||||
@@ -17,8 +17,9 @@ class VerificationCodeActivity :
|
||||
override fun onActivityCreated(savedInstanceState: Bundle?) {
|
||||
intent.getStringExtra("imageUrl")?.let {
|
||||
val sourceOrigin = intent.getStringExtra("sourceOrigin")
|
||||
val sourceName = intent.getStringExtra("sourceName")
|
||||
showDialogFragment(
|
||||
VerificationCodeDialog(it, sourceOrigin)
|
||||
VerificationCodeDialog(it, sourceOrigin, sourceName)
|
||||
)
|
||||
} ?: finish()
|
||||
}
|
||||
|
||||
@@ -200,7 +200,7 @@ class ImportBookActivity : VMBaseActivity<ActivityImportBookBinding, ImportBookV
|
||||
private fun upSort(sort: Int) {
|
||||
viewModel.sort = sort
|
||||
putPrefInt(PreferKey.localBookImportSort, sort)
|
||||
if (scanDocJob?.isCancelled == true || scanDocJob?.isCompleted == true) {
|
||||
if (scanDocJob?.isActive != true) {
|
||||
viewModel.dataCallback?.setItems(adapter.getItems())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user