mirror of
https://github.com/SpotX-Official/SpotX.git
synced 2026-06-14 03:16:33 +10:00
Added request
- Added request to cutt.ly for patch install statistics
This commit is contained in:
+14
-1
@@ -71,6 +71,19 @@ Write-Host "Author: " -NoNewline
|
||||
Write-Host "@Amd64fox" -ForegroundColor DarkYellow
|
||||
Write-Host "*****************"`n
|
||||
|
||||
$ErrorActionPreference = 'SilentlyContinue'
|
||||
$cutt_url = "https://cutt.ly/AKH7MQ6"
|
||||
try {
|
||||
Invoke-WebRequest -Uri $cutt_url | Out-Null
|
||||
}
|
||||
catch [System.Management.Automation.MethodInvocationException] {
|
||||
|
||||
try {
|
||||
Invoke-WebRequest -Uri $cutt_url | Out-Null
|
||||
}
|
||||
catch [System.Management.Automation.MethodInvocationException] {
|
||||
}
|
||||
}
|
||||
|
||||
$spotifyDirectory = "$env:APPDATA\Spotify"
|
||||
$spotifyDirectory2 = "$env:LOCALAPPDATA\Spotify"
|
||||
@@ -574,7 +587,7 @@ if (!($cache_on) -and !($cache_off)) {
|
||||
do {
|
||||
$ch = Read-Host -Prompt "Cache files that have not been used for more than XX days will be deleted.
|
||||
Enter the number of days from 1 to 100"
|
||||
Write-Host ""
|
||||
Write-Host ""
|
||||
if (!($ch -match "^[1-9][0-9]?$|^100$")) { incorrectValue }
|
||||
}
|
||||
while ($ch -notmatch '^[1-9][0-9]?$|^100$')
|
||||
|
||||
+14
-1
@@ -71,6 +71,19 @@ Write-Host "Автор: " -NoNewline
|
||||
Write-Host "@Amd64fox" -ForegroundColor DarkYellow
|
||||
Write-Host "*****************"`n
|
||||
|
||||
$ErrorActionPreference = 'SilentlyContinue'
|
||||
$cutt_url = "https://cutt.ly/AKH7MQ6"
|
||||
try {
|
||||
Invoke-WebRequest -Uri $cutt_url | Out-Null
|
||||
}
|
||||
catch [System.Management.Automation.MethodInvocationException] {
|
||||
|
||||
try {
|
||||
Invoke-WebRequest -Uri $cutt_url | Out-Null
|
||||
}
|
||||
catch [System.Management.Automation.MethodInvocationException] {
|
||||
}
|
||||
}
|
||||
|
||||
$spotifyDirectory = "$env:APPDATA\Spotify"
|
||||
$spotifyDirectory2 = "$env:LOCALAPPDATA\Spotify"
|
||||
@@ -574,7 +587,7 @@ if (!($cache_on) -and !($cache_off)) {
|
||||
do {
|
||||
$ch = Read-Host -Prompt "Файлы кэша, которые не использовались более XX дней, будут удалены.
|
||||
Пожалуйста, введите количество дней от 1 до 100"
|
||||
Write-Host ""
|
||||
Write-Host ""
|
||||
if (!($ch -match "^[1-9][0-9]?$|^100$")) { incorrectValue }
|
||||
}
|
||||
while ($ch -notmatch '^[1-9][0-9]?$|^100$')
|
||||
|
||||
Reference in New Issue
Block a user