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 {
|
ext {
|
||||||
extName = 'Bato.to'
|
extName = 'Bato.to'
|
||||||
extClass = '.BatoToFactory'
|
extClass = '.BatoToFactory'
|
||||||
extVersionCode = 53
|
extVersionCode = 54
|
||||||
isNsfw = true
|
isNsfw = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -58,7 +58,10 @@ open class BatoTo(
|
|||||||
get() {
|
get() {
|
||||||
val current = field
|
val current = field
|
||||||
if (current.isNotEmpty()) {
|
if (current.isNotEmpty()) {
|
||||||
return current
|
return when (current) {
|
||||||
|
"Auto" -> getMirrorPref()
|
||||||
|
else -> current
|
||||||
|
}
|
||||||
}
|
}
|
||||||
field = getMirrorPref()
|
field = getMirrorPref()
|
||||||
return field
|
return field
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user