Skip to content

Commit

Permalink
enable lyrics access for legacy clients
Browse files Browse the repository at this point in the history
- allow legacy clients to get lyrics if they are available on the server side
  • Loading branch information
amd64fox committed Aug 7, 2024
1 parent b8f6a35 commit 881b92f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
8 changes: 8 additions & 0 deletions patches/patches.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
3 changes: 3 additions & 0 deletions run.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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" }

Expand Down

0 comments on commit 881b92f

Please sign in to comment.