- Disable cert revocation checks (Schannel) https://github.com/amd64fox/SpotX/issues/51
 - Added repeated web request if curl cmdlet is used
This commit is contained in:
amd64fox
2022-07-01 23:39:17 +03:00
parent d8dcb80612
commit b39f484dbd
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -183,7 +183,7 @@ function downloadScripts($param1) {
} }
try { try {
if ($param1 -eq "Desktop" -and $curl_check) { if ($param1 -eq "Desktop" -and $curl_check) {
curl.exe $web_Url -o $local_Url --progress-bar curl.exe $web_Url -o $local_Url --progress-bar --retry 3 --ssl-no-revoke
} }
if ($param1 -eq "Desktop" -and $null -ne (Get-Module -Name BitsTransfer -ListAvailable) -and !($curl_check )) { if ($param1 -eq "Desktop" -and $null -ne (Get-Module -Name BitsTransfer -ListAvailable) -and !($curl_check )) {
Start-BitsTransfer -Source $web_Url -Destination $local_Url -DisplayName "Downloading Spotify" -Description "$vernew " Start-BitsTransfer -Source $web_Url -Destination $local_Url -DisplayName "Downloading Spotify" -Description "$vernew "
@@ -207,7 +207,7 @@ function downloadScripts($param1) {
try { try {
if ($param1 -eq "Desktop" -and $curl_check) { if ($param1 -eq "Desktop" -and $curl_check) {
curl.exe $web_Url -o $local_Url --progress-bar curl.exe $web_Url -o $local_Url --progress-bar --retry 3 --ssl-no-revoke
} }
if ($param1 -eq "Desktop" -and $null -ne (Get-Module -Name BitsTransfer -ListAvailable) -and !($curl_check )) { if ($param1 -eq "Desktop" -and $null -ne (Get-Module -Name BitsTransfer -ListAvailable) -and !($curl_check )) {
Start-BitsTransfer -Source $web_Url -Destination $local_Url -DisplayName "Downloading Spotify" -Description "$vernew " Start-BitsTransfer -Source $web_Url -Destination $local_Url -DisplayName "Downloading Spotify" -Description "$vernew "
+2 -2
View File
@@ -183,7 +183,7 @@ function downloadScripts($param1) {
} }
try { try {
if ($param1 -eq "Desktop" -and $curl_check) { if ($param1 -eq "Desktop" -and $curl_check) {
curl.exe $web_Url -o $local_Url --progress-bar curl.exe $web_Url -o $local_Url --progress-bar --retry 3 --ssl-no-revoke
} }
if ($param1 -eq "Desktop" -and $null -ne (Get-Module -Name BitsTransfer -ListAvailable) -and !($curl_check )) { if ($param1 -eq "Desktop" -and $null -ne (Get-Module -Name BitsTransfer -ListAvailable) -and !($curl_check )) {
Start-BitsTransfer -Source $web_Url -Destination $local_Url -DisplayName "Downloading Spotify" -Description "$vernew " Start-BitsTransfer -Source $web_Url -Destination $local_Url -DisplayName "Downloading Spotify" -Description "$vernew "
@@ -207,7 +207,7 @@ function downloadScripts($param1) {
try { try {
if ($param1 -eq "Desktop" -and $curl_check) { if ($param1 -eq "Desktop" -and $curl_check) {
curl.exe $web_Url -o $local_Url --progress-bar curl.exe $web_Url -o $local_Url --progress-bar --retry 3 --ssl-no-revoke
} }
if ($param1 -eq "Desktop" -and $null -ne (Get-Module -Name BitsTransfer -ListAvailable) -and !($curl_check )) { if ($param1 -eq "Desktop" -and $null -ne (Get-Module -Name BitsTransfer -ListAvailable) -and !($curl_check )) {
Start-BitsTransfer -Source $web_Url -Destination $local_Url -DisplayName "Downloading Spotify" -Description "$vernew " Start-BitsTransfer -Source $web_Url -Destination $local_Url -DisplayName "Downloading Spotify" -Description "$vernew "