From 881b92f5f2cf53c167d4b1123c374799ac39a8dc Mon Sep 17 00:00:00 2001 From: amd64fox <62529699+amd64fox@users.noreply.github.com> Date: Wed, 7 Aug 2024 20:16:55 +0300 Subject: [PATCH] enable lyrics access for legacy clients - allow legacy clients to get lyrics if they are available on the server side --- patches/patches.json | 8 ++++++++ run.ps1 | 3 +++ 2 files changed, 11 insertions(+) diff --git a/patches/patches.json b/patches/patches.json index 96a1243e..9e48297e 100644 --- a/patches/patches.json +++ b/patches/patches.json @@ -1845,6 +1845,14 @@ "match": "(withPath\\(\"\/liked-songs\"\\))", "replace": "$1.withLocale(\"en\")" }, + "lyrics-on": { + "version": { + "fr": "1.1.70", + "to": "1.2.35" + }, + "match": "((?:\\(?await )?.\\.build.{20,60}encodeURIComponent.{20,140}\"\/track\/{trackId}.+?)(.send)", + "replace": "$1.withHeaders([{key:'spotify-app-version',value:'1.2.43'}])$2" + }, "lyrics-block": { "version": { "fr": "1.1.70", diff --git a/run.ps1 b/run.ps1 index 36c2a9a1..97592d34 100644 --- a/run.ps1 +++ b/run.ps1 @@ -1308,6 +1308,9 @@ function Helper($paramname) { if (!($lyrics_block)) { Remove-Json -j $VarJs -p "lyrics-block" } + else { + Remove-Json -j $VarJs -p "lyrics-on" + } if (!($devtools)) { Remove-Json -j $VarJs -p "dev-tools" }