mirror of
https://github.com/SpotX-Official/SpotX.git
synced 2026-06-14 03:16:33 +10:00
Revert "migration from raw.github to jsdelivr"
This reverts commit 9e2c1ecf0c.
This commit is contained in:
+12
-12
@@ -263,11 +263,11 @@ if ($psv -ge 7) {
|
|||||||
|
|
||||||
function CallLang($clg) {
|
function CallLang($clg) {
|
||||||
|
|
||||||
$urlLang = "https://cdn.jsdelivr.net/gh/amd64fox/SpotX@main/scripts/installer-lang/$clg.ps1"
|
$urlLang = "https://raw.githubusercontent.com/amd64fox/SpotX/main/scripts/installer-lang/$clg.ps1"
|
||||||
$ProgressPreference = 'SilentlyContinue'
|
$ProgressPreference = 'SilentlyContinue'
|
||||||
|
|
||||||
try {
|
try {
|
||||||
Invoke-RestMethod -useb $urlLang | Invoke-Expression
|
(Invoke-WebRequest -useb $urlLang).Content | Invoke-Expression
|
||||||
}
|
}
|
||||||
catch {
|
catch {
|
||||||
Write-Host "Error loading $clg language"
|
Write-Host "Error loading $clg language"
|
||||||
@@ -285,8 +285,8 @@ $lang = CallLang -clg $langCode
|
|||||||
# Set variable 'ru'.
|
# Set variable 'ru'.
|
||||||
if ($langCode -eq 'ru') {
|
if ($langCode -eq 'ru') {
|
||||||
$ru = $true
|
$ru = $true
|
||||||
$urlru = "https://cdn.jsdelivr.net/gh/amd64fox/SpotX@main/patches/Augmented%20translation/ru.json"
|
$urlru = "https://raw.githubusercontent.com/amd64fox/SpotX/main/patches/Augmented%20translation/ru.json"
|
||||||
$webjsonru = Invoke-RestMethod -useb -Uri $urlru
|
$webjsonru = (Invoke-WebRequest -useb -Uri $urlru).Content | ConvertFrom-Json
|
||||||
}
|
}
|
||||||
|
|
||||||
Write-Host ($lang).Welcome
|
Write-Host ($lang).Welcome
|
||||||
@@ -350,18 +350,18 @@ else {
|
|||||||
}
|
}
|
||||||
$online = ($onlineFull -split ".g")[0]
|
$online = ($onlineFull -split ".g")[0]
|
||||||
|
|
||||||
|
# Sending a statistical web query to cutt.ly
|
||||||
$ErrorActionPreference = 'SilentlyContinue'
|
$ErrorActionPreference = 'SilentlyContinue'
|
||||||
$cutt_url = "https://cutt.ly/PwlLDSBF"
|
$cutt_url = "https://cutt.ly/DK8UQub"
|
||||||
$retriess = 0
|
$retries = 0
|
||||||
$maxRetries = 3
|
|
||||||
|
|
||||||
while ($retriess -lt $maxRetries) {
|
while ($retries -lt 2) {
|
||||||
try {
|
try {
|
||||||
$null = Invoke-WebRequest -UseBasicParsing -Uri $cutt_url
|
$null = Invoke-WebRequest -useb -Uri $cutt_url
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
catch {
|
catch {
|
||||||
$retriess++
|
$retries++
|
||||||
Start-Sleep -Seconds 2
|
Start-Sleep -Seconds 2
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -871,12 +871,12 @@ if ($ch -eq 'n') {
|
|||||||
|
|
||||||
$ch = $null
|
$ch = $null
|
||||||
|
|
||||||
|
$url = "https://raw.githubusercontent.com/amd64fox/SpotX/main/patches/patches.json"
|
||||||
$retries = 0
|
$retries = 0
|
||||||
|
|
||||||
while ($retries -lt 3) {
|
while ($retries -lt 3) {
|
||||||
try {
|
try {
|
||||||
$webjson = irm -useb "https://cdn.jsdelivr.net/gh/amd64fox/SpotX@main/patches/patches.json"
|
$webjson = Invoke-WebRequest -UseBasicParsing -Uri $url | ConvertFrom-Json
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
catch {
|
catch {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\powershell.exe -Command "&{[Net.ServicePointManager]::SecurityProtocol = 3072}; """"& {$(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 "&{[Net.ServicePointManager]::SecurityProtocol = 3072}; """"& { $((Invoke-WebRequest -UseBasicParsing 'https://raw.githubusercontent.com/amd64fox/SpotX/main/Install.ps1').Content)} -new_theme """" | Invoke-Expression"
|
||||||
|
|
||||||
pause
|
pause
|
||||||
exit /b
|
exit /b
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\powershell.exe -Command "&{[Net.ServicePointManager]::SecurityProtocol = 3072}; """"& {$(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 "&{[Net.ServicePointManager]::SecurityProtocol = 3072}; """"& { $((Invoke-WebRequest -UseBasicParsing 'https://raw.githubusercontent.com/amd64fox/SpotX/main/Install.ps1').Content)} -v 1.2.13.661.ga588f749-4064 -confirm_spoti_recomended_over -block_update_on """" | Invoke-Expression"
|
||||||
|
|
||||||
pause
|
pause
|
||||||
exit /b
|
exit /b
|
||||||
@@ -1,12 +1,12 @@
|
|||||||
<p align="center">
|
<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://raw.githubusercontent.com/amd64fox/SpotX/main/.github/Pic/logo.png" />
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p align="center">
|
<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/spotify_windows_mod"><img src="https://raw.githubusercontent.com/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://t.me/SpotxCommunity"><img src="https://raw.githubusercontent.com/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://github.com/jetfir3/SpotX-Bash"><img src="https://raw.githubusercontent.com/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://telegra.ph/SpotX-FAQ-09-19"><img src="https://raw.githubusercontent.com/amd64fox/SpotX/main/.github/Pic/Shields/faq.svg"></a>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<h2> <div align="center"><b> Modified Spotify Client for Windows </b></div> </h2>
|
<h2> <div align="center"><b> Modified Spotify Client for Windows </b></div> </h2>
|
||||||
@@ -48,7 +48,7 @@ or
|
|||||||
#### Run The following command in PowerShell:
|
#### Run The following command in PowerShell:
|
||||||
|
|
||||||
```ps1
|
```ps1
|
||||||
[Net.ServicePointManager]::SecurityProtocol = 3072; iex "& {$(irm -useb 'https://cdn.jsdelivr.net/gh/amd64fox/SpotX@main/Install.ps1')} -new_theme"
|
[Net.ServicePointManager]::SecurityProtocol = 3072; iex "& { $((iwr -useb 'https://raw.githubusercontent.com/amd64fox/SpotX/main/Install.ps1').Content) } -new_theme"
|
||||||
```
|
```
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
@@ -72,7 +72,7 @@ or
|
|||||||
#### Run The following command in PowerShell:
|
#### Run The following command in PowerShell:
|
||||||
|
|
||||||
```ps1
|
```ps1
|
||||||
[Net.ServicePointManager]::SecurityProtocol = 3072; 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"
|
[Net.ServicePointManager]::SecurityProtocol = 3072; iex "& { $((iwr -useb 'https://raw.githubusercontent.com/amd64fox/SpotX/main/Install.ps1').Content) } -v 1.2.13.661.ga588f749-4064 -confirm_spoti_recomended_over -block_update_on"
|
||||||
```
|
```
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
@@ -101,7 +101,7 @@ or
|
|||||||
#### Run The following command in PowerShell:
|
#### Run The following command in PowerShell:
|
||||||
|
|
||||||
```ps1
|
```ps1
|
||||||
[Net.ServicePointManager]::SecurityProtocol = 3072; 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"
|
[Net.ServicePointManager]::SecurityProtocol = 3072; iex "& { $((iwr -useb 'https://raw.githubusercontent.com/amd64fox/SpotX/main/Install.ps1').Content) } -confirm_uninstall_ms_spoti -confirm_spoti_recomended_over -podcasts_off -block_update_on -start_spoti -new_theme -adsections_off -lyrics_stat spotify"
|
||||||
```
|
```
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
@@ -127,7 +127,7 @@ or
|
|||||||
#### Run The following command in PowerShell:
|
#### Run The following command in PowerShell:
|
||||||
|
|
||||||
```ps1
|
```ps1
|
||||||
[Net.ServicePointManager]::SecurityProtocol = 3072; iex "& {$(irm -useb 'https://cdn.jsdelivr.net/gh/amd64fox/SpotX@main/Install.ps1')} -premium -new_theme"
|
[Net.ServicePointManager]::SecurityProtocol = 3072; iex "& { $((iwr -useb 'https://raw.githubusercontent.com/amd64fox/SpotX/main/Install.ps1').Content) } -premium -new_theme"
|
||||||
```
|
```
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\powershell.exe -Command "&{[Net.ServicePointManager]::SecurityProtocol = 3072}; """"& {$(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 "&{[Net.ServicePointManager]::SecurityProtocol = 3072}; """"& { $((Invoke-WebRequest -UseBasicParsing 'https://raw.githubusercontent.com/amd64fox/SpotX/main/Install.ps1').Content)} -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
|
pause
|
||||||
exit /b
|
exit /b
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\powershell.exe -Command "&{[Net.ServicePointManager]::SecurityProtocol = 3072}; """"& {$(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 "&{[Net.ServicePointManager]::SecurityProtocol = 3072}; """"& { $((Invoke-WebRequest -UseBasicParsing 'https://raw.githubusercontent.com/amd64fox/SpotX/main/Install.ps1').Content)} -premium -new_theme """" | Invoke-Expression"
|
||||||
|
|
||||||
pause
|
pause
|
||||||
exit /b
|
exit /b
|
||||||
Reference in New Issue
Block a user