Example #1
0
        public async void DownloadVideo(string VideoID)
        {
            var videoDownloader = new VideoDownloader();

            DownloadStatus = "Hämtar video.";
            var videoPath = await videoDownloader.GetVideo(VideoID, SavePath);

            if (videoPath != null)
            {
                ConvertVideo(videoPath);
            }
            else
            {
                DownloadStatus = "Ett problem uppstod när videon skulle hämtas. Försök med en annan låt.";
            }
        }