Example #1
0
        /// <summary>
        /// 노래 클릭 시 다운로드
        /// </summary>
        /// <param name="videoTitle"></param>
        private async void DownloadExecuteCommand(object videoTitle)
        {
            string id = youtubeSearch.FirstOrDefault(e => e.title == videoTitle.ToString()).id;
            string reshapedVideoName = await service.Download(id, videoTitle.ToString());

            if (!string.IsNullOrEmpty(reshapedVideoName))
            {
                EnqueuePlayList(reshapedVideoName);
            }
        }