From 81bb483435e706187991c26cb6c91157bdd4d90e Mon Sep 17 00:00:00 2001 From: amd64fox Date: Mon, 4 Apr 2022 05:46:58 +0300 Subject: [PATCH] Cache error --- Install.ps1 | 2 ++ Install_rus.ps1 | 2 ++ 2 files changed, 4 insertions(+) diff --git a/Install.ps1 b/Install.ps1 index d809e66..5b06593 100644 --- a/Install.ps1 +++ b/Install.ps1 @@ -690,6 +690,8 @@ if ($cache_install) { New-Item -Path $env:APPDATA\Spotify\ -Name "cache" -ItemType "directory" | Out-Null + $webClient = New-Object -TypeName System.Net.WebClient + # cache-spotify.ps1 $webClient.DownloadFile('https://raw.githubusercontent.com/amd64fox/SpotX/main/Cache/cache-spotify.ps1', "$env:APPDATA\Spotify\cache\cache-spotify.ps1") diff --git a/Install_rus.ps1 b/Install_rus.ps1 index c660470..2f06bca 100644 --- a/Install_rus.ps1 +++ b/Install_rus.ps1 @@ -866,6 +866,8 @@ if ($cache_install) { Start-Sleep -Milliseconds 200 New-Item -Path $env:APPDATA\Spotify\ -Name "cache" -ItemType "directory" | Out-Null + + $webClient = New-Object -TypeName System.Net.WebClient # cache-spotify.ps1 $webClient.DownloadFile('https://raw.githubusercontent.com/amd64fox/SpotX/main/Cache/cache_spotify_ru.ps1', "$env:APPDATA\Spotify\cache\cache-spotify.ps1")