[RU]LibGroup fix auto select servers image (#14027)
This commit is contained in:
parent
e8efb0f8d7
commit
3dc9db2cc6
|
@ -9,7 +9,7 @@ class LibGenerator : ThemeSourceGenerator {
|
||||||
|
|
||||||
override val themeClass = "LibGroup"
|
override val themeClass = "LibGroup"
|
||||||
|
|
||||||
override val baseVersionCode: Int = 11
|
override val baseVersionCode: Int = 12
|
||||||
|
|
||||||
override val sources = listOf(
|
override val sources = listOf(
|
||||||
SingleLang("MangaLib", "https://mangalib.me", "ru", overrideVersionCode = 74),
|
SingleLang("MangaLib", "https://mangalib.me", "ru", overrideVersionCode = 74),
|
||||||
|
|
|
@ -463,7 +463,7 @@ abstract class LibGroup(
|
||||||
|
|
||||||
private fun checkImage(url: String): Boolean {
|
private fun checkImage(url: String): Boolean {
|
||||||
val response = client.newCall(Request.Builder().url(url).head().headers(headers).build()).execute()
|
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> {
|
override fun fetchImageUrl(page: Page): Observable<String> {
|
||||||
|
|
Loading…
Reference in New Issue