Revert "fix encoding"

This reverts commit 808a49ccb9.
This commit is contained in:
amd64fox
2023-09-07 13:58:43 +03:00
parent 808a49ccb9
commit bfed9ec45e
6 changed files with 17 additions and 19 deletions
+4 -6
View File
@@ -260,13 +260,11 @@ if ($psv -ge 7) {
function CallLang($clg) {
$urlLang = "https://cdn.jsdelivr.net/gh/amd64fox/SpotX@latest/scripts/installer-lang/$clg.ps1"
$urlLang = "https://cdn.jsdelivr.net/gh/amd64fox/SpotX@main/scripts/installer-lang/$clg.ps1"
$ProgressPreference = 'SilentlyContinue'
try {
$response = Invoke-WebRequest -Uri $urlLang -UseBasicParsing
$scriptContent = [System.Text.Encoding]::UTF8.GetString($response.Content)
Invoke-Expression $scriptContent
Invoke-RestMethod -useb $urlLang | Invoke-Expression
}
catch {
Write-Host "Error loading $clg language"
@@ -284,7 +282,7 @@ $lang = CallLang -clg $langCode
# Set variable 'ru'.
if ($langCode -eq 'ru') {
$ru = $true
$urlru = "https://cdn.jsdelivr.net/gh/amd64fox/SpotX@latest/patches/Augmented%20translation/ru.json"
$urlru = "https://cdn.jsdelivr.net/gh/amd64fox/SpotX@main/patches/Augmented%20translation/ru.json"
$webjsonru = Invoke-RestMethod -useb -Uri $urlru
}
@@ -875,7 +873,7 @@ $retries = 0
while ($retries -lt 3) {
try {
$webjson = irm -useb "https://cdn.jsdelivr.net/gh/amd64fox/SpotX@latest/patches/patches.json"
$webjson = irm -useb "https://cdn.jsdelivr.net/gh/amd64fox/SpotX@main/patches/patches.json"
break
}
catch {