public HelpUpdateNovel() { Class19.Q77LubhzKM3NS(); this.rInfo = new RuleConfigInfo(); this.tInfo = new TaskConfigInfo(); this.InitializeComponent(); }
public TaskForm() { Class19.Q77LubhzKM3NS(); this.string_2 = ""; this.string_1 = ""; this.bool_0 = false; this.rInfo = new RuleConfigInfo(); this.tInfo = new TaskConfigInfo(); this.dateTime_0 = DateTime.Now; this.InitializeComponent(); }
private void button_0_Click(object sender, EventArgs e) { this.ruleConfigInfo_0 = (RuleConfigInfo)ConfigFileManager.LoadConfig(this.comboBox_0.Text, this.ruleConfigInfo_0); this.propertyInfo_0 = this.ruleConfigInfo_0.GetType().GetProperties(); for (int i = 0; i < (int)this.propertyInfo_0.Length; i++) { this.listBox_0.Items.Add(this.propertyInfo_0[i].Name); } this.button_0.Enabled = false; this.comboBox_0.Enabled = false; this.button_1.Enabled = true; ConfigFileManager.SaveConfig(this.comboBox_0.Text, this.ruleConfigInfo_0); }
public RuleForm() { Class19.Q77LubhzKM3NS(); this.hashtable_0 = new Hashtable(); this.int_0 = -1; this.ruleConfigInfo_0 = new RuleConfigInfo(); this.ruleTestForm_0 = new RuleTestForm(); this.taskConfigInfo_0 = new TaskConfigInfo(); this.InitializeComponent(); this.hashtable_0.Add("RuleVersion", Localization.Get("规则版本")); this.hashtable_0.Add("RuleID", Localization.Get("规则编号")); this.hashtable_0.Add("GetSiteName", Localization.Get("站点名称")); this.hashtable_0.Add("GetSiteCharset", Localization.Get("站点编码")); this.hashtable_0.Add("GetSiteUrl", Localization.Get("站点地址")); this.hashtable_0.Add("NovelSearchUrl", Localization.Get("站点搜索地址")); this.hashtable_0.Add("NovelSearchData", Localization.Get("搜索提交内容\r\n{SearchKey} 表示搜索提交的内容")); this.hashtable_0.Add("NovelSearch_GetNovelKey", Localization.Get("从搜索结果中获得小说编号\r\n{SearchKey} 表示搜索提交的内容\r\n此获得结果存入{NovelKey}变量")); this.hashtable_0.Add("NovelListUrl", Localization.Get("站点最新列表地址")); this.hashtable_0.Add("NovelList_GetNovelKey", Localization.Get("从最新列表中获得小说编号\r\n此规则中可以同时获得书名以方便手动时查看\r\n此获得结果存入{NovelKey}变量")); this.hashtable_0.Add("NovelUrl", Localization.Get("小说信息页地址 可调用{NovelKey}变量\r\n{NovelKey}一般情况表示小说编号")); this.hashtable_0.Add("NovelErr", Localization.Get("小说信息页错误识别标记")); this.hashtable_0.Add("NovelName", Localization.Get("获得小说名称正则,替换标签♂\r\n支持多模板")); this.hashtable_0.Add("NovelAuthor", Localization.Get("获得小说作者正则,替换标签♂\r\n支持多模板")); this.hashtable_0.Add("LagerSort", Localization.Get("获得小说大类正则,替换标签♂\r\n支持多模板")); this.hashtable_0.Add("SmallSort", Localization.Get("获得小说小类正则,替换标签♂\r\n支持多模板\r\n如果目标站点没有小类,这里就重复输入一次大类规则")); this.hashtable_0.Add("NovelIntro", Localization.Get("获得小说简介正则,替换标签♂\r\n支持多模板")); this.hashtable_0.Add("NovelKeyword", Localization.Get("获得小说主角(关键字)正则,替换标签♂\r\n支持多模板")); this.hashtable_0.Add("NovelDegree", Localization.Get("获得写作进程正则(请把全本小说替换成完成、完结、完本),替换标签♂\r\n支持多模板")); this.hashtable_0.Add("NovelCover", Localization.Get("获得小说封面正则,替换标签♂\r\n支持多模板")); this.hashtable_0.Add("NovelDefaultCoverUrl", Localization.Get("目标站默认封面地址\n遇到这个地址就不采集它的封面")); this.hashtable_0.Add("NovelInfo_GetNovelPubKey", Localization.Get("获得小说公众目录页地址正则\r\n支持多模板")); this.hashtable_0.Add("NovelInfo_GetNovelVipKey", Localization.Get("获得小说VIP目录页地址正则\r\n支持多模板\r\n这个一般无用,可留空")); this.hashtable_0.Add("PubCookies", Localization.Get("访问公众版需要登陆的Cookies\r\n一般无关,小说阅读网需要这个")); this.hashtable_0.Add("PubIndexUrl", Localization.Get("公众目录页地址 可调用{NovelPubKey} {NovelKey}变量")); this.hashtable_0.Add("PubIndexErr", Localization.Get("公众目录页错误识别标记")); this.hashtable_0.Add("PubVolumeContent", Localization.Get("获得目录部分关键HTML,一般可留空,替换标签♂\r\n替换支持{$分类名称$} {$小说名称$} {$小说作者$}变量")); this.hashtable_0.Add("PubVolumeSplit", Localization.Get("分割分卷")); this.hashtable_0.Add("PubVolumeName", Localization.Get("获得分卷名,替换标签♂\r\n支持多模板")); this.hashtable_0.Add("PubChapterName", Localization.Get("获得章节名,替换标签♂\r\n替换支持{$分类名称$} {$小说名称$} {$小说作者$} {$书卷名称$}变量")); this.hashtable_0.Add("PubChapter_GetChapterKey", Localization.Get("获得章节地址(章节编号),所获得的数量必须和章节名相同。记录变量{ChapterKey}")); this.hashtable_0.Add("PubContentUrl", Localization.Get("章节内容页地址 可调用{ChapterKey} {NovelKey}变量")); this.hashtable_0.Add("PubContentErr", Localization.Get("章节内容页错误识别标记")); this.hashtable_0.Add("PubContent_GetTextKey", Localization.Get("内容页中真实内容有JS调用的,获得JS地址 记录变量{TextKey}")); this.hashtable_0.Add("PubTextUrl", Localization.Get("组合真实内容地址")); this.hashtable_0.Add("PubContentText", Localization.Get("获得章节内容的正则,替换标签♂\r\n支持多模板")); this.hashtable_0.Add("PubContentChapterName", Localization.Get("获得章节修正名称的正则,自动修复列表名称,替换标签♂\r\n支持多模板\r\n(此为高级功能,用于防采集列表替换章节名称)")); this.hashtable_0.Add("PubContentChapterNum", Localization.Get("获得章节修正名称的数量(此为高级功能,用于防采集列表替换章节名称的数量,从尾章节向前数)")); this.hashtable_0.Add("PubContentReplace", Localization.Get("章节内容替换规则(替换获取图片后)\r\n每行一个替换,格式如下\r\n需要替换的内容♂替换结果\r\n<div.+?> 这个表示过滤\r\n<div.+?>♂<br> 这个表示替换")); }
private void comboBox_0_SelectedIndexChanged(object sender, EventArgs e) { if (this.comboBox_0.Items.Count != -1) { this.rInfo = (RuleConfigInfo)ConfigFileManager.LoadConfig(this.comboBox_0.Text, this.rInfo); } else { MessageForm messageForm = new MessageForm() { Text = Localization.Get("错误提示") }; messageForm.MessageText.Text = Localization.Get("你没有选择任何项目"); messageForm.ShowDialog(); } this.textBox_3.Text = this.rInfo.NovelListUrl.Pattern; }
private void TaskForm_Load(object sender, EventArgs e) { Guid guid = Guid.NewGuid(); this.string_2 = guid.ToString().ToUpper(); TaskForm taskForm = this; string str = string.Concat(taskForm.Text, " ", this.string_2); taskForm.Text = str; this.tInfo = (TaskConfigInfo)ConfigFileManager.LoadConfig("TaskConfig.xml", this.tInfo); this.comboBox_0.BeginUpdate(); string[] strArrays = IO.LoadRules(); if ((int)strArrays.Length > 0) { for (int i = 0; i < (int)strArrays.Length; i++) { this.comboBox_0.Items.Add(strArrays[i]); if (strArrays[i] == this.tInfo.RuleFile) { this.comboBox_0.Text = this.tInfo.RuleFile; this.rInfo = (RuleConfigInfo)ConfigFileManager.LoadConfig(this.tInfo.RuleFile, this.rInfo); this.textBox_3.Text = this.rInfo.NovelListUrl.Pattern; if (!this.bool_0) { this.Text = string.Concat(this.rInfo.GetSiteName.Pattern, Localization.Get(" 错误生成器")); } } } } this.comboBox_0.EndUpdate(); this.comboBox_4.BeginUpdate(); this.comboBox_4.Items.Add("TaskConfig.xml"); this.comboBox_4.Text = "TaskConfig.xml"; string[] strArrays1 = IO.LoadTasks(); if ((int)strArrays1.Length > 0) { for (int j = 0; j < (int)strArrays1.Length; j++) { this.comboBox_4.Items.Add(strArrays1[j]); } } this.comboBox_4.EndUpdate(); }
private void button_1_Click(object sender, EventArgs e) { this.rInfo = (RuleConfigInfo)ConfigFileManager.LoadConfig(this.comboBox_0.Text, this.rInfo); this.BAuthor = this.checkBox_0.Checked; this.BIntro = this.checkBox_4.Checked; this.BDegree = this.checkBox_3.Checked; this.bool_0 = this.checkBox_1.Checked; this.bool_1 = this.checkBox_2.Checked; this.BCover = this.checkBox_6.Checked; this.BKeyword = this.checkBox_5.Checked; this.MinID = int.Parse(this.textBox_1.Text); this.MaxID = int.Parse(this.textBox_0.Text); this.meminID = int.Parse(this.meminid.Text); this.memaxID = int.Parse(this.memaxid.Text); this.button_0.Enabled = true; this.button_1.Enabled = false; this.groupBox_1.Enabled = false; this.backgroundWorker_0.RunWorkerAsync(); }