private void CheckAndPlayEpisode(bool jumpTo) { GUIListItem selectedItem = this.Facade.SelectedListItem; if (selectedItem == null) { return; } TraktUserListItem userListItem = selectedItem.TVTag as TraktUserListItem; if (userListItem == null) { return; } int seriesid = Convert.ToInt32(userListItem.Show.Tvdb); string searchterm = string.IsNullOrEmpty(userListItem.Show.Imdb) ? userListItem.Show.Title : userListItem.Show.Imdb; // if its a show/season, play first unwatched if (SelectedType != TraktItemType.episode) { GUICommon.CheckAndPlayFirstUnwatched(seriesid, searchterm, jumpTo, userListItem.Title); } else { int seasonidx = Convert.ToInt32(userListItem.SeasonNumber); int episodeidx = Convert.ToInt32(userListItem.EpisodeNumber); GUICommon.CheckAndPlayEpisode(seriesid, searchterm, seasonidx, episodeidx, userListItem.Title); } }
private void CheckAndPlayEpisode(bool jumpTo) { GUIListItem selectedItem = this.Facade.SelectedListItem; if (selectedItem == null) { return; } TraktWatchListShow selectedShow = (TraktWatchListShow)selectedItem.TVTag; GUICommon.CheckAndPlayFirstUnwatched(selectedShow, jumpTo); }