Fixed Spotify Class Issue

This commit is contained in:
Killer069 2021-12-14 17:17:27 +05:30 committed by GitHub
parent 720669d3e2
commit 9c278ca579
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -236,7 +236,7 @@ export class SpotifyPlaylist {
this.tracksCount = Number(data.tracks.total);
const videos: SpotifyTrack[] = [];
data.tracks.items.forEach((v: any) => {
if(v) videos.push(new SpotifyTrack(v.track));
if(v.track) videos.push(new SpotifyTrack(v.track));
});
this.fetched_tracks = new Map();
this.fetched_tracks.set('1', videos);