mirror of
https://github.com/SpotX-Official/SpotX.git
synced 2026-04-11 17:37:21 +10:00
disable native lyrics
- added -lyrics_block parameter to completely disable native lyrics
This commit is contained in:
@@ -1755,6 +1755,14 @@
|
||||
},
|
||||
"match": "(getTracksFilterTags.+?(.)=this._builder.build\\(\\)),",
|
||||
"replace": "$1;$2.locale = 'en';const "
|
||||
},
|
||||
"lyrics-block": {
|
||||
"version": {
|
||||
"fr": "1.1.70",
|
||||
"to": ""
|
||||
},
|
||||
"match": "(?:\\(?await )?.\\.build.{20,60}encodeURIComponent.{20,140}\"\\/track\\/{trackId}.+?send\\(\\)(?:\\)\\.body)?",
|
||||
"replace": "{}"
|
||||
}
|
||||
}
|
||||
}
|
||||
8
run.ps1
8
run.ps1
@@ -87,7 +87,10 @@ param
|
||||
|
||||
[Parameter(HelpMessage = 'Returns old lyrics')]
|
||||
[switch]$old_lyrics,
|
||||
|
||||
|
||||
[Parameter(HelpMessage = 'Disable native lyrics')]
|
||||
[switch]$lyrics_block,
|
||||
|
||||
[Parameter(HelpMessage = 'Do not create desktop shortcut.')]
|
||||
[switch]$no_shortcut,
|
||||
|
||||
@@ -1320,6 +1323,9 @@ function Helper($paramname) {
|
||||
|
||||
$VarJs = $webjson.VariousJs
|
||||
|
||||
if (!($lyrics_block)) { Remove-Json -j $VarJs -p "lyrics-block" }
|
||||
|
||||
|
||||
if (!($devtools)) { Remove-Json -j $VarJs -p "dev-tools" }
|
||||
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user