Exemplo n.º 1
0
        public async Task <ResponseModel <bool> > DownloadMusicAsync(string url)
        {
            var command = $"youtube-dl -o '{_youtubeDlSettings.Value.MusicPath}/%(id)s.%(ext)s' --write-info-json -x --audio-format {_musicFormats.First()} --write-thumbnail {url}";

            return(await _shellService.RunAsync(command));
        }