public override string ToString() { var sb = new StringBuilder(); sb.Append(DisplayName); sb.Append(" "); sb.Append(EpisodeID); sb.Append(" \""); sb.Append(EpisodeName); sb.Append("\""); sb.Append(" "); sb.Append(AddInfo); sb.Append(" ("); sb.Append(FileSize.ToString()); sb.Append(")"); if (Audio.Count > 0) { sb.Append(": "); sb.Append(GetAudio()); } return(sb.ToString()); }
public EpisodeData(Name name, string seasonNumber, string episodeNumber, bool isDateShow, string episodeName, string addInfo, FileSize fileSize) { Name = name; SeasonNumber = seasonNumber; EpisodeNumber = episodeNumber; IsDateShow = isDateShow; EpisodeID = GetEpisodeID(episodeName); EpisodeName = GetEpisodeName(episodeName); AddInfo = addInfo; FileSize = fileSize; Audio = new List <string>(); Subtitles = new List <string>(); }