TraktPlugin.GUI.GUICommon.ShowTVShowTrailersPluginMenu C# (CSharp) 메소드

ShowTVShowTrailersPluginMenu() 공개 정적인 메소드

public static ShowTVShowTrailersPluginMenu ( TraktShowSummary show ) : void
show TraktPlugin.TraktAPI.DataStructures.TraktShowSummary
리턴 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);
        }