changed setTrackList loop
This commit is contained in:
parent
9d36933770
commit
5e666a4a3f
|
@ -183,9 +183,9 @@ async function renewAccessToken() {
|
||||||
unsafeWindow.dzPlayer.setTrackList = (function (old) {
|
unsafeWindow.dzPlayer.setTrackList = (function (old) {
|
||||||
return function (...args) {
|
return function (...args) {
|
||||||
// needed for player to accept flac url responses
|
// 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"
|
args[0].data[i].FILESIZE_FLAC = "1"
|
||||||
})
|
}
|
||||||
|
|
||||||
log(args)
|
log(args)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue