예제 #1
0
        public RecInfo(string id, string url, RecDataGetter rdg, string afterConvertType, info.TimeShiftConfig tsConfig, string tsStr, string qualityRankStr, string qualityRank, string recComment, bool isChase)
        {
            this.id = id;
            var lvM = Regex.Match(url, "lv\\d+");

            if (lvM != null && !string.IsNullOrEmpty(lvM.Value))
            {
                if (url.IndexOf("live.nicovideo.jp") != -1)
                {
                    this.url = "https://live.nicovideo.jp/watch/" + lvM.Value;
                }
                else
                {
                    this.url = "https://live2.nicovideo.jp/watch/" + lvM.Value;
                }
            }
            else
            {
                this.url = url;
            }
            this.rdg   = rdg;
            this.state = "待機中";
            //this.afterFFmpegMode = afterFFmpegMode;
            this.afterConvertType = afterConvertType;
            this.timeShift        = tsStr;
            this.tsConfig         = tsConfig;
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm));
            samune = ((System.Drawing.Image)(resources.GetObject("samuneBox.Image")));
            //quality = "sHigh,High,Normal,Llow,sLow,abr";
            quality          = qualityRankStr;
            this.qualityRank = qualityRank;
            this.recComment  = recComment;
            this.isChase     = isChase;
        }
예제 #2
0
 public RecInfo(string id, string title,
                string host, string communityName,
                string startTime, string endTime,
                string programTime, string url,
                string communityUrl, string description,
                string qualityRank, TimeShiftConfig tsConfig,
                RecDataGetter rdg, string recComment, bool isChase)
 {
     this.id            = id;
     this.title         = title;
     this.host          = host;
     this.communityName = communityName;
     this.startTime     = startTime;
     this.endTime       = endTime;
     this.programTime   = programTime;
     this.url           = url;
     this.communityUrl  = communityUrl;
     this.description   = description;
     this.qualityRank   = qualityRank;
     this.tsConfig      = tsConfig;
     this.rdg           = rdg;
     this.recComment    = recComment;
     this.isChase       = isChase;
 }