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); }