diff --git a/Install.ps1 b/Install.ps1
index 1353f44b..58c72074 100644
--- a/Install.ps1
+++ b/Install.ps1
@@ -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 {
diff --git a/Install_New_theme.bat b/Install_New_theme.bat
index 4dc115f6..b4c0b3ec 100644
--- a/Install_New_theme.bat
+++ b/Install_New_theme.bat
@@ -1,6 +1,6 @@
@echo off
-%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"
+%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"
pause
exit /b
\ No newline at end of file
diff --git a/Install_Old_theme.bat b/Install_Old_theme.bat
index db3cfa5c..18520970 100644
--- a/Install_Old_theme.bat
+++ b/Install_Old_theme.bat
@@ -1,6 +1,6 @@
@echo off
-%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"
+%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"
pause
exit /b
\ No newline at end of file
diff --git a/README.md b/README.md
index c9832de3..24266991 100644
--- a/README.md
+++ b/README.md
@@ -1,12 +1,12 @@
-
+
-
-
-
-
+
+
+
+
Modified Spotify Client for Windows
@@ -48,7 +48,7 @@ or
#### Run The following command in PowerShell:
```ps1
-iex "& {$(irm -useb 'https://cdn.jsdelivr.net/gh/amd64fox/SpotX@latest/Install.ps1')} -new_theme"
+iex "& {$(irm -useb 'https://cdn.jsdelivr.net/gh/amd64fox/SpotX@main/Install.ps1')} -new_theme"
```
@@ -72,7 +72,7 @@ or
#### Run The following command in PowerShell:
```ps1
-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"
+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"
```
@@ -101,7 +101,7 @@ or
#### Run The following command in PowerShell:
```ps1
-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"
+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"
```
@@ -127,7 +127,7 @@ or
#### Run The following command in PowerShell:
```ps1
-iex "& {$(irm -useb 'https://cdn.jsdelivr.net/gh/amd64fox/SpotX@latest/Install.ps1')} -premium -new_theme"
+iex "& {$(irm -useb 'https://cdn.jsdelivr.net/gh/amd64fox/SpotX@main/Install.ps1')} -premium -new_theme"
```
diff --git a/scripts/Install_Auto.bat b/scripts/Install_Auto.bat
index 40a55761..9ac55513 100644
--- a/scripts/Install_Auto.bat
+++ b/scripts/Install_Auto.bat
@@ -1,6 +1,6 @@
@echo off
-%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"
+%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"
pause
exit /b
diff --git a/scripts/Install_Prem.bat b/scripts/Install_Prem.bat
index 94988901..e3fad11f 100644
--- a/scripts/Install_Prem.bat
+++ b/scripts/Install_Prem.bat
@@ -1,6 +1,6 @@
@echo off
-%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"
+%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"
pause
exit /b
\ No newline at end of file