enable lyrics access for legacy clients

- allow legacy clients to get lyrics if they are available on the server side
This commit is contained in:
amd64fox
2024-08-07 20:16:55 +03:00
parent b8f6a35b97
commit 881b92f5f2
2 changed files with 11 additions and 0 deletions

View File

@@ -1845,6 +1845,14 @@
"match": "(withPath\\(\"\/liked-songs\"\\))", "match": "(withPath\\(\"\/liked-songs\"\\))",
"replace": "$1.withLocale(\"en\")" "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": { "lyrics-block": {
"version": { "version": {
"fr": "1.1.70", "fr": "1.1.70",

View File

@@ -1308,6 +1308,9 @@ function Helper($paramname) {
if (!($lyrics_block)) { Remove-Json -j $VarJs -p "lyrics-block" } 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" } if (!($devtools)) { Remove-Json -j $VarJs -p "dev-tools" }