diff --git a/.github/Pic/Shields/faq.svg b/.github/Pic/Shields/faq.svg deleted file mode 100644 index 6aa34ed..0000000 --- a/.github/Pic/Shields/faq.svg +++ /dev/null @@ -1 +0,0 @@ -FAQ: FAQ \ No newline at end of file diff --git a/.github/Pic/Shields/tg.svg b/.github/Pic/Shields/tg.svg deleted file mode 100644 index d7524da..0000000 --- a/.github/Pic/Shields/tg.svg +++ /dev/null @@ -1 +0,0 @@ -Telegram Channel: Telegram Channel \ No newline at end of file diff --git a/Install.ps1 b/Install.ps1 index 340a38e..4fe641a 100644 --- a/Install.ps1 +++ b/Install.ps1 @@ -624,6 +624,7 @@ if ($spotifyInstalled) { $offline = Check_verison_clients -param2 "offline" + # Old version Spotify if ($online -gt $offline) { if ($confirm_spoti_recomended_over -or $confirm_spoti_recomended_unistall) { Write-Host ($lang).OldV`n @@ -674,9 +675,30 @@ if ($spotifyInstalled) { $downgrading = $true } } - + + # Unsupported version Spotify if ($online -lt $offline) { + # Submit unsupported version of Spotify to google form for further processing + try { + $txt = [IO.File]::ReadAllText($spotifyExecutable) + $regex = "(\d+)\.(\d+)\.(\d+)\.(\d+)(\.g[0-9a-f]{8})" + $v = $txt | Select-String $regex -AllMatches + $version = $v.Matches.Value + $Parameters = @{ + Uri = 'https://docs.google.com/forms/d/e/1FAIpQLSegGsAgilgQ8Y36uw-N7zFF6Lh40cXNfyl1ecHPpZcpD8kdHg/formResponse' + Method = 'POST' + Body = @{ + 'entry.620327948' = $version + } + } + Invoke-WebRequest @Parameters | Out-Null + } + catch { + Write-Host 'Unable to submit new version of Spotify' + Write-Host "error description: $Error" + } + if ($confirm_spoti_recomended_over -or $confirm_spoti_recomended_unistall) { Write-Host ($lang).NewV`n } @@ -1021,8 +1043,8 @@ function Helper($paramname) { # Experimental Feature Standart $rem = $webjson.exp.psobject.properties - if ( $ofline -le "1.1.96.785") { $rem.remove('newhome2'), $rem.remove('copy-playlists'); $newhome = 'newhome'} - if ( $ofline -ge "1.1.97.956") { $rem.remove('newhome'); $newhome = 'newhome2'} + if ( $ofline -le "1.1.96.785") { $rem.remove('newhome2'), $rem.remove('copy-playlists'); $newhome = 'newhome' } + if ( $ofline -ge "1.1.97.956") { $rem.remove('newhome'); $newhome = 'newhome2' } if ($enhance_like_off) { $rem.remove('enhanceliked') } if ($enhance_playlist_off) { $rem.remove('enhanceplaylist') } if ($new_artist_pages_off) { $rem.remove('disographyartist') }