public PartUrl(m3u8File m3u8) { InitializeComponent(); this.m3u8 = m3u8; this.Text = m3u8.name; init(); }
public m3u8Download(m3u8File m, int id, bool automerge, m3u8DownloadCallBack cb) { m3u8 = m; callBack = cb; status = 0; this.id = id; this.automerge = automerge; }
void addM3u8File(String filepath) { m3u8File m3u8file = new m3u8File(filepath); //int index = dataGridView1.Rows.Add(); //dataGridView1.Rows[index].Cells[0].Value = m3u8file.name; //dataGridView1.Rows[index].Cells[1].Value = m3u8file.path; //dataGridView1.Rows[index].Cells[2].Value = m3u8file.PartNo; //TimeSpan ts = new TimeSpan(0, 0, (int)m3u8file.totalTime); //dataGridView1.Rows[index].Cells[3].Value = string.Format("{0:d2}:{1:d2}:{2:d2}", ts.Hours, ts.Minutes, ts.Seconds); TimeSpan ts = new TimeSpan(0, 0, (int)m3u8file.totalTime); dt.Rows.Add(m3u8file.name, m3u8file.path, m3u8file.PartNo, string.Format("{0:d2}:{1:d2}:{2:d2}", ts.Hours, ts.Minutes, ts.Seconds), "", m3u8file); }