Esempio n. 1
0
        private void RefreshFromMetadata(MovieMetadata metadata)
        {
            Certification   = metadata.Certification;
            FileInformation = metadata.FileInformation;
            Id               = metadata.Id;
            OriginalTitle    = metadata.OriginalTitle;
            Outline          = metadata.Outline;
            PlayCount        = metadata.PlayCount;
            Plot             = metadata.Plot;
            PremieredDate    = metadata.Premiered;
            Rating           = metadata.Rating;
            RuntimeInMinutes = metadata.RuntimeInMinutes;
            Country          = metadata.Country;
            SetName.Value    = metadata.SetName;
            SetName.Save();
            Studio      = metadata.Studio;
            Tagline     = metadata.Tagline;
            Title.Value = metadata.Title;
            Title.Save();
            Year = metadata.Year;
            Poster.RefreshImage(metadata.ImagePosterPath);
            Fanart.RefreshImage(metadata.ImageFanartPath);

            Credits.ReplaceWith(metadata.Credits);
            Directors.ReplaceWith(metadata.Directors);
            Genres.ReplaceWith(metadata.Genres);
            ActorManager.Initialize(TransformActors(metadata.Actors));
        }
        protected override async Task RefreshInternal()
        {
            MovieSet set = await _metadataService.GetMovieSet(DisplayName);

            SetName     = DisplayNameInternal = set.Name;
            Fanart.Path = set.BackdropPath;
            Poster.Path = set.PosterPath;
            Fanart.RefreshImage();
            Poster.RefreshImage();
        }