From c3cbe3a6bda7562169e28e07d702d9edba053957 Mon Sep 17 00:00:00 2001 From: amd64fox <62529699+amd64fox@users.noreply.github.com> Date: Tue, 27 Feb 2024 01:22:10 +0300 Subject: [PATCH] version bump to 1.2.32.997 - fixed offrujs patch - exp enabled: - filter tags on the liked songs - resizable tracklist columns - new connect bar - track page activated in search - queue on right panel animations --- patches/patches.json | 97 ++++++++++++++++++++++++++++++++++++++++++-- run.ps1 | 28 ++++++------- 2 files changed, 108 insertions(+), 17 deletions(-) diff --git a/patches/patches.json b/patches/patches.json index 57af66d..8a4d57f 100644 --- a/patches/patches.json +++ b/patches/patches.json @@ -382,6 +382,42 @@ "fr": "1.2.31", "to": "" } + }, + "BillboardEsperantoMigration": { + "name": "enableBillboardEsperantoMigration", + "description": "Enable esperanto migration for Billboard Ad Format", + "native_description": "Enable esperanto migration for Billboard Ad Format", + "version": { + "fr": "1.2.32", + "to": "" + } + }, + "LeaderboardEsperantoMigration": { + "name": "enableEsperantoMigrationLeaderboard", + "description": "Enable esperanto Migration for Leaderboard Ad Format", + "native_description": "Enable esperanto Migration for Leaderboard Ad Format", + "version": { + "fr": "1.2.32", + "to": "" + } + }, + "SponsoredPlaylistEsperantoMigration": { + "name": "enableSponsoredPlaylistEsperantoMigration", + "description": "Enable esperanto Migration for Sponsored Playlist Ad Formats", + "native_description": "Enable esperanto Migration for Sponsored Playlist Ad Formats", + "version": { + "fr": "1.2.32", + "to": "" + } + }, + "PipImpressionLogging": { + "name": "enablePipImpressionLogging", + "description": "Enables impression logging for PiP", + "native_description": "Enables impression logging for PiP", + "version": { + "fr": "1.2.32", + "to": "" + } } }, "EnableExp": { @@ -870,6 +906,51 @@ "fr": "1.2.31", "to": "" } + }, + "GPCSignal": { + "name": "enableGPCSignal", + "description": "Enables sending of the GPC signal to the backend", + "native_description": "Enables sending of the GPC signal to the backend", + "version": { + "fr": "1.2.32", + "to": "" + } + }, + "NewConnectBar": { + "name": "enableNewConnectBar", + "description": "New Connect Bar without arrow and clickable elements", + "native_description": "New Connect Bar without arrow and clickable elements", + "version": { + "fr": "1.2.14", + "to": "" + } + }, + "ResizableTracklistColumns": { + "name": "enableResizableTracklistColumns", + "description": "Enable resizable tracklist columns", + "native_description": "Enable resizable tracklist columns", + "version": { + "fr": "1.2.28", + "to": "" + } + }, + "QueueOnRightPanelAnimations": { + "name": "enableQueueOnRightPanelAnimations", + "description": "Enable animations for Queue on the right panel", + "native_description": "Enable animations for Queue on the right panel", + "version": { + "fr": "1.2.32", + "to": "" + } + }, + "LikedSongsFilterTags": { + "name": "enableLikedSongsFilterTags", + "description": "Show filter tags on the Liked Songs entity view", + "native_description": "Show filter tags on the Liked Songs entity view", + "version": { + "fr": "1.2.32", + "to": "" + } } }, @@ -934,13 +1015,23 @@ "to": "" } }, + "InternalTrackSearch": { + "name": "enableInternalTrackSearch", + "description": "Enable internal track search on desktop UI", + "native_description": "Enable internal track search on desktop UI", + "value": "VARIANT", + "version": { + "fr": "1.2.19", + "to": "" + } + }, "TrackRecommender": { "name": "enableTrackInternalLinkRecommender", "description": "Enable internal link recommender component for track entity pages", "native_description": "Enable internal link recommender component for track entity pages", "value": "canonical-top-position", "version": { - "fr": "1.2.18", + "fr": "1.2.19", "to": "" } }, @@ -1533,8 +1624,8 @@ "fr": "1.1.92", "to": "" }, - "match": "(\\[(.)\\.go\\.en,)(.+?\\])", - "replace": "$1$2.go.ru]" + "match": "\\[(.\\...\\.)en,.\\...\\.a(.+?\\])", + "replace": "[$1en,$1ru]" }, "goofyhistory": { "version": { diff --git a/run.ps1 b/run.ps1 index 558609f..13c475a 100644 --- a/run.ps1 +++ b/run.ps1 @@ -310,24 +310,11 @@ function CallLang($clg) { } } - # Set language code for script. $langCode = Format-LanguageCode -LanguageCode $Language $lang = CallLang -clg $langCode -# Set variable 'ru'. -if ($langCode -eq 'ru') { - $ru = $true - - if ($mirror) { - $urlru = "https://spotx-official.github.io/SpotX/patches/Augmented%20translation/ru.json" - } - else { $urlru = "https://raw.githubusercontent.com/SpotX-Official/SpotX/main/patches/Augmented%20translation/ru.json" } - - $webjsonru = (Invoke-WebRequest -useb -Uri $urlru).Content | ConvertFrom-Json -} - Write-Host ($lang).Welcome Write-Host @@ -372,7 +359,7 @@ if (!($version -and $version -match $match_v)) { } else { # Recommended version for Win 10-12 - $onlineFull = "1.2.31.1205.g4d59ad7c-1561" + $onlineFull = "1.2.32.997.g4c6498b6-2894" } } else { @@ -836,6 +823,19 @@ if ($no_shortcut) { $ch = $null + +# updated Russian translation +if ($langCode -eq 'ru' -and [version]$offline -ge [version]"1.1.92.644") { + $ru = $true + + if ($mirror) { + $urlru = "https://spotx-official.github.io/SpotX/patches/Augmented%20translation/ru.json" + } + else { $urlru = "https://raw.githubusercontent.com/SpotX-Official/SpotX/main/patches/Augmented%20translation/ru.json" } + + $webjsonru = (Invoke-WebRequest -useb -Uri $urlru).Content | ConvertFrom-Json +} + if ($podcasts_off) { Write-Host ($lang).PodcatsOff`n $ch = 'y'