mirror of
https://github.com/SpotX-Official/SpotX.git
synced 2026-04-24 03:50:18 +10:00
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:
@@ -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",
|
||||||
|
|||||||
3
run.ps1
3
run.ps1
@@ -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" }
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user