public bool RefreshItem(BaseItem item) { if (RefreshPaths != null && RefreshPaths.Length > 0) { return(RefreshPaths.Contains(item.Path ?? string.Empty, StringComparer.OrdinalIgnoreCase)); } return(true); }
public MetadataRefreshOptions(MetadataRefreshOptions copy) : base(copy.DirectoryService) { MetadataRefreshMode = copy.MetadataRefreshMode; ForceSave = copy.ForceSave; ReplaceAllMetadata = copy.ReplaceAllMetadata; ImageRefreshMode = copy.ImageRefreshMode; ReplaceAllImages = copy.ReplaceAllImages; ReplaceImages = copy.ReplaceImages.ToList(); SearchResult = copy.SearchResult; if (copy.RefreshPaths != null && copy.RefreshPaths.Count > 0) { if (RefreshPaths == null) { RefreshPaths = new List <string>(); } RefreshPaths.AddRange(copy.RefreshPaths); } }