- fixed filtertags_locale patch
- enhanced playlists and liked songs features are disabled
This commit is contained in:
amd64fox
2024-06-24 16:55:42 +03:00
parent cdd4c9f839
commit 4e4393cabf
2 changed files with 21 additions and 44 deletions

View File

@@ -446,6 +446,24 @@
"fr": "1.2.37",
"to": ""
}
},
"EnhanceLikedSongs": {
"name": "enableEnhanceLikedSongs",
"description": "disabled on the server side",
"native_description": "Enable Enhance Liked Songs UI and functionality",
"version": {
"fr": "1.1.86",
"to": "1.2.25"
}
},
"EnhancePlaylist": {
"name": "enableEnhancePlaylistProd",
"description": "disabled on the server side",
"native_description": "Enable Enhance Playlist UI and functionality for end-users",
"version": {
"fr": "1.1.84",
"to": "1.2.25"
}
}
},
"EnableExp": {
@@ -467,24 +485,6 @@
"to": "1.2.24"
}
},
"EnhanceLikedSongs": {
"name": "enableEnhanceLikedSongs",
"description": "Enable Enhance Liked Songs UI and functionality",
"native_description": "Enable Enhance Liked Songs UI and functionality",
"version": {
"fr": "1.1.86",
"to": "1.2.25"
}
},
"EnhancePlaylist": {
"name": "enableEnhancePlaylistProd",
"description": "Enable Enhance Playlist UI and functionality for end-users",
"native_description": "Enable Enhance Playlist UI and functionality for end-users",
"version": {
"fr": "1.1.84",
"to": "1.2.25"
}
},
"IgnoreInRecommendations": {
"name": "enableIgnoreInRecommendations",
"description": "Exclude playlists from recommendations",
@@ -1806,10 +1806,10 @@
"filtertags_locale_fix": {
"version": {
"fr": "1.2.29",
"to": "1.2.37"
"to": ""
},
"match": "(getTracksFilterTags.+?(.)=this._builder.build\\(\\)),",
"replace": "$1;$2.locale = 'en';const "
"match": "(withPath\\(\"\/liked-songs\"\\))",
"replace": "$1.withLocale(\"en\")"
},
"lyrics-block": {
"version": {

23
run.ps1
View File

@@ -64,15 +64,6 @@ param
[Parameter(HelpMessage = 'Disable new right sidebar.')]
[switch]$rightsidebar_off,
[Parameter(HelpMessage = 'Do not enable enhance playlist.')]
[switch]$enhance_playlist_off,
[Parameter(HelpMessage = 'Do not enable enhance liked songs.')]
[switch]$enhance_like_off,
[Parameter(HelpMessage = 'Enable enhance playlist & liked songs.')]
[switch]$enhanceSongs,
[Parameter(HelpMessage = 'it`s killing the heart icon, you`re able to save and choose the destination for any song, playlist, or podcast')]
[switch]$plus,
@@ -1155,24 +1146,10 @@ function Helper($paramname) {
$Disable = $webjson.others.DisableExp
$Custom = $webjson.others.CustomExp
if ($enhance_like_off) { Remove-Json -j $Enable -p'EnhanceLikedSongs' }
if ($enhance_playlist_off) { Remove-Json -j $Enable -p 'EnhancePlaylist' }
if ([version]$offline -eq [version]'1.2.37.701' -or [version]$offline -eq [version]'1.2.38.720' ) {
Move-Json -n 'DevicePickerSidePanel' -t $Enable -f $Disable
}
if ($enhanceSongs -and [version]$offline -le [version]'1.2.25.1011') {
Move-Json -n 'SmartShuffle' -t $Enable -f $Disable
}
else {
if ([version]$offline -ge [version]'1.2.22.980') {
Move-Json -n "EnhanceLikedSongs", "EnhancePlaylist" -t $Enable -f $Disable
}
}
if ([version]$offline -eq [version]'1.2.30.1135') { Move-Json -n 'QueueOnRightPanel' -t $Enable -f $Disable }
if (!($plus)) { Move-Json -n "Plus", "AlignedCurationSavedIn" -t $Enable -f $Disable }