private AlbumMetadata ConvertMetadata(ReleaseGroup release) { return(new AlbumMetadata { Mbid = release.Id, Title = release.Title, ReleaseDate = release.DateTime, Year = release.Year }); }
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); }
private AlbumMetadata ConvertMetadata(ReleaseGroup release) { return new AlbumMetadata { Mbid = release.Id, Title = release.Title, ReleaseDate = release.DateTime, Year = release.Year }; }
private static bool EqualsIgnoreCase(ReleaseGroup release, Album matchingAlbum) { return string.Equals(release.Title, matchingAlbum.Title, StringComparison.InvariantCultureIgnoreCase); }
private static bool EqualsIgnoreCase(ReleaseGroup release, Album matchingAlbum) { return(string.Equals(release.Title, matchingAlbum.Title, StringComparison.InvariantCultureIgnoreCase)); }