Fixed error for phantom tracks in get_my_favorite_tracks

This commit is contained in:
RemixDev 2022-06-10 17:12:44 +02:00
parent c6c06e05d5
commit 8d40c79832
No known key found for this signature in database
GPG key ID: B33962B465BDB51C

View file

@ -462,9 +462,13 @@ class GW{
if (!ids.length) return []
let data = await this.get_tracks(ids)
let result = []
data.forEach((track, i) => {
let i = 0
data.forEach((track) => {
if (!track) return
while (track.SNG_ID != ids[i]) i++
track = {...track, ...ids_raw.data[i]}
result.push(map_user_track(track))
i++
})
return result
}