diff --git a/ms-spotify-check.ps1 b/ms-spotify-check.ps1 index 9007685..a3d2fc2 100644 --- a/ms-spotify-check.ps1 +++ b/ms-spotify-check.ps1 @@ -102,7 +102,7 @@ function Get-LatestSpotifyVersion { } return $latestFile - } -MaxAttempts 3 -DelaySeconds 5 + } -MaxAttempts 6 -DelaySeconds 6 if ($response) { Write-Log "Found: $($response.FileName)" @@ -111,7 +111,7 @@ function Get-LatestSpotifyVersion { else { Write-Log "Failed to find matching Spotify file after multiple attempts." Write-Log "Response:" - Write-Log $lastResponse + Write-Log $script:lastResponse return $null } }