public static void ShowTVSeasonTrailersPluginMenu(TraktShowSummary show, int season)
{
CurrentMediaType = MediaType.Show;
CurrentShow = show;
// check for parental controls
if (PromptForPinCode)
{
if (!GUIUtils.ShowPinCodeDialog(TraktSettings.ParentalControlsPinCode))
{
TraktLogger.Warning("Parental controls pin code has not successfully been entered. Window ID = {0}", GUIWindowManager.ActiveWindow);
return;
}
}
var showImages = TmdbCache.GetShowImages(show.Ids.Tmdb, true);
var trailerItem = new MediaItem
{
MediaType = MediaItemType.Season,
IMDb = show.Ids.Imdb.ToNullIfEmpty(),
TMDb = show.Ids.Tmdb.ToString(),
TVDb = show.Ids.Tvdb.ToString(),
TVRage = show.Ids.TvRage.ToString(),
Plot = show.Overview,
Poster = TmdbCache.GetShowPosterFilename(showImages),
Title = show.Title,
Year = show.Year.GetValueOrDefault(0),
AirDate = show.FirstAired.FromISO8601().ToString("yyyy-MM-dd"),
Season = season
};
Trailers.Trailers.SearchForTrailers(trailerItem);
}