fix encoding

- fix encoding for translation files
- replacing @main with @latens to get the latest installer and other supporting files
This commit is contained in:
amd64fox
2023-09-07 13:23:40 +03:00
parent c29fe4e4dc
commit 808a49ccb9
6 changed files with 19 additions and 17 deletions

View File

@@ -260,11 +260,13 @@ if ($psv -ge 7) {
function CallLang($clg) {
$urlLang = "https://cdn.jsdelivr.net/gh/amd64fox/SpotX@main/scripts/installer-lang/$clg.ps1"
$urlLang = "https://cdn.jsdelivr.net/gh/amd64fox/SpotX@latest/scripts/installer-lang/$clg.ps1"
$ProgressPreference = 'SilentlyContinue'
try {
Invoke-RestMethod -useb $urlLang | Invoke-Expression
$response = Invoke-WebRequest -Uri $urlLang -UseBasicParsing
$scriptContent = [System.Text.Encoding]::UTF8.GetString($response.Content)
Invoke-Expression $scriptContent
}
catch {
Write-Host "Error loading $clg language"
@@ -282,7 +284,7 @@ $lang = CallLang -clg $langCode
# Set variable 'ru'.
if ($langCode -eq 'ru') {
$ru = $true
$urlru = "https://cdn.jsdelivr.net/gh/amd64fox/SpotX@main/patches/Augmented%20translation/ru.json"
$urlru = "https://cdn.jsdelivr.net/gh/amd64fox/SpotX@latest/patches/Augmented%20translation/ru.json"
$webjsonru = Invoke-RestMethod -useb -Uri $urlru
}
@@ -873,7 +875,7 @@ $retries = 0
while ($retries -lt 3) {
try {
$webjson = irm -useb "https://cdn.jsdelivr.net/gh/amd64fox/SpotX@main/patches/patches.json"
$webjson = irm -useb "https://cdn.jsdelivr.net/gh/amd64fox/SpotX@latest/patches/patches.json"
break
}
catch {

View File

@@ -1,6 +1,6 @@
@echo off
%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\powershell.exe -Command """""& {$(Invoke-RestMethod -UseBasicParsing 'https://cdn.jsdelivr.net/gh/amd64fox/SpotX@main/Install.ps1')} -new_theme """" | Invoke-Expression"
%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\powershell.exe -Command """""& {$(Invoke-RestMethod -UseBasicParsing 'https://cdn.jsdelivr.net/gh/amd64fox/SpotX@latest/Install.ps1')} -new_theme """" | Invoke-Expression"
pause
exit /b

View File

@@ -1,6 +1,6 @@
@echo off
%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\powershell.exe -Command """""& {$(Invoke-RestMethod -UseBasicParsing 'https://cdn.jsdelivr.net/gh/amd64fox/SpotX@main/Install.ps1')} -v 1.2.13.661.ga588f749-4064 -confirm_spoti_recomended_over -block_update_on """" | Invoke-Expression"
%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\powershell.exe -Command """""& {$(Invoke-RestMethod -UseBasicParsing 'https://cdn.jsdelivr.net/gh/amd64fox/SpotX@latest/Install.ps1')} -v 1.2.13.661.ga588f749-4064 -confirm_spoti_recomended_over -block_update_on """" | Invoke-Expression"
pause
exit /b

View File

@@ -1,12 +1,12 @@
<p align="center">
<a href="https://github.com/amd64fox/SpotX/releases"><img src="https://cdn.jsdelivr.net/gh/amd64fox/SpotX@main/.github/Pic/logo.png" />
<a href="https://github.com/amd64fox/SpotX/releases"><img src="https://cdn.jsdelivr.net/gh/amd64fox/SpotX@latest/.github/Pic/logo.png" />
</p>
<p align="center">
<a href="https://t.me/spotify_windows_mod"><img src="https://cdn.jsdelivr.net/gh/amd64fox/SpotX@main/.github/Pic/Shields/SpotX_Channel.svg"></a>
<a href="https://t.me/SpotxCommunity"><img src="https://cdn.jsdelivr.net/gh/amd64fox/SpotX@main/.github/Pic/Shields/SpotX_Community.svg"></a>
<a href="https://github.com/jetfir3/SpotX-Bash"><img src="https://cdn.jsdelivr.net/gh/amd64fox/SpotX@main/.github/Pic/Shields/SpotX_for_Mac&Linux.svg"></a>
<a href="https://telegra.ph/SpotX-FAQ-09-19"><img src="https://cdn.jsdelivr.net/gh/amd64fox/SpotX@main/.github/Pic/Shields/faq.svg"></a>
<a href="https://t.me/spotify_windows_mod"><img src="https://cdn.jsdelivr.net/gh/amd64fox/SpotX@latest/.github/Pic/Shields/SpotX_Channel.svg"></a>
<a href="https://t.me/SpotxCommunity"><img src="https://cdn.jsdelivr.net/gh/amd64fox/SpotX@latest/.github/Pic/Shields/SpotX_Community.svg"></a>
<a href="https://github.com/jetfir3/SpotX-Bash"><img src="https://cdn.jsdelivr.net/gh/amd64fox/SpotX@latest/.github/Pic/Shields/SpotX_for_Mac&Linux.svg"></a>
<a href="https://telegra.ph/SpotX-FAQ-09-19"><img src="https://cdn.jsdelivr.net/gh/amd64fox/SpotX@latest/.github/Pic/Shields/faq.svg"></a>
</p>
<h2> <div align="center"><b> Modified Spotify Client for Windows </b></div> </h2>
@@ -48,7 +48,7 @@ or
#### Run The following command in PowerShell:
```ps1
iex "& {$(irm -useb 'https://cdn.jsdelivr.net/gh/amd64fox/SpotX@main/Install.ps1')} -new_theme"
iex "& {$(irm -useb 'https://cdn.jsdelivr.net/gh/amd64fox/SpotX@latest/Install.ps1')} -new_theme"
```
</details>
@@ -72,7 +72,7 @@ or
#### Run The following command in PowerShell:
```ps1
iex "& {$(irm -useb 'https://cdn.jsdelivr.net/gh/amd64fox/SpotX@main/Install.ps1')} -v 1.2.13.661.ga588f749-4064 -confirm_spoti_recomended_over -block_update_on"
iex "& {$(irm -useb 'https://cdn.jsdelivr.net/gh/amd64fox/SpotX@latest/Install.ps1')} -v 1.2.13.661.ga588f749-4064 -confirm_spoti_recomended_over -block_update_on"
```
</details>
@@ -101,7 +101,7 @@ or
#### Run The following command in PowerShell:
```ps1
iex "& {$(irm -useb 'https://cdn.jsdelivr.net/gh/amd64fox/SpotX@main/Install.ps1')} -confirm_uninstall_ms_spoti -confirm_spoti_recomended_over -podcasts_off -block_update_on -start_spoti -new_theme -adsections_off -lyrics_stat spotify"
iex "& {$(irm -useb 'https://cdn.jsdelivr.net/gh/amd64fox/SpotX@latest/Install.ps1')} -confirm_uninstall_ms_spoti -confirm_spoti_recomended_over -podcasts_off -block_update_on -start_spoti -new_theme -adsections_off -lyrics_stat spotify"
```
</details>
@@ -127,7 +127,7 @@ or
#### Run The following command in PowerShell:
```ps1
iex "& {$(irm -useb 'https://cdn.jsdelivr.net/gh/amd64fox/SpotX@main/Install.ps1')} -premium -new_theme"
iex "& {$(irm -useb 'https://cdn.jsdelivr.net/gh/amd64fox/SpotX@latest/Install.ps1')} -premium -new_theme"
```
</details>

View File

@@ -1,6 +1,6 @@
@echo off
%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\powershell.exe -Command """""& {$(Invoke-RestMethod -UseBasicParsing 'https://cdn.jsdelivr.net/gh/amd64fox/SpotX@main/Install.ps1')} -confirm_uninstall_ms_spoti -confirm_spoti_recomended_over -podcasts_off -block_update_on -start_spoti -new_theme -adsections_off -lyrics_stat spotify """" | Invoke-Expression"
%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\powershell.exe -Command """""& {$(Invoke-RestMethod -UseBasicParsing 'https://cdn.jsdelivr.net/gh/amd64fox/SpotX@latest/Install.ps1')} -confirm_uninstall_ms_spoti -confirm_spoti_recomended_over -podcasts_off -block_update_on -start_spoti -new_theme -adsections_off -lyrics_stat spotify """" | Invoke-Expression"
pause
exit /b

View File

@@ -1,6 +1,6 @@
@echo off
%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\powershell.exe -Command """""& {$(Invoke-RestMethod -UseBasicParsing 'https://cdn.jsdelivr.net/gh/amd64fox/SpotX@main/Install.ps1')} -premium -new_theme """" | Invoke-Expression"
%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\powershell.exe -Command """""& {$(Invoke-RestMethod -UseBasicParsing 'https://cdn.jsdelivr.net/gh/amd64fox/SpotX@latest/Install.ps1')} -premium -new_theme """" | Invoke-Expression"
pause
exit /b