TraktPlugin.GUI.GUICommon.ShowTVShowTrailersPluginMenu C# (CSharp) Méthode

ShowTVShowTrailersPluginMenu() public static méthode

public static ShowTVShowTrailersPluginMenu ( TraktShowSummary show ) : void
show TraktPlugin.TraktAPI.DataStructures.TraktShowSummary
Résultat void
        public static void ShowTVShowTrailersPluginMenu(TraktShowSummary show)
        {
            var showImages = TmdbCache.GetShowImages(show.Ids.Tmdb, true);
            var trailerItem = new MediaItem
            {
                MediaType = MediaItemType.Show,
                IMDb = show.Ids.Imdb.ToNullIfEmpty(),
                TVDb = show.Ids.Tvdb.ToString(),
                TVRage = show.Ids.TvRage.ToString(),
                TMDb = show.Ids.Tmdb.ToString(),
                Plot = show.Overview,
                Poster = TmdbCache.GetShowPosterFilename(showImages),
                Title = show.Title,
                Year = show.Year.GetValueOrDefault(0),
                AirDate = show.FirstAired.FromISO8601().ToString("yyyy-MM-dd")
            };
            Trailers.Trailers.SearchForTrailers(trailerItem);
        }