Undefined tracks in playlist
ThEditor opened this issue · comments
const some = require('soundcloud.ts');
const soundcloud = new some.default();
const query = "ignite"
soundcloud.playlists.getV2('https://soundcloud.com/chillhopdotcom/sets/lofihiphop').then((result) => {
result.tracks.forEach(v => {
console.log(v.title + " " + v.permalink_url);
});
});
Example code above results in
Nymano - Mirage [full album] https://soundcloud.com/chillhopdotcom/nymano-mirage-full-album
Philanthrope - Cabin In The Woods [lofi Instrumental beats] https://soundcloud.com/chillhopdotcom/philanthropecabininthewoods
Sleepy Fish - Colors Fade https://soundcloud.com/chillhopdotcom/sleepy-fish-colors-fade
oatmello - no way back https://soundcloud.com/chillhopdotcom/oatmello-no-way-back
Wildflower (Chillhop Spring Essentials) https://soundcloud.com/joe-corfield-1/wildflower-chillhop-spring-essentials
undefined undefined
undefined undefined
undefined undefined
undefined undefined
undefined undefined
undefined undefined
....
Fixed in v0.4.5
.
Not for searchV2
or searchAlt
, it makes them too slow. If you want to fetch all full tracks in a playlist use soundcloud.playlists.fetch(playlist)
.