Function 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.

Prototype

static void getInfoAsync(
  string url,
  void delegate(vibe.data.json.Json) cb,
  void delegate(ulong) complete = cast(void delegate(ulong))null
);

Parameters

NameDescription
url url of playlist or song to download
cb delegate taking a VibeJSON object for each song downloaded from the URL.
complete delegate taking a size_t, called when completed (with the total number of downloaded songs)