/// <summary> /// Sets the fields of this TVFile based on a returned TVDB episode. /// </summary> private void SetTvdbFields() { var episode = GetTvdbEpisode(); Title = episode.EpisodeName; try { Year = episode.FirstAiredDate.Year; } catch { Debug.WriteLine("Failed to set Year from TVDB"); } if (Season != episode.SeasonNumber) { Season = episode.SeasonNumber; } if (!Episode.Contains(episode.EpisodeNumber)) { Episode.Add(episode.EpisodeNumber); } }