/// <summary> /// 添加查重 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void repetitionToolStripMenuItem_Click(object sender, EventArgs e) { bool scan = VideoData.ScanFolder(focusedfolder); if (!scan) { return; } List <int> ids = VideoData.GetAllVideoPlay(focusedfolder.Name).Select(t => t.Id).ToList(); bool iswin = VideoData.VideoRepetition(AppSettings.User.RealName, focusedfolder.Name + focusedfolder.Place, focusedfolder.Id, ids); if (!iswin) { MessageBox.Show("添加失败"); Program.log.Error($"添加视频查重,批次{focusedfolder.Name},失败"); return; } MessageBox.Show("添加成功"); Program.log.Info($"添加视频查重,批次{focusedfolder.Name},成功"); }