From 7d6df5d9185aab90d209829f3cc6ff4dd48e7e9e Mon Sep 17 00:00:00 2001 From: are-are-are <62763969+dejavui@users.noreply.github.com> Date: Fri, 25 Jul 2025 23:03:17 +0700 Subject: [PATCH] Batoto: Fix bug baseUrl = "Auto" (#9767) * Fix batoto baseUrl = auto * Update src/all/batoto/build.gradle Co-authored-by: Vetle Ledaal * Update BatoTo.kt --------- Co-authored-by: Vetle Ledaal --- src/all/batoto/build.gradle | 2 +- .../src/eu/kanade/tachiyomi/extension/all/batoto/BatoTo.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/all/batoto/build.gradle b/src/all/batoto/build.gradle index 2a5ba8541..18ad23bef 100644 --- a/src/all/batoto/build.gradle +++ b/src/all/batoto/build.gradle @@ -1,7 +1,7 @@ ext { extName = 'Bato.to' extClass = '.BatoToFactory' - extVersionCode = 50 + extVersionCode = 51 isNsfw = true } diff --git a/src/all/batoto/src/eu/kanade/tachiyomi/extension/all/batoto/BatoTo.kt b/src/all/batoto/src/eu/kanade/tachiyomi/extension/all/batoto/BatoTo.kt index 2e36c6a93..b3b553700 100644 --- a/src/all/batoto/src/eu/kanade/tachiyomi/extension/all/batoto/BatoTo.kt +++ b/src/all/batoto/src/eu/kanade/tachiyomi/extension/all/batoto/BatoTo.kt @@ -112,7 +112,7 @@ open class BatoTo( pm.getPackageInfo(BuildConfig.APPLICATION_ID, 0).lastUpdateTime }.getOrElse { BuildConfig.VERSION_NAME.hashCode().toLong() - } + }.coerceAtLeast(0) MIRROR_PREF_ENTRY_VALUES[1 + (seed % (MIRROR_PREF_ENTRIES.size - 1)).toInt()] }