mirror of
https://github.com/SpotX-Official/SpotX.git
synced 2026-04-19 13:46:09 +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
|
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
|
||||||
|
|
||||||
Stop-Process -Name Spotify
|
Stop-Process -Name Spotify
|
||||||
|
$psv = $PSVersionTable.PSVersion.major
|
||||||
if ($PSVersionTable.PSVersion.major -ge 7) {
|
if ($psv -ge 7) {
|
||||||
Import-Module Appx -UseWindowsPowerShell -WarningAction:SilentlyContinue
|
Import-Module Appx -UseWindowsPowerShell -WarningAction:SilentlyContinue
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -698,6 +698,9 @@ if ($spotifyInstalled) {
|
|||||||
Method = 'POST'
|
Method = 'POST'
|
||||||
Body = @{
|
Body = @{
|
||||||
'entry.620327948' = $version
|
'entry.620327948' = $version
|
||||||
|
'entry.1402903593' = $win_os
|
||||||
|
'entry.860691305' = $psv
|
||||||
|
'entry.2067427976' = $online + " меньше чем " + $offline
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Invoke-WebRequest @Parameters | Out-Null
|
Invoke-WebRequest @Parameters | Out-Null
|
||||||
|
|||||||
Reference in New Issue
Block a user