From ffd4a6b897f23d2b2120aee08a5cbf302b03c498 Mon Sep 17 00:00:00 2001 From: amd64fox <62529699+amd64fox@users.noreply.github.com> Date: Sat, 4 Apr 2026 17:07:19 +0300 Subject: [PATCH] use temporary download URL for latest x64 #836 --- run.ps1 | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/run.ps1 b/run.ps1 index dbc5959..30ac89f 100644 --- a/run.ps1 +++ b/run.ps1 @@ -478,6 +478,7 @@ function Get-SpotifyInstallerArchitecture { } $spotifyDownloadBaseUrl = "https://loadspot.amd64fox1.workers.dev/download" +$spotifyTemporaryDownloadBaseUrl = "https://loadspot.amd64fox1.workers.dev/temporary-download" $systemArchitecture = Get-SystemArchitecture $match_v = "^(?\d+\.\d+\.\d+\.\d+\.g[0-9a-f]{8})(?:-\d+)?$" @@ -1232,7 +1233,13 @@ function downloadSp([string]$DownloadFolder) { -SpotifyVersion $spotifyVersion ` -LastX86SupportedVersion $last_x86 - $web_Url = "$spotifyDownloadBaseUrl/spotify_installer-$onlineFull-$arch.exe" + $downloadBaseUrl = $spotifyDownloadBaseUrl + if ($onlineFull -eq $latest_full -and $arch -eq 'x64') { + # Temporary route for the latest x64 build while Cloudflare rechecks the file + $downloadBaseUrl = $spotifyTemporaryDownloadBaseUrl + } + + $web_Url = "$downloadBaseUrl/spotify_installer-$onlineFull-$arch.exe" $local_Url = Join-Path $DownloadFolder 'SpotifySetup.exe' $web_name_file = "SpotifySetup.exe" try {