示例#1
0
        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());
        }
示例#2
0
        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>();
        }