Fix queue autoServer (#6565)

This commit is contained in:
Eugene 2021-04-15 22:08:36 +05:00 committed by GitHub
parent 8c27f10cc9
commit 73efe1501f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ ext {
extName = 'MangaLib'
pkgNameSuffix = 'ru.libmanga'
extClass = '.LibManga'
extVersionCode = 37
extVersionCode = 38
libVersion = '1.2'
}

View File

@ -301,7 +301,7 @@ class LibManga : ConfigurableSource, HttpSource() {
val chapInfoJson = jsonParser.parse(chapInfo).obj
val servers = chapInfoJson["servers"].asJsonObject.toMap()
val defaultServer: String = chapInfoJson["img"]["server"].string
val autoServer = setOf(defaultServer, "secondary", "fourth", "compress")
val autoServer = setOf("secondary", "fourth", defaultServer, "compress")
val imgUrl: String = chapInfoJson["img"]["url"].string
val serverToUse = when (this.server) {