public bool IsPassed(ITunesAlbum album, string queriedArtist) { bool сyrillic = Regex.IsMatch(queriedArtist, @"\p{IsCyrillic}"); bool searchedNameFound = album.ArtistName.ToLower() == queriedArtist.ToLower(); return(сyrillic || searchedNameFound); }
public bool IsPassed(ITunesAlbum album, string queriedArtist) => !album.Name.ToLower().Contains("remix");
public bool IsPassed(ITunesAlbum album, string queriedArtist) => album.TrackCount > 1 && !album.Name.EndsWith(" - Single");