コード例 #1
0
 private AlbumMetadata ConvertMetadata(ReleaseGroup release)
 {
     return(new AlbumMetadata
     {
         Mbid = release.Id,
         Title = release.Title,
         ReleaseDate = release.DateTime,
         Year = release.Year
     });
 }
コード例 #2
0
        public async Task Update(string path, string artistId)
        {
            string albumId = await FindAlbumId(path, artistId);

            ReleaseGroup album = await _metadataUpdater.GetAlbum(albumId);

            AlbumMetadata albumMetadata = ConvertMetadata(album);

            await Save(path, albumMetadata);
            await UpdateImage(path, albumId);
        }
コード例 #3
0
 private AlbumMetadata ConvertMetadata(ReleaseGroup release)
 {
     return new AlbumMetadata
     {
         Mbid = release.Id,
         Title = release.Title,
         ReleaseDate = release.DateTime,
         Year = release.Year
     };
 }
コード例 #4
0
 private static bool EqualsIgnoreCase(ReleaseGroup release, Album matchingAlbum)
 {
     return string.Equals(release.Title, matchingAlbum.Title, StringComparison.InvariantCultureIgnoreCase);
 }
コード例 #5
0
 private static bool EqualsIgnoreCase(ReleaseGroup release, Album matchingAlbum)
 {
     return(string.Equals(release.Title, matchingAlbum.Title, StringComparison.InvariantCultureIgnoreCase));
 }