public void BacthVonverse() { long tick = Environment.TickCount; IAnalyser btAnalyser = new CommonAnalyser(); foreach (FileInfo fInfo in _sourFilenameList) { if (!fInfo.Extension.Equals(".torrent")) { continue; // 过滤非BT文件 } TorrentFile torrentFile = new TorrentFile(); torrentFile.OpenFile(fInfo.FullName); torrentFile.Modify(); string newFilename = String.Format("{0}\\{1}", _destFolder, fInfo.Name); torrentFile.SaveFile(newFilename); } if (_callBackFunc != null) { _callBackFunc(String.Format("转换完毕, 总用时{0} 秒", (Environment.TickCount - tick) / 1000.0)); } }
private void SaveBt(string filename) { _torrentFile.SaveFile(filename); }