// Adds a song to the playlist. public async Task PlaylistAddAsync(string path) { // Get audio info. AudioFile audio = await GetAudioFileAsync(path); if (audio != null) { m_Playlist.Enqueue(audio); // Only add if there's no errors. Log($"Added to playlist : {audio.Title}", (int)E_LogOutput.Reply); // If the downloader is set to true, we start the autodownload helper. if (m_AutoDownload) { if (audio.IsNetwork) { m_AudioDownloader.Push(audio); // Auto download while in playlist. } await m_AudioDownloader.StartDownloadAsync(); // Start the downloader if it's off. } } }