Here's what I need to do, I need to enqueue an entire youtube playlist in order, so i need to do something like this
const track_names = await sp.get_playlist_track_names(link);
for (let i = 0; i < track_names.length; i++){
queue[last_index] = await yt.get_video(track_names[i]);
}
So as you could imagine this is waaaaay to slow, because if i try to enqueue a 100 songs playlist it doesn't start playing until i get all songs info.
Is there a faster way to do it? Or to play the first song and let the program execute the function play_song()
while my function get_tracks_info()
getting the remaining songs.