コード例 #1
0
        public bool RefreshItem(BaseItem item)
        {
            if (RefreshPaths != null && RefreshPaths.Length > 0)
            {
                return(RefreshPaths.Contains(item.Path ?? string.Empty, StringComparer.OrdinalIgnoreCase));
            }

            return(true);
        }
コード例 #2
0
        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);
            }
        }