forked from SteamWar/SteamWar
Fixes
This commit is contained in:
@@ -91,7 +91,7 @@ suspend fun getCachedSkin(uuid: String): Pair<File, Boolean> {
|
||||
val file = File(kCacheFolderFile, "$uuid.webp")
|
||||
if (file.exists()) {
|
||||
if (CacheConfig.isOutdated(uuid)) {
|
||||
val skin = client.get("https://visage.surgeplay.com/bust/150/$uuid")
|
||||
val skin = client.get("https://vzge.me/bust/150/$uuid")
|
||||
skin.bodyAsChannel().copyTo(file.outputStream())
|
||||
|
||||
CacheConfig.update(uuid)
|
||||
@@ -103,7 +103,7 @@ suspend fun getCachedSkin(uuid: String): Pair<File, Boolean> {
|
||||
withContext(Dispatchers.IO) {
|
||||
file.createNewFile()
|
||||
}
|
||||
val skin = client.get("https://visage.surgeplay.com/bust/150/$uuid")
|
||||
val skin = client.get("https://vzge.me/bust/150/$uuid")
|
||||
skin.bodyAsChannel().copyTo(file.outputStream())
|
||||
CacheConfig.update(uuid)
|
||||
return file to false
|
||||
|
||||
Reference in New Issue
Block a user