Esempio n. 1
0
        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))));
        }
Esempio n. 2
0
        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))));
        }