disable native lyrics

- added -lyrics_block parameter to completely disable native lyrics
This commit is contained in:
amd64fox
2024-05-07 22:07:46 +03:00
parent e0a9409ef3
commit 8d87b96655
2 changed files with 15 additions and 1 deletions

View File

@@ -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": "{}"
}
}
}

View File

@@ -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 {