Batoto: Fix bug setting mirror to auto (#11012)

Batoto: Fix bug baseUrl = "Auto"
This commit is contained in:
are-are-are 2025-10-13 20:05:22 +07:00 committed by Draff
parent b38f8bd0f5
commit 9b874ae720
Signed by: Draff
GPG Key ID: E8A89F3211677653
2 changed files with 5 additions and 2 deletions

View File

@ -1,7 +1,7 @@
ext {
extName = 'Bato.to'
extClass = '.BatoToFactory'
extVersionCode = 53
extVersionCode = 54
isNsfw = true
}

View File

@ -58,7 +58,10 @@ open class BatoTo(
get() {
val current = field
if (current.isNotEmpty()) {
return current
return when (current) {
"Auto" -> getMirrorPref()
else -> current
}
}
field = getMirrorPref()
return field