forked from github/szkolny
[Vulcan/Web] Fix extracting school symbol.
This commit is contained in:
parent
01c41645ab
commit
6a33088352
@ -168,7 +168,7 @@ open class VulcanWebMain(open val data: DataVulcan, open val lastSync: Long?) {
|
|||||||
var count = 0
|
var count = 0
|
||||||
while (clientIndex != -1 && count < 100) {
|
while (clientIndex != -1 && count < 100) {
|
||||||
val startIndex = clientIndex + clientUrl.length
|
val startIndex = clientIndex + clientUrl.length
|
||||||
val endIndex = text.indexOf('"', startIndex = startIndex)
|
val endIndex = text.indexOfAny(charArrayOf('"', '/'), startIndex = startIndex)
|
||||||
val schoolSymbol = text.substring(startIndex, endIndex)
|
val schoolSymbol = text.substring(startIndex, endIndex)
|
||||||
schoolSymbols += schoolSymbol
|
schoolSymbols += schoolSymbol
|
||||||
clientIndex = text.indexOf(clientUrl, startIndex = endIndex)
|
clientIndex = text.indexOf(clientUrl, startIndex = endIndex)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user