public async Task <string> SaveImage(MusicBrainzImage image, string path, string fileName, CancellationToken cancellationToken, MusicBrainzImageFormatType type = MusicBrainzImageFormatType.Normal)
        {
            var url = image.GetImagePath(type);

            return(await _CoverArtArchiveWebClient.SaveFile(url, path, fileName, cancellationToken));
        }
 public async Task DownloadImage(MusicBrainzImage image, Stream copyStream, CancellationToken cancellationToken, MusicBrainzImageFormatType type = MusicBrainzImageFormatType.Normal)
 {
     var path = image.GetImagePath(type);
     await _CoverArtArchiveWebClient.Download(path, copyStream, cancellationToken);
 }
 public Task <string> SaveImage(MusicBrainzImage image, string path, string fileName, MusicBrainzImageFormatType type = MusicBrainzImageFormatType.Normal)
 {
     return(SaveImage(image, path, fileName, CancellationToken.None, type));
 }
 public Task DownloadImage(MusicBrainzImage image, Stream copyStream, MusicBrainzImageFormatType type = MusicBrainzImageFormatType.Normal)
 {
     return(DownloadImage(image, copyStream, CancellationToken.None, type));
 }