changed setTrackList loop

This commit is contained in:
uh wot 2021-07-11 18:14:44 +02:00
parent 9d36933770
commit 5e666a4a3f
Signed by: uhwot
GPG Key ID: CB2454984587B781
1 changed files with 2 additions and 2 deletions

View File

@ -183,9 +183,9 @@ async function renewAccessToken() {
unsafeWindow.dzPlayer.setTrackList = (function (old) {
return function (...args) {
// needed for player to accept flac url responses
args[0].data.forEach(function (_, i, _) {
for (let i = args[0].data; i < args[0].data.length; i++) {
args[0].data[i].FILESIZE_FLAC = "1"
})
}
log(args)