Batoto: Fix bug setting mirror to auto (#11012)
Batoto: Fix bug baseUrl = "Auto"
This commit is contained in:
parent
b38f8bd0f5
commit
9b874ae720
@ -1,7 +1,7 @@
|
||||
ext {
|
||||
extName = 'Bato.to'
|
||||
extClass = '.BatoToFactory'
|
||||
extVersionCode = 53
|
||||
extVersionCode = 54
|
||||
isNsfw = true
|
||||
}
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user