mirror of
https://github.com/SpotX-Official/SpotX.git
synced 2026-06-17 21:00:04 +10:00
version bump to 1.2.88.483
- localization for tags in liked songs has been fixed - added support for custom themes for lyrics in versions 1.2.80+ - lyrics are disabled for the right panel
This commit is contained in:
@@ -42,7 +42,9 @@ body .KDhLFoEqoClhH12bsfrS {
|
|||||||
/* lyrics not available message */
|
/* lyrics not available message */
|
||||||
.C3pBU1DsOUJJOAv89ZFT,
|
.C3pBU1DsOUJJOAv89ZFT,
|
||||||
.T67LFP0PElpfkkLuegQt,
|
.T67LFP0PElpfkkLuegQt,
|
||||||
.e7eFLioNSG5PAi1qVFT4 {
|
.e7eFLioNSG5PAi1qVFT4,
|
||||||
|
.l2060qoyWU4J9ihSxHLE,
|
||||||
|
.hfTlyhd7WCIk9xmP {
|
||||||
color: var(--musixmatch) !important;
|
color: var(--musixmatch) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -50,7 +52,8 @@ body .KDhLFoEqoClhH12bsfrS {
|
|||||||
.FUYNhisXTCmbzt9IDxnT,
|
.FUYNhisXTCmbzt9IDxnT,
|
||||||
.tr8V5eHsUaIkOYVw7eSG,
|
.tr8V5eHsUaIkOYVw7eSG,
|
||||||
.hW9km7ku6_iggdWDR_Lg,
|
.hW9km7ku6_iggdWDR_Lg,
|
||||||
.lofIAg8Ixko3mfBrbfej {
|
.lofIAg8Ixko3mfBrbfej,
|
||||||
|
.bbJIIopLxggQmv5x {
|
||||||
--lyrics-color-active: var(--current) !important;
|
--lyrics-color-active: var(--current) !important;
|
||||||
--lyrics-color-inactive: var(--next) !important;
|
--lyrics-color-inactive: var(--next) !important;
|
||||||
--lyrics-color-passed: var(--past) !important;
|
--lyrics-color-passed: var(--past) !important;
|
||||||
@@ -69,7 +72,11 @@ body .KDhLFoEqoClhH12bsfrS {
|
|||||||
._LKG3z7SnerR0eigPCoK:hover,
|
._LKG3z7SnerR0eigPCoK:hover,
|
||||||
.NHVfxGs2HwmI_fly2JC4:hover,
|
.NHVfxGs2HwmI_fly2JC4:hover,
|
||||||
.gaHIufRWhoWbiT8S6zuM:hover,
|
.gaHIufRWhoWbiT8S6zuM:hover,
|
||||||
.FQYXZaa0aDIrse54YlYO:hover {
|
.FQYXZaa0aDIrse54YlYO:hover,
|
||||||
|
.PSyA4iign083ZV6vOqPj:hover,
|
||||||
|
.Plu0zvuRv7kOQwsQ02cC:hover,
|
||||||
|
.Mnf9PkrVHsX90BNf:hover,
|
||||||
|
.XiH9KR6bhDwEFykV:hover {
|
||||||
color: var(--hover) !important;
|
color: var(--hover) !important;
|
||||||
/* remove underline */
|
/* remove underline */
|
||||||
text-decoration: none !important;
|
text-decoration: none !important;
|
||||||
|
|||||||
@@ -780,6 +780,22 @@
|
|||||||
"fr": "1.2.84",
|
"fr": "1.2.84",
|
||||||
"to": ""
|
"to": ""
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"ad_feedback_in_stream": {
|
||||||
|
"name": "enable_ad_feedback_in_stream",
|
||||||
|
"description": "Enable new ad feedback UX for in-stream ads",
|
||||||
|
"version": {
|
||||||
|
"fr": "1.2.88",
|
||||||
|
"to": ""
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"HarmonyMediaPlaybackReporting": {
|
||||||
|
"name": "enableHarmonyMediaPlaybackReporting",
|
||||||
|
"description": "Enable the reporting of media playback events in Harmony",
|
||||||
|
"version": {
|
||||||
|
"fr": "1.2.88",
|
||||||
|
"to": ""
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"EnableExp": {
|
"EnableExp": {
|
||||||
@@ -2645,6 +2661,7 @@
|
|||||||
"replace": "min:250,max:400"
|
"replace": "min:250,max:400"
|
||||||
},
|
},
|
||||||
"filtertags_locale_fix": {
|
"filtertags_locale_fix": {
|
||||||
|
"disable": true,
|
||||||
"version": {
|
"version": {
|
||||||
"fr": "1.2.29",
|
"fr": "1.2.29",
|
||||||
"to": ""
|
"to": ""
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
param
|
param
|
||||||
(
|
(
|
||||||
[Parameter(HelpMessage = 'Latest recommended Spotify version for Windows 10+.')]
|
[Parameter(HelpMessage = 'Latest recommended Spotify version for Windows 10+.')]
|
||||||
[string]$latest_full = "1.2.86.502.g8cd7fb22",
|
[string]$latest_full = "1.2.88.483.g8aa8628e",
|
||||||
|
|
||||||
[Parameter(HelpMessage = 'Latest supported Spotify version for Windows 7-8.1')]
|
[Parameter(HelpMessage = 'Latest supported Spotify version for Windows 7-8.1')]
|
||||||
[string]$last_win7_full = "1.2.5.1006.g22820f93",
|
[string]$last_win7_full = "1.2.5.1006.g22820f93",
|
||||||
@@ -106,9 +106,6 @@ param
|
|||||||
|
|
||||||
[Parameter(HelpMessage = 'Enable right sidebar coloring to match cover color)')]
|
[Parameter(HelpMessage = 'Enable right sidebar coloring to match cover color)')]
|
||||||
[switch]$rightsidebarcolor,
|
[switch]$rightsidebarcolor,
|
||||||
|
|
||||||
[Parameter(HelpMessage = 'Returns old lyrics')]
|
|
||||||
[switch]$old_lyrics,
|
|
||||||
|
|
||||||
[Parameter(HelpMessage = 'Disable native lyrics')]
|
[Parameter(HelpMessage = 'Disable native lyrics')]
|
||||||
[switch]$lyrics_block,
|
[switch]$lyrics_block,
|
||||||
@@ -137,7 +134,11 @@ param
|
|||||||
|
|
||||||
[Parameter(HelpMessage = 'Select the desired language to use for installation. Default is the detected system language.')]
|
[Parameter(HelpMessage = 'Select the desired language to use for installation. Default is the detected system language.')]
|
||||||
[Alias('l')]
|
[Alias('l')]
|
||||||
[string]$language
|
[string]$language,
|
||||||
|
|
||||||
|
# Deprecated parameters
|
||||||
|
[Parameter(HelpMessage = 'Deprecated, old lyrics are enabled by default')]
|
||||||
|
[switch]$old_lyrics
|
||||||
)
|
)
|
||||||
|
|
||||||
# Ignore errors from `Stop-Process`
|
# Ignore errors from `Stop-Process`
|
||||||
@@ -405,6 +406,15 @@ $lang = CallLang -clg $langCode
|
|||||||
Write-Host ($lang).Welcome
|
Write-Host ($lang).Welcome
|
||||||
Write-Host
|
Write-Host
|
||||||
|
|
||||||
|
if ($old_lyrics) {
|
||||||
|
Write-Warning @"
|
||||||
|
-old_lyrics is deprecated
|
||||||
|
Old lyrics are enabled by default
|
||||||
|
Remove this parameter from your command line
|
||||||
|
"@
|
||||||
|
Write-Host
|
||||||
|
}
|
||||||
|
|
||||||
# Check version Windows
|
# Check version Windows
|
||||||
$os = Get-CimInstance -ClassName "Win32_OperatingSystem" -ErrorAction SilentlyContinue
|
$os = Get-CimInstance -ClassName "Win32_OperatingSystem" -ErrorAction SilentlyContinue
|
||||||
if ($os) {
|
if ($os) {
|
||||||
@@ -587,7 +597,8 @@ function Get-PatchesJson {
|
|||||||
throw "File not found: $resolvedPath"
|
throw "File not found: $resolvedPath"
|
||||||
}
|
}
|
||||||
|
|
||||||
Write-Host ("Using local patches.json: {0}" -f $resolvedPath)
|
Write-Host ("Using a local file for patches: {0}" -f $resolvedPath)
|
||||||
|
Write-Host
|
||||||
|
|
||||||
$jsonContent = [System.IO.File]::ReadAllText($resolvedPath, [System.Text.Encoding]::UTF8)
|
$jsonContent = [System.IO.File]::ReadAllText($resolvedPath, [System.Text.Encoding]::UTF8)
|
||||||
return $jsonContent | ConvertFrom-Json -ErrorAction Stop
|
return $jsonContent | ConvertFrom-Json -ErrorAction Stop
|
||||||
@@ -1848,7 +1859,12 @@ function Helper($paramname) {
|
|||||||
Move-Json -n 'DevicePickerSidePanel' -t $Enable -f $Disable
|
Move-Json -n 'DevicePickerSidePanel' -t $Enable -f $Disable
|
||||||
}
|
}
|
||||||
|
|
||||||
if ([version]$offline -ge [version]'1.2.41.434' -and $lyrics_block) { Move-Json -n 'Lyrics' -t $Enable -f $Disable }
|
if ([version]$offline -ge [version]'1.2.41.434' -and $lyrics_block) { Move-Json -n 'Lyrics' -t $Enable -f $Disable }
|
||||||
|
|
||||||
|
Remove-Json -j $Enable -p 'RightSidebarLyrics'
|
||||||
|
if ($Custom.PSObject.Properties.Name -contains 'LyricsVariationsInNPV') {
|
||||||
|
$Custom.LyricsVariationsInNPV.value = "CONTROL"
|
||||||
|
}
|
||||||
|
|
||||||
if ([version]$offline -eq [version]'1.2.30.1135') { Move-Json -n 'QueueOnRightPanel' -t $Enable -f $Disable }
|
if ([version]$offline -eq [version]'1.2.30.1135') { Move-Json -n 'QueueOnRightPanel' -t $Enable -f $Disable }
|
||||||
|
|
||||||
@@ -1896,11 +1912,6 @@ function Helper($paramname) {
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (!($rightsidebarcolor)) { Remove-Json -j $Enable -p 'RightSidebarColors' }
|
if (!($rightsidebarcolor)) { Remove-Json -j $Enable -p 'RightSidebarColors' }
|
||||||
|
|
||||||
if ($old_lyrics) {
|
|
||||||
Remove-Json -j $Enable -p 'RightSidebarLyrics'
|
|
||||||
$Custom.LyricsVariationsInNPV.value = "CONTROL"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!$premium) { Remove-Json -j $Enable -p 'RemoteDownloads', 'Magpie', 'MagpiePrompting', 'MagpieScheduling', 'MagpieCuration' }
|
if (!$premium) { Remove-Json -j $Enable -p 'RemoteDownloads', 'Magpie', 'MagpiePrompting', 'MagpieScheduling', 'MagpieCuration' }
|
||||||
@@ -1910,7 +1921,7 @@ function Helper($paramname) {
|
|||||||
$objects = @(
|
$objects = @(
|
||||||
@{
|
@{
|
||||||
Object = $webjson.others.CustomExp.psobject.properties
|
Object = $webjson.others.CustomExp.psobject.properties
|
||||||
PropertiesToKeep = @('LyricsUpsell')
|
PropertiesToKeep = @('LyricsUpsell', 'LyricsVariationsInNPV')
|
||||||
},
|
},
|
||||||
@{
|
@{
|
||||||
Object = $webjson.others.EnableExp.psobject.properties
|
Object = $webjson.others.EnableExp.psobject.properties
|
||||||
@@ -2099,6 +2110,10 @@ function Helper($paramname) {
|
|||||||
|
|
||||||
$contents | foreach {
|
$contents | foreach {
|
||||||
|
|
||||||
|
if ($json.$PSItem.disable -eq $true) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
if ( $json.$PSItem.version.to ) { $to = [version]$json.$PSItem.version.to -ge [version]$offline_patch } else { $to = $true }
|
if ( $json.$PSItem.version.to ) { $to = [version]$json.$PSItem.version.to -ge [version]$offline_patch } else { $to = $true }
|
||||||
if ( $json.$PSItem.version.fr ) { $fr = [version]$json.$PSItem.version.fr -le [version]$offline_patch } else { $fr = $false }
|
if ( $json.$PSItem.version.fr ) { $fr = [version]$json.$PSItem.version.fr -le [version]$offline_patch } else { $fr = $false }
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user