pull/1876/head^2
kunfei 3 years ago
parent ae192beb21
commit fb3b6de521
  1. 2
      app/src/main/java/io/legado/app/data/entities/BookChapter.kt
  2. 2
      app/src/main/java/io/legado/app/help/ContentProcessor.kt

@ -7,6 +7,7 @@ import androidx.room.Ignore
import androidx.room.Index
import com.github.liuyueyi.quick.transfer.ChineseUtils
import io.legado.app.R
import io.legado.app.constant.AppLog
import io.legado.app.constant.AppPattern
import io.legado.app.data.appDb
import io.legado.app.exception.RegexTimeoutException
@ -113,6 +114,7 @@ data class BookChapter(
item.isEnabled = false
appDb.replaceRuleDao.update(item)
} catch (e: Exception) {
AppLog.put("${item.name}替换出错\n替换内容\n${displayTitle}", e)
appCtx.toastOnUi("${item.name}替换出错")
}
}

@ -153,7 +153,7 @@ class ContentProcessor private constructor(
return item.name + it.msg
}
else -> {
AppLog.put("${item.name}替换出错\n${it.localizedMessage}", it)
AppLog.put("${item.name}替换出错\n替换内容\n${mContent}", it)
appCtx.toastOnUi("${item.name}替换出错")
}
}

Loading…
Cancel
Save