mirror of
https://github.com/SpotX-Official/SpotX.git
synced 2026-04-14 12:48:22 +10:00
Additional parameters in the web request to define new versions
This commit is contained in:
@@ -537,8 +537,8 @@ function DesktopFolder {
|
||||
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
|
||||
|
||||
Stop-Process -Name Spotify
|
||||
|
||||
if ($PSVersionTable.PSVersion.major -ge 7) {
|
||||
$psv = $PSVersionTable.PSVersion.major
|
||||
if ($psv -ge 7) {
|
||||
Import-Module Appx -UseWindowsPowerShell -WarningAction:SilentlyContinue
|
||||
}
|
||||
|
||||
@@ -698,6 +698,9 @@ if ($spotifyInstalled) {
|
||||
Method = 'POST'
|
||||
Body = @{
|
||||
'entry.620327948' = $version
|
||||
'entry.1402903593' = $win_os
|
||||
'entry.860691305' = $psv
|
||||
'entry.2067427976' = $online + " меньше чем " + $offline
|
||||
}
|
||||
}
|
||||
Invoke-WebRequest @Parameters | Out-Null
|
||||
|
||||
Reference in New Issue
Block a user