From 3dc9db2cc6f3b39b4be82dcd69f3c3f18fa23619 Mon Sep 17 00:00:00 2001 From: Eshlender <35057681+e-shl@users.noreply.github.com> Date: Sat, 29 Oct 2022 19:24:05 +0500 Subject: [PATCH] [RU]LibGroup fix auto select servers image (#14027) --- .../java/eu/kanade/tachiyomi/multisrc/libgroup/LibGenerator.kt | 2 +- .../main/java/eu/kanade/tachiyomi/multisrc/libgroup/LibGroup.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/libgroup/LibGenerator.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/libgroup/LibGenerator.kt index ec7296dbf..727447bc9 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/libgroup/LibGenerator.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/libgroup/LibGenerator.kt @@ -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), diff --git a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/libgroup/LibGroup.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/libgroup/LibGroup.kt index 319cbb50b..d1364f43d 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/libgroup/LibGroup.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/libgroup/LibGroup.kt @@ -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 {