private async Task <string> GetArtworkFromFile(string albumKey) { Track track = await this.trackRepository.GetLastModifiedTrackForAlbumKeyAsync(albumKey); return(await this.cacheService.CacheArtworkAsync(IndexerUtils.GetArtwork(albumKey, new FileMetadata(track.Path)))); }
private async Task <string> GetArtworkFromFile(Album album) { Track trk = this.GetLastModifiedTrack(album); return(await this.cacheService.CacheArtworkAsync(IndexerUtils.GetArtwork(album, this.fileMetadataFactory.Create(trk.Path)))); }