mirror of
https://github.com/SpotX-Official/SpotX.git
synced 2026-04-11 17:37:21 +10:00
update
- small refactoring - minor bug fixes
This commit is contained in:
@@ -72,12 +72,6 @@ body:
|
||||
CacheSelect = "Want to set up automatic cache cleanup? [Y/N]"
|
||||
CacheDays = "Cache older: XX days to be cleared "
|
||||
CacheDays2 = "Enter the number of days from 1 to 100"
|
||||
NoVariable = "Didn't find variable"
|
||||
NoVariable2 = "in xpui.js"
|
||||
NoVariable3 = "in licenses.html"
|
||||
NoVariable4 = "in html"
|
||||
NoVariable5 = "in home-v2.js"
|
||||
NoVariable6 = "in xpui-desktop-modals.js"
|
||||
ModSpoti = "Patching Spotify..."
|
||||
Error = "Error"
|
||||
FileLocBroken = "Location of Spotify files is broken, uninstall the client and run the script again"
|
||||
|
||||
229
Install.ps1
229
Install.ps1
@@ -300,7 +300,7 @@ $lang = Set-ScriptLanguageStrings -LanguageCode $langCode
|
||||
# Set variable 'ru'.
|
||||
if ($langCode -eq 'ru') {
|
||||
$ru = $true
|
||||
$urlru = "https://raw.githubusercontent.com/amd64fox/Test/main/ru.json"
|
||||
$urlru = "https://raw.githubusercontent.com/SpotX-CLI/SpotX-commons/main/Augmented%20translation/ru.json"
|
||||
$webjsonru = (Invoke-WebRequest -UseBasicParsing -Uri $urlru).Content | ConvertFrom-Json
|
||||
}
|
||||
# Set variable 'add translation line'.
|
||||
@@ -911,32 +911,70 @@ if ($exp_spotify) { Write-Host ($lang).ExpSpotify`n }
|
||||
$url = "https://raw.githubusercontent.com/SpotX-CLI/SpotX-commons/main/patches.json"
|
||||
$webjson = (Invoke-WebRequest -UseBasicParsing -Uri $url).Content | ConvertFrom-Json
|
||||
$ofline = Check_verison_clients -param2 "offline"
|
||||
|
||||
function Helper($paramname) {
|
||||
|
||||
switch ( $paramname ) {
|
||||
"HtmlLicMin" {
|
||||
# licenses.html minification
|
||||
$html_lic_min = @{
|
||||
HtmlLicMin1 = '<li><a href="#6eef7">zlib<\/a><\/li>\n(.|\n)*<\/p><!-- END CONTAINER DEPS LICENSES -->(<\/div>)', '$2'
|
||||
HtmlLicMin2 = ' ', ''
|
||||
HtmlLicMin3 = ' ', ''
|
||||
HtmlLicMin4 = '(?m)(^\s*\r?\n)', ''
|
||||
HtmlLicMin5 = '\r?\n(?!\(1|\d)', ''
|
||||
}
|
||||
$n = ($lang).NoVariable3
|
||||
$contents = $html_lic_min
|
||||
$name = "patches.json.others."
|
||||
$n = "licenses.html"
|
||||
$contents = "htmlmin"
|
||||
$json = $webjson.others
|
||||
$paramdata = $xpuiContents_html
|
||||
}
|
||||
"HtmlBlank" {
|
||||
# htmlBlank minification
|
||||
$name = "patches.json.others."
|
||||
$n = "blank.html"
|
||||
$contents = "blank.html"
|
||||
$json = $webjson.others
|
||||
$paramdata = $xpuiContents_html_blank
|
||||
}
|
||||
"MinJs" {
|
||||
# Minification of all *.js
|
||||
$contents = "minjs"
|
||||
$json = $webjson.others
|
||||
$paramdata = $xpuiContents_js
|
||||
}
|
||||
"MinJson" {
|
||||
# Minification of all *.json
|
||||
$contents = "minjson"
|
||||
$json = $webjson.others
|
||||
$paramdata = $xpuiContents_json
|
||||
}
|
||||
"RemovertlCssmin" {
|
||||
# Remove RTL and minification of all *.css
|
||||
$contents = "removertl-cssmin"
|
||||
$json = $webjson.others
|
||||
$paramdata = $xpuiContents_css
|
||||
}
|
||||
"DisableSentry" {
|
||||
# Disable Sentry (vendor~xpui.js)
|
||||
$name = "patches.json.others."
|
||||
$n = "vendor~xpui.js"
|
||||
$contents = "disablesentry"
|
||||
$json = $webjson.others
|
||||
$paramdata = $xpuiContents_vendor
|
||||
}
|
||||
"DisabledLog" {
|
||||
# Disabled logging
|
||||
$name = "patches.json.others."
|
||||
$n = "xpui.js"
|
||||
$contents = "disablelog"
|
||||
$json = $webjson.others
|
||||
$paramdata = $xpui_js
|
||||
}
|
||||
"Lyrics-color" {
|
||||
# Static color for lyrics (xpui-routes-lyrics.css)
|
||||
|
||||
$webjson.others.lyricscolor.replace[0] = '$1' + $webjson.others.lyricscolor.theme.$lyrics_stat.pasttext
|
||||
$webjson.others.lyricscolor.replace[1] = '$1' + $webjson.others.lyricscolor.theme.$lyrics_stat.current
|
||||
$webjson.others.lyricscolor.replace[2] = '$1' + $webjson.others.lyricscolor.theme.$lyrics_stat.next
|
||||
$webjson.others.lyricscolor.replace[3] = '$1' + $webjson.others.lyricscolor.theme.$lyrics_stat.hover
|
||||
$webjson.others.lyricscolor.replace[4] = $webjson.others.lyricscolor.theme.$lyrics_stat.background
|
||||
$webjson.others.lyricscolor.replace[5] = '$1' + $webjson.others.lyricscolor.theme.$lyrics_stat.maxmatch
|
||||
|
||||
$name = "patches.json.others."
|
||||
$n = "xpui-routes-lyrics.css"
|
||||
$contents = "lyricscolor"
|
||||
$json = $webjson.others
|
||||
$paramdata = $xpui_lyrics
|
||||
@@ -944,46 +982,44 @@ function Helper($paramname) {
|
||||
}
|
||||
"Discriptions" {
|
||||
# Add discriptions (xpui-desktop-modals.js)
|
||||
$n = ($lang).NoVariable6
|
||||
$name = "patches.json.others."
|
||||
$n = "xpui-desktop-modals.js"
|
||||
$contents = "discriptions"
|
||||
$json = $webjson.others
|
||||
$paramdata = $xpui_desktop_modals
|
||||
|
||||
}
|
||||
"OffadsonFullscreen" {
|
||||
|
||||
# Full screen mode activation and removing "Upgrade to premium" menu, upgrade button, disabling a playlist sponsor
|
||||
if ($bts) { $webjson.free.psobject.properties.remove('bilboard'), $webjson.free.psobject.properties.remove('audioads') }
|
||||
|
||||
$webjson.free.psobject.properties.remove('submenudownload'), $webjson.free.psobject.properties.remove('veryhighstream'), $webjson.free.psobject.properties.remove('downloadicon')
|
||||
|
||||
if ($ofline -ge "1.1.98.683") { $webjson.free.psobject.properties.remove('connectold') }
|
||||
|
||||
$n = ($lang).NoVariable2
|
||||
$name = "patches.json.free."
|
||||
$n = "xpui.js"
|
||||
$contents = $webjson.free.psobject.properties.name
|
||||
$json = $webjson.free
|
||||
$paramdata = $xpui_js
|
||||
}
|
||||
"OffPodcasts" {
|
||||
# Turn off podcasts
|
||||
$n = ($lang).NoVariable5
|
||||
if ($ofline -le "1.1.92.647") { $podcats = "podcastsoff" }
|
||||
if ($ofline -le "1.1.96.785" -and $ofline -ge "1.1.93.896") { $podcats = "podcastsoff2" }
|
||||
if ($ofline -ge "1.1.97.952") { $podcats = "podcastsoff3" }
|
||||
$n = $js
|
||||
if ($ofline -le "1.1.92.647") { $podcats = "podcastsoff"; $name = "patches.json.others.podcastsoff" }
|
||||
if ($ofline -ge "1.1.93.896" -and $ofline -le "1.1.96.785") { $podcats = "podcastsoff2"; $name = "patches.json.others.podcastsoff2" }
|
||||
if ($ofline -ge "1.1.97.952") { $podcats = "podcastsoff3"; $name = "patches.json.others.podcastsoff3" }
|
||||
$contents = $podcats
|
||||
$json = $webjson.others
|
||||
$paramdata = $xpui_podcast
|
||||
}
|
||||
"OffRujs" {
|
||||
# Remove all languages except En and Ru from xpui.js
|
||||
$n = ($lang).NoVariable2
|
||||
$name = "patches.json.others."
|
||||
$n = "xpui.js"
|
||||
$contents = "offrujs"
|
||||
$json = $webjson.others
|
||||
$paramdata = $xpui_js
|
||||
}
|
||||
"RuTranslate" {
|
||||
# Additional translation of some words for the Russian language
|
||||
|
||||
$n = ($lang).NoVariable7
|
||||
$n = "ru.json"
|
||||
$contents = $webjsonru.psobject.properties.name
|
||||
$json = $webjsonru
|
||||
$paramdata = $xpui_ru
|
||||
@@ -1025,62 +1061,50 @@ function Helper($paramname) {
|
||||
}
|
||||
if ($ofline -lt "1.1.90.859" -or $ofline -gt "1.1.95.893") { $rem.remove('devicepicker') }
|
||||
if ($ofline -le "1.1.93.896") { $rem.remove($newhome) }
|
||||
$n = ($lang).NoVariable2
|
||||
$name = "patches.json.exp."
|
||||
$n = "xpui.js"
|
||||
$contents = $webjson.exp.psobject.properties.name
|
||||
$json = $webjson.exp
|
||||
$paramdata = $xpui_js
|
||||
}
|
||||
}
|
||||
|
||||
if ($paramname -ne "HtmlLicMin") {
|
||||
|
||||
$contents | ForEach-Object {
|
||||
$novariable = "Didn't find variable "
|
||||
$contents | ForEach-Object {
|
||||
|
||||
if ($json.$PSItem.match.Count -gt 1) {
|
||||
$count = $json.$PSItem.match.Count - 1
|
||||
$numbers = 0
|
||||
While ($numbers -le $count) {
|
||||
if ($json.$PSItem.match.Count -gt 1) {
|
||||
$count = $json.$PSItem.match.Count - 1
|
||||
$numbers = 0
|
||||
While ($numbers -le $count) {
|
||||
|
||||
if ($paramdata -match $json.$PSItem.match[$numbers]) {
|
||||
$paramdata = $paramdata -replace $json.$PSItem.match[$numbers], $json.$PSItem.replace[$numbers]
|
||||
}
|
||||
else {
|
||||
|
||||
Write-Host ($lang).NoVariable"" -ForegroundColor red -NoNewline
|
||||
Write-Host "`$contents.$PSItem $numbers"$n
|
||||
}
|
||||
$numbers++
|
||||
}
|
||||
}
|
||||
if ($json.$PSItem.match.Count -eq 1) {
|
||||
if ($paramdata -match $json.$PSItem.match) {
|
||||
$paramdata = $paramdata -replace $json.$PSItem.match, $json.$PSItem.replace
|
||||
if ($paramdata -match $json.$PSItem.match[$numbers]) {
|
||||
$paramdata = $paramdata -replace $json.$PSItem.match[$numbers], $json.$PSItem.replace[$numbers]
|
||||
}
|
||||
else {
|
||||
|
||||
if (!($paramname -eq "RuTranslate") -or $err_ru) {
|
||||
|
||||
$notlog = "MinJs", "MinJson", "Removertl", "RemovertlCssmin"
|
||||
if ($paramname -notin $notlog) {
|
||||
|
||||
Write-Host ($lang).NoVariable"" -ForegroundColor red -NoNewline
|
||||
Write-Host "`$contents.$PSItem"$n
|
||||
Write-Host $novariable -ForegroundColor red -NoNewline
|
||||
Write-Host "$name$PSItem $numbers"'in'$n
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
$numbers++
|
||||
}
|
||||
}
|
||||
}
|
||||
if ($paramname -eq "HtmlLicMin") {
|
||||
$contents.Keys | Sort-Object | ForEach-Object {
|
||||
|
||||
if ($paramdata -match $contents.$PSItem[0]) {
|
||||
$paramdata = $paramdata -replace $contents.$PSItem[0], $contents.$PSItem[1]
|
||||
if ($json.$PSItem.match.Count -eq 1) {
|
||||
if ($paramdata -match $json.$PSItem.match) {
|
||||
$paramdata = $paramdata -replace $json.$PSItem.match, $json.$PSItem.replace
|
||||
}
|
||||
else {
|
||||
|
||||
if (!($paramname -eq "RuTranslate") -or $err_ru) {
|
||||
|
||||
Write-Host ($lang).NoVariable"" -ForegroundColor red -NoNewline
|
||||
Write-Host "`$contents.$PSItem"$n
|
||||
|
||||
Write-Host $novariable -ForegroundColor red -NoNewline
|
||||
Write-Host "$name$PSItem"'in'$n
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
$paramdata
|
||||
}
|
||||
@@ -1192,7 +1216,7 @@ if (Test-Path $xpui_js_patch) {
|
||||
$writer = New-Object System.IO.StreamWriter -ArgumentList $xpui_js_patch
|
||||
$writer.BaseStream.SetLength(0)
|
||||
$writer.Write($xpui_js)
|
||||
$writer.Write([System.Environment]::NewLine + '// Patched by SpotX')
|
||||
$writer.Write([System.Environment]::NewLine + $webjson.others.byspotx.add)
|
||||
$writer.Close()
|
||||
|
||||
# Russian additional translation
|
||||
@@ -1259,20 +1283,20 @@ if (Test-Path $xpui_js_patch) {
|
||||
|
||||
if (!($premium)) {
|
||||
# Hide download icon on different pages
|
||||
$writer.Write([System.Environment]::NewLine + ' .BKsbV2Xl786X9a09XROH{display:none}')
|
||||
$writer.Write([System.Environment]::NewLine + $webjson.others.downloadicon.add)
|
||||
# Hide submenu item "download"
|
||||
$writer.Write([System.Environment]::NewLine + ' button.wC9sIed7pfp47wZbmU6m.pzkhLqffqF_4hucrVVQA{display:none}')
|
||||
$writer.Write([System.Environment]::NewLine + $webjson.others.submenudownload.add)
|
||||
# Hide very high quality streaming
|
||||
$writer.Write([System.Environment]::NewLine + ' #desktop\.settings\.streamingQuality>option:nth-child(5) {display:none}')
|
||||
$writer.Write([System.Environment]::NewLine + $webjson.others.veryhighstream.add)
|
||||
}
|
||||
# New UI fix
|
||||
if (!($navalt_off)) {
|
||||
$writer.Write([System.Environment]::NewLine + ' .nav-alt .Root__top-container {background: #00000085;gap: 6px;padding: 8px;}')
|
||||
$writer.Write([System.Environment]::NewLine + ' .Root__fixed-top-bar {background-color: #00000000}')
|
||||
$writer.Write([System.Environment]::NewLine + $webjson.others.navaltfix.add[0])
|
||||
$writer.Write([System.Environment]::NewLine + $webjson.others.navaltfix.add[1])
|
||||
}
|
||||
# Hide Collaborators icon
|
||||
if (!($hide_col_icon_off) -and !($exp_spotify)) {
|
||||
$writer.Write([System.Environment]::NewLine + ' .X1lXSiVj0pzhQCUo_72A{display:none}')
|
||||
$writer.Write([System.Environment]::NewLine + $webjson.others.collaboraticon.add)
|
||||
}
|
||||
$writer.Close()
|
||||
|
||||
@@ -1362,9 +1386,9 @@ If (Test-Path $xpui_spa_patch) {
|
||||
$reader = New-Object System.IO.StreamReader($entry_xpui.Open())
|
||||
$xpui_js = $reader.ReadToEnd()
|
||||
$reader.Close()
|
||||
|
||||
|
||||
# Full screen mode activation and removing "Upgrade to premium" menu, upgrade button, disabling a playlist sponsor
|
||||
if (!($premium)) {
|
||||
# Full screen mode activation and removing "Upgrade to premium" menu, upgrade button, disabling a playlist sponsor
|
||||
$xpui_js = Helper -paramname "OffadsonFullscreen"
|
||||
}
|
||||
|
||||
@@ -1375,12 +1399,12 @@ If (Test-Path $xpui_spa_patch) {
|
||||
if ($ru) { $xpui_js = Helper -paramname "OffRujs" }
|
||||
|
||||
# Disabled logging
|
||||
$xpui_js = $xpui_js -replace "sp://logging/v3/\w+", ""
|
||||
$xpui_js = Helper -paramname "DisabledLog"
|
||||
|
||||
$writer = New-Object System.IO.StreamWriter($entry_xpui.Open())
|
||||
$writer.BaseStream.SetLength(0)
|
||||
$writer.Write($xpui_js)
|
||||
$writer.Write([System.Environment]::NewLine + '// Patched by SpotX')
|
||||
$writer.Write([System.Environment]::NewLine + $webjson.others.byspotx.add)
|
||||
$writer.Close()
|
||||
|
||||
|
||||
@@ -1428,9 +1452,7 @@ If (Test-Path $xpui_spa_patch) {
|
||||
$reader = New-Object System.IO.StreamReader($entry_vendor_xpui.Open())
|
||||
$xpuiContents_vendor = $reader.ReadToEnd()
|
||||
$reader.Close()
|
||||
|
||||
$xpuiContents_vendor = $xpuiContents_vendor `
|
||||
-replace "(?:prototype\.)?bindClient(?:=function)?\(\w+\)\{", '${0}return;'
|
||||
$xpuiContents_vendor = Helper -paramname "DisableSentry"
|
||||
$writer = New-Object System.IO.StreamWriter($entry_vendor_xpui.Open())
|
||||
$writer.BaseStream.SetLength(0)
|
||||
$writer.Write($xpuiContents_vendor)
|
||||
@@ -1441,10 +1463,7 @@ If (Test-Path $xpui_spa_patch) {
|
||||
$readerjs = New-Object System.IO.StreamReader($_.Open())
|
||||
$xpuiContents_js = $readerjs.ReadToEnd()
|
||||
$readerjs.Close()
|
||||
|
||||
$xpuiContents_js = $xpuiContents_js `
|
||||
-replace "[/][/][#] sourceMappingURL=.*[.]map", "" -replace "\r?\n(?!\(1|\d)", ""
|
||||
|
||||
$xpuiContents_js = Helper -paramname "MinJs"
|
||||
$writer = New-Object System.IO.StreamWriter($_.Open())
|
||||
$writer.BaseStream.SetLength(0)
|
||||
$writer.Write($xpuiContents_js)
|
||||
@@ -1462,40 +1481,30 @@ If (Test-Path $xpui_spa_patch) {
|
||||
$writer.Write($xpuiContents_xpui_css)
|
||||
if (!($premium)) {
|
||||
# Hide download icon on different pages
|
||||
$writer.Write([System.Environment]::NewLine + ' .BKsbV2Xl786X9a09XROH {display:none}')
|
||||
$writer.Write([System.Environment]::NewLine + $webjson.others.downloadicon.add)
|
||||
# Hide submenu item "download"
|
||||
$writer.Write([System.Environment]::NewLine + ' button.wC9sIed7pfp47wZbmU6m.pzkhLqffqF_4hucrVVQA {display:none}')
|
||||
$writer.Write([System.Environment]::NewLine + $webjson.others.submenudownload.add)
|
||||
# Hide very high quality streaming
|
||||
$writer.Write([System.Environment]::NewLine + ' #desktop\.settings\.streamingQuality>option:nth-child(5) {display:none}')
|
||||
$writer.Write([System.Environment]::NewLine + $webjson.others.veryhighstream.add)
|
||||
}
|
||||
|
||||
# New UI fix
|
||||
if (!($navalt_off)) {
|
||||
$writer.Write([System.Environment]::NewLine + ' .nav-alt .Root__top-container {background: #00000085;gap: 6px;padding: 8px;}')
|
||||
$writer.Write([System.Environment]::NewLine + ' .Root__fixed-top-bar {background-color: #00000000}')
|
||||
$writer.Write([System.Environment]::NewLine + $webjson.others.navaltfix.add[0])
|
||||
$writer.Write([System.Environment]::NewLine + $webjson.others.navaltfix.add[1])
|
||||
}
|
||||
# Hide Collaborators icon
|
||||
if (!($hide_col_icon_off) -and !($exp_spotify)) {
|
||||
$writer.Write([System.Environment]::NewLine + ' .X1lXSiVj0pzhQCUo_72A{display:none}')
|
||||
$writer.Write([System.Environment]::NewLine + $webjson.others.collaboraticon.add)
|
||||
}
|
||||
$writer.Close()
|
||||
|
||||
# of all *.Css
|
||||
# Remove RTL and minification of all *.css
|
||||
$zip.Entries | Where-Object FullName -like '*.css' | ForEach-Object {
|
||||
$readercss = New-Object System.IO.StreamReader($_.Open())
|
||||
$xpuiContents_css = $readercss.ReadToEnd()
|
||||
$readercss.Close()
|
||||
|
||||
$xpuiContents_css = $xpuiContents_css `
|
||||
<# Remove RTL #>`
|
||||
-replace "}\[dir=ltr\]\s?([.a-zA-Z\d[_]+?,\[dir=ltr\])", '}[dir=str] $1' -replace "}\[dir=ltr\]\s?", "} " -replace "html\[dir=ltr\]", "html" `
|
||||
-replace ",\s?\[dir=rtl\].+?(\{.+?\})", '$1' -replace "[\w\-\.]+\[dir=rtl\].+?\{.+?\}", "" -replace "\}\[lang=ar\].+?\{.+?\}", "}" `
|
||||
-replace "\}\[dir=rtl\].+?\{.+?\}", "}" -replace "\}html\[dir=rtl\].+?\{.+?\}", "}" -replace "\}html\[lang=ar\].+?\{.+?\}", "}" `
|
||||
-replace "\[lang=ar\].+?\{.+?\}", "" -replace "html\[dir=rtl\].+?\{.+?\}", "" -replace "html\[lang=ar\].+?\{.+?\}", "" `
|
||||
-replace "\[dir=rtl\].+?\{.+?\}", "" -replace "\[dir=str\]", "[dir=ltr]" `
|
||||
<# Css minification #>`
|
||||
-replace "[/]\*([^*]|[\r\n]|(\*([^/]|[\r\n])))*\*[/]", "" -replace "[/][/]#\s.*", "" -replace "\r?\n(?!\(1|\d)", ""
|
||||
|
||||
$xpuiContents_css = Helper -paramname "RemovertlCssmin"
|
||||
$writer = New-Object System.IO.StreamWriter($_.Open())
|
||||
$writer.BaseStream.SetLength(0)
|
||||
$writer.Write($xpuiContents_css)
|
||||
@@ -1519,15 +1528,7 @@ If (Test-Path $xpui_spa_patch) {
|
||||
$reader = New-Object System.IO.StreamReader($entry_blank_html.Open())
|
||||
$xpuiContents_html_blank = $reader.ReadToEnd()
|
||||
$reader.Close()
|
||||
|
||||
$html_min1 = " "
|
||||
$html_min2 = "(?m)(^\s*\r?\n)"
|
||||
$html_min3 = "\r?\n(?!\(1|\d)"
|
||||
if ($xpuiContents_html_blank -match $html_min1) { $xpuiContents_html_blank = $xpuiContents_html_blank -replace $html_min1, "" } else { Write-Host ($lang).NoVariable"" -ForegroundColor red -NoNewline; Write-Host "`$html_min1 "($lang).NoVariable4 }
|
||||
if ($xpuiContents_html_blank -match $html_min2) { $xpuiContents_html_blank = $xpuiContents_html_blank -replace $html_min2, "" } else { Write-Host ($lang).NoVariable"" -ForegroundColor red -NoNewline; Write-Host "`$html_min2 "($lang).NoVariable4 }
|
||||
if ($xpuiContents_html_blank -match $html_min3) { $xpuiContents_html_blank = $xpuiContents_html_blank -replace $html_min3, "" } else { Write-Host ($lang).NoVariable"" -ForegroundColor red -NoNewline; Write-Host "`$html_min3 "($lang).NoVariable4 }
|
||||
|
||||
$xpuiContents_html_blank = $xpuiContents_html_blank
|
||||
$xpuiContents_html_blank = Helper -paramname "HtmlBlank"
|
||||
$writer = New-Object System.IO.StreamWriter($entry_blank_html.Open())
|
||||
$writer.BaseStream.SetLength(0)
|
||||
$writer.Write($xpuiContents_html_blank)
|
||||
@@ -1548,16 +1549,12 @@ If (Test-Path $xpui_spa_patch) {
|
||||
$writer.Close()
|
||||
}
|
||||
}
|
||||
# Json
|
||||
# Minification of all *.json
|
||||
$zip.Entries | Where-Object FullName -like '*.json' | ForEach-Object {
|
||||
$readerjson = New-Object System.IO.StreamReader($_.Open())
|
||||
$xpuiContents_json = $readerjson.ReadToEnd()
|
||||
$readerjson.Close()
|
||||
|
||||
# json minification
|
||||
$xpuiContents_json = $xpuiContents_json `
|
||||
-replace " ", "" -replace " ", "" -replace '": ', '":' -replace "\r?\n(?!\(1|\d)", ""
|
||||
|
||||
$xpuiContents_json = Helper -paramname "MinJson"
|
||||
$writer = New-Object System.IO.StreamWriter($_.Open())
|
||||
$writer.BaseStream.SetLength(0)
|
||||
$writer.Write($xpuiContents_json)
|
||||
|
||||
@@ -42,12 +42,6 @@
|
||||
CacheSelect = "Möchten sie die automatische Cache-Bereinigung aktivieren? [Y/N]"
|
||||
CacheDays = "Cache die älter als XX Tage sind werden bereinigt "
|
||||
CacheDays2 = "Geben Sie die Anzahl der Tage von 1 bis 100 ein"
|
||||
NoVariable = "Keine Variabel gefunden"
|
||||
NoVariable2 = "in xpui.js"
|
||||
NoVariable3 = "in licenses.html"
|
||||
NoVariable4 = "in html"
|
||||
NoVariable5 = "in home-v2.js"
|
||||
NoVariable6 = "in xpui-desktop-modals.js"
|
||||
ModSpoti = "Patche Spotify..."
|
||||
Error = "Fehler"
|
||||
FileLocBroken = "Speicherort von Spotify ist falsch, deinstalliere Spotify und starte die Installation neu"
|
||||
|
||||
@@ -40,12 +40,6 @@
|
||||
CacheSelect = "Want to set up automatic cache cleanup? [Y/N]"
|
||||
CacheDays = "Cache older: XX days to be cleared "
|
||||
CacheDays2 = "Enter the number of days from 1 to 100"
|
||||
NoVariable = "Didn't find variable"
|
||||
NoVariable2 = "in xpui.js"
|
||||
NoVariable3 = "in licenses.html"
|
||||
NoVariable4 = "in html"
|
||||
NoVariable5 = "in home-v2.js"
|
||||
NoVariable6 = "in xpui-desktop-modals.js"
|
||||
ModSpoti = "Patching Spotify..."
|
||||
Error = "Error"
|
||||
FileLocBroken = "Location of Spotify files is broken, uninstall the client and run the script again"
|
||||
|
||||
@@ -42,12 +42,6 @@
|
||||
CacheSelect = "¿Quieres configurar la limpieza automática de la caché? [Y/N]"
|
||||
CacheDays = "Caché más antigua: XX días para ser limpiada"
|
||||
CacheDays2 = "Introduzca el número de días de 1 a 100"
|
||||
NoVariable = "No se ha encontrado la variable"
|
||||
NoVariable2 = "en xpui.js"
|
||||
NoVariable3 = "en licenses.html"
|
||||
NoVariable4 = "en html"
|
||||
NoVariable5 = "en home-v2.js"
|
||||
NoVariable6 = "en xpui-desktop-modals.js"
|
||||
ModSpoti = "Parcheando Spotify..."
|
||||
Error = "Error"
|
||||
FileLocBroken = "La ubicación de los archivos de Spotify no funciona, desinstala el cliente y vuelve a ejecutar el script"
|
||||
|
||||
@@ -42,12 +42,6 @@
|
||||
CacheSelect = "Voulez-vous configurer un effacement automatique du cache? [Y/N]"
|
||||
CacheDays = "Ancienneté du cache: XX jours à effacer"
|
||||
CacheDays2 = "Entrer le nombre de jours de 1 à 100"
|
||||
NoVariable = "Variable non trouvée"
|
||||
NoVariable2 = "dans xpui.js"
|
||||
NoVariable3 = "dans licenses.html"
|
||||
NoVariable4 = "dans html"
|
||||
NoVariable5 = "dans home-v2.js"
|
||||
NoVariable6 = "dans xpui-desktop-modals.js"
|
||||
ModSpoti = "Modification de Spotify..."
|
||||
Error = "Erreure"
|
||||
FileLocBroken = "L'emplacement des fichiers est cassé, désinstaller le client et lancer de nouveau le script"
|
||||
|
||||
@@ -42,12 +42,6 @@
|
||||
CacheSelect = "स्वचालित कैश सफाई सेट करना चाहते हैं? [Y/N]"
|
||||
CacheDays = "कैश पुराना: XX दिन साफ़ किया जाना है"
|
||||
CacheDays2 = "1 से 100 तक दिनों की संख्या दर्ज करें"
|
||||
NoVariable = "वरिअब्ले नहीं मिला"
|
||||
NoVariable2 = "xpui.js में"
|
||||
NoVariable3 = "licenses.html में"
|
||||
NoVariable4 = "html में"
|
||||
NoVariable5 = "home-v2.js में"
|
||||
NoVariable6 = "xpui-desktop-modals.js में"
|
||||
ModSpoti = "स्पॉटिफाई पैचिंग..."
|
||||
Error = "गडबड"
|
||||
FileLocBroken = "स्पॉटिफाई फ़ाइलों का स्थान टूटा हुआ है, क्लाइंट की स्थापना रद्द करें और स्क्रिप्ट को फिर से चलाएँ"
|
||||
|
||||
@@ -42,7 +42,6 @@
|
||||
CacheSelect = "Szeretné beállítani az automatikus gyorsítótár-tisztítást? [Y/N]"
|
||||
CacheDays = "XX napnál régebbi gyorsítótárak törlésre fognak kerülni "
|
||||
CacheDays2 = "Adj meg egy napot 1 és 100 között."
|
||||
NoVariable = "Nem talált változót"
|
||||
NoVariable2 = "xpui.js-ben"
|
||||
NoVariable3 = "licenses.html-ben"
|
||||
NoVariable4 = "html-ben"
|
||||
|
||||
@@ -42,12 +42,6 @@
|
||||
CacheSelect = "Vuoi attivare la cancellazione automatica della cache? [Y/N]"
|
||||
CacheDays = "Verrà cancellata la cache più vecchia di XX giorni"
|
||||
CacheDays2 = "Inserisci il numero dei giorni da 1 a 100"
|
||||
NoVariable = "Variabile non trovata"
|
||||
NoVariable2 = "in xpui.js"
|
||||
NoVariable3 = "in licenses.html"
|
||||
NoVariable4 = "in html"
|
||||
NoVariable5 = "in home-v2.js"
|
||||
NoVariable6 = "in xpui-desktop-modals.js"
|
||||
ModSpoti = "Patching Spotify..."
|
||||
Error = "Errore"
|
||||
FileLocBroken = "Il percorso dei file di Spotify non è stato trovato, disinstalla Spotify e fai ripartire lo script"
|
||||
|
||||
@@ -42,12 +42,6 @@
|
||||
CacheSelect = "გინდათ რომ ჩართოთ ავტომატიკური ქეშის გაწმენდა? [Y/N]"
|
||||
CacheDays = "ქეში უფრო ძველია: XX დღეზე რომ იყოს გაწმენდილი "
|
||||
CacheDays2 = "შეიყვანეთ the დღეების რაოდენობა 1-იდან 100-ამდე"
|
||||
NoVariable = "ცვლადი არ არის მოძებნილი"
|
||||
NoVariable2 = "xpui.js -ში"
|
||||
NoVariable3 = "licenses.html -ში"
|
||||
NoVariable4 = "html =ში"
|
||||
NoVariable5 = "home-v2.js -ში"
|
||||
NoVariable6 = "xpui-desktop-modals.js -ში"
|
||||
ModSpoti = "Spotify იკერვება..."
|
||||
Error = "შეცდომა"
|
||||
FileLocBroken = "Spotify ფაილების ლოკაცია არის გადეხილი, წაშალეთ კლიენტი და თავიდან გაუშვით სკრიპტი"
|
||||
|
||||
@@ -42,12 +42,6 @@
|
||||
CacheSelect = "Chcesz ustawić automatyczne czyszczenie plików cache? [Y/N]"
|
||||
CacheDays = "Czyszczenie co: XX dni"
|
||||
CacheDays2 = "Wybierz co ile dni ma nastąpić czyszczenie od 1 to 100 do"
|
||||
NoVariable = "Nieznaleziono wartości"
|
||||
NoVariable2 = "w xpui.js"
|
||||
NoVariable3 = "w licenses.html"
|
||||
NoVariable4 = "w html"
|
||||
NoVariable5 = "w home-v2.js"
|
||||
NoVariable6 = "w xpui-desktop-modals.js"
|
||||
ModSpoti = "Patchowanie Spotify..."
|
||||
Error = "Błąd"
|
||||
FileLocBroken = "Lokalizacje plików Spotify są zepsute, odinstaluj klienta i uruchom ponownie skrypt"
|
||||
|
||||
@@ -42,12 +42,6 @@
|
||||
CacheSelect = "Deseja definir a limpeza automática do cache? [Y/N]"
|
||||
CacheDays = "Cache antigo: XX dias para serem limpos"
|
||||
CacheDays2 = "Digite o número de dias entre 1 a 100"
|
||||
NoVariable = "Variável não encontrada"
|
||||
NoVariable2 = "em xpui.js"
|
||||
NoVariable3 = "em licenses.html"
|
||||
NoVariable4 = "em html"
|
||||
NoVariable5 = "em home-v2.js"
|
||||
NoVariable6 = "em xpui-desktop-modals.js"
|
||||
ModSpoti = "Aplicando patch no Spotify..."
|
||||
Error = "Erro"
|
||||
FileLocBroken = "A localização dos arquivos do Sotify está incorreta, desinstale o cliente e execute o script novamente"
|
||||
|
||||
@@ -42,12 +42,6 @@
|
||||
CacheSelect = "Doriți să configurați curățarea automată a cache-ului? [Y/N]"
|
||||
CacheDays = "Cache mai vechi: XX zile pentru a fi curățat "
|
||||
CacheDays2 = "Introduceți numărul de zile de la 1 la 100"
|
||||
NoVariable = "Nu s-a găsit variabila"
|
||||
NoVariable2 = "în xpui.js"
|
||||
NoVariable3 = "in licenses.html"
|
||||
NoVariable4 = "în html"
|
||||
NoVariable5 = "în home-v2.js"
|
||||
NoVariable6 = "în xpui-desktop-modals.js"
|
||||
ModSpoti = "Se patchuiește Spotify..."
|
||||
Error = "Eroare"
|
||||
FileLocBroken = "Locația fișierelor Spotify este stricată, dezinstalați clientul și rulați din nou scriptul"
|
||||
|
||||
@@ -40,13 +40,6 @@
|
||||
CacheSelect = "Хотите установить автоматическую очистку кеша ? [Y/N]"
|
||||
CacheDays = "Кэш старше: XX дней будет очищен"
|
||||
CacheDays2 = "Пожалуйста, введите количество дней от 1 до 100"
|
||||
NoVariable = "Не нашел переменную"
|
||||
NoVariable2 = "в xpui.js"
|
||||
NoVariable3 = "в licenses.html"
|
||||
NoVariable4 = "в html"
|
||||
NoVariable5 = "в home-v2.js"
|
||||
NoVariable6 = "в xpui-desktop-modals.js"
|
||||
NoVariable7 = "в ru.json"
|
||||
ModSpoti = "Модифицирую Spotify..."
|
||||
Error = "Ошибка"
|
||||
FileLocBroken = "Расположение файлов Spotify нарушено, удалите клиент и снова запустите скрипт"
|
||||
|
||||
@@ -42,12 +42,6 @@
|
||||
CacheSelect = "Otomatik önbellek temizlemeyi ayarlamak ister misiniz? [Y/N]"
|
||||
CacheDays = "Daha eski olan önbellek: XX gün içinde temizlenecek "
|
||||
CacheDays2 = "Gün sayısını 1 ile 100 arasında girin"
|
||||
NoVariable = "Değişken bulunamadı"
|
||||
NoVariable2 = "xpui.js içinde"
|
||||
NoVariable3 = "licenses.html içinde"
|
||||
NoVariable4 = "html içinde"
|
||||
NoVariable5 = "home-v2.js içinde"
|
||||
NoVariable6 = "xpui-desktop-modals.js içinde"
|
||||
ModSpoti = "Spotify'a yama yapılıyor..."
|
||||
Error = "Hata"
|
||||
FileLocBroken = "Spotify dosyalarının konumu bozuk, istemciyi kaldırın ve kodu tekrar çalıştırın"
|
||||
|
||||
@@ -42,12 +42,6 @@
|
||||
CacheSelect = "Bạn có muốn đặt thời gian tự động dọn dẹp cache? [Y/N]"
|
||||
CacheDays = "Cache cũ: XX ngày để bị dọn dẹp "
|
||||
CacheDays2 = "Nhập số ngày từ 1 đến 100"
|
||||
NoVariable = "Không tìm thấy giá trị"
|
||||
NoVariable2 = "trong xpui.js"
|
||||
NoVariable3 = "trong licenses.html"
|
||||
NoVariable4 = "trong html"
|
||||
NoVariable5 = "trong home-v2.js"
|
||||
NoVariable6 = "trong xpui-desktop-modals.js"
|
||||
ModSpoti = "Đang vá Spotify..."
|
||||
Error = "Lỗi"
|
||||
FileLocBroken = "Vị trí của các tệp đã Spotify bị hỏng, gỡ Spotify và chạy lại bản vá"
|
||||
|
||||
@@ -42,12 +42,6 @@
|
||||
CacheSelect = "您想要设置自动清除缓存吗? [Y/N]"
|
||||
CacheDays = "超过 XX 天的缓存将被清除 "
|
||||
CacheDays2 = "输入从 1 到 100 之内的天数"
|
||||
NoVariable = "没有找到变量"
|
||||
NoVariable2 = "在 xpui.js 中"
|
||||
NoVariable3 = "在 licenses.html 中"
|
||||
NoVariable4 = "在 html 中"
|
||||
NoVariable5 = "在 home-v2.js 中"
|
||||
NoVariable6 = "在 xpui-desktop-modals.js 中"
|
||||
ModSpoti = "修补 Spotify..."
|
||||
Error = "错误"
|
||||
FileLocBroken = "Spotify 文件已损坏,请卸载客户端并重新运行脚本"
|
||||
|
||||
Reference in New Issue
Block a user