[RU]LibGroup fix auto select servers image (#14027)

This commit is contained in:
Eshlender 2022-10-29 19:24:05 +05:00 committed by GitHub
parent e8efb0f8d7
commit 3dc9db2cc6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@ class LibGenerator : ThemeSourceGenerator {
override val themeClass = "LibGroup"
override val baseVersionCode: Int = 11
override val baseVersionCode: Int = 12
override val sources = listOf(
SingleLang("MangaLib", "https://mangalib.me", "ru", overrideVersionCode = 74),

View File

@ -463,7 +463,7 @@ abstract class LibGroup(
private fun checkImage(url: String): Boolean {
val response = client.newCall(Request.Builder().url(url).head().headers(headers).build()).execute()
return response.isSuccessful && (response.header("content-length", "0")?.toInt()!! > 320)
return response.isSuccessful && (response.header("content-length", "0")?.toInt()!! > 600)
}
override fun fetchImageUrl(page: Page): Observable<String> {