YoutubeDL.getInfoAsync

Loads songs from a given youtube-dl compatible URL, calling a delegate with each song. This function is useful for downloading large playlists where waiting for all the songs to be processed takes a long time. When downloading is completed, the delegate complete will be called with the total number of songs downloaded/pasred.

class YoutubeDL
static
void
getInfoAsync
(
string url
,
void delegate(
VibeJSON
)
cb
,
void delegate(
size_t
)
complete = null
)

Parameters

url
Type: string

url of playlist or song to download

cb
Type: void delegate(
VibeJSON
)

delegate taking a VibeJSON object for each song downloaded from the URL.

complete
Type: void delegate(
size_t
)

delegate taking a size_t, called when completed (with the total number of downloaded songs)

Meta