Baozimanhua: raise banner detection diff-threshold (#11891)

This commit is contained in:
kasperskier 2022-05-18 06:52:58 +08:00 committed by GitHub
parent 767ffcbe1c
commit c90e34cc7d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
## 1.2.5 (2022-05-17)
- 提高 banner 识别容错率,切除噪声更多的 banner
## 1.2.4 (2022-05-14)
- 图源名改为中文

View File

@ -5,7 +5,7 @@ ext {
extName = 'Baozimanhua'
pkgNameSuffix = 'zh.baozimanhua'
extClass = '.Baozimanhua'
extVersionCode = 4
extVersionCode = 5
}
apply from: "$rootDir/common.gradle"

View File

@ -24,7 +24,7 @@ class BannerInterceptor : Interceptor {
banner.recycle()
buffer
}
private val threshold by lazy { w * h * 3 / 2 } // 0.5 per pixel per channel
private val threshold by lazy { w * h * 3 } // 1 per pixel per channel
override fun intercept(chain: Interceptor.Chain): Response {
val url = chain.request().url.toString()