Exemple #1
0
        public void ReCacheAllImages()
        {
            if (this.PrimaryImage != null)
            {
                PrimaryImage.ClearLocalImages();
                this.PrimaryImage.GetLocalImagePath(); //no size - cache at original size
            }

            foreach (LibraryImage image in this.BackdropImages)
            {
                image.ClearLocalImages();
                image.GetLocalImagePath(); //force the backdrops to re-cache
            }
            if (this.BannerImage != null)
            {
                this.BannerImage.ClearLocalImages();
                this.BannerImage.GetLocalImagePath(); //and banner
            }
            if (this.LogoImage != null)
            {
                this.LogoImage.ClearLocalImages();
                this.LogoImage.GetLocalImagePath(); //and logo
            }
            if (this.ArtImage != null)
            {
                this.ArtImage.ClearLocalImages();
                this.ArtImage.GetLocalImagePath(); //and art
            }
            if (this.DiscImage != null)
            {
                this.DiscImage.ClearLocalImages();
                this.DiscImage.GetLocalImagePath(); //and disc
            }
            if (this.ThumbnailImage != null)
            {
                this.ThumbnailImage.ClearLocalImages();
                this.ThumbnailImage.GetLocalImagePath(); //and, finally, thumb
            }
        }
Exemple #2
0
        public void ReCacheAllImages()
        {
            string ignore;

            if (this.PrimaryImage != null)
            {
                PrimaryImage.ClearLocalImages();
                ignore = this.PrimaryImage.GetLocalImagePath(); //no size - cache at original size
            }

            foreach (MediaBrowser.Library.ImageManagement.LibraryImage image in this.BackdropImages)
            {
                image.ClearLocalImages();
                ignore = image.GetLocalImagePath(); //force the backdrops to re-cache
            }
            if (this.BannerImage != null)
            {
                this.BannerImage.ClearLocalImages();
                ignore = this.BannerImage.GetLocalImagePath(); //and, finally, banner
            }
            if (this.LogoImage != null)
            {
                this.LogoImage.ClearLocalImages();
                ignore = this.LogoImage.GetLocalImagePath(); //and, finally, banner
            }
            if (this.ArtImage != null)
            {
                this.ArtImage.ClearLocalImages();
                ignore = this.ArtImage.GetLocalImagePath(); //and, finally, banner
            }
            if (this.ThumbnailImage != null)
            {
                this.ThumbnailImage.ClearLocalImages();
                ignore = this.ThumbnailImage.GetLocalImagePath(); //and, finally, banner
            }
        }