internal void UpdateTorrentFiles(Torrent TorrentToUpdate, bool ForceUpdate) { if (TorrentToUpdate.FilesLastUpdated == null || TorrentToUpdate.FilesLastUpdated.Add(MinimumTimeBetweenUpdates) < DateTime.Now || ForceUpdate) { if (TorrentToUpdate.FileList == null) { TorrentToUpdate.FileList = new TorrentFileCollection(TorrentToUpdate); } TorrentToUpdate.FileList.ParseFiles(ServiceClient.GetFiles(TorrentToUpdate.Hash, _token).Files, TorrentToUpdate); TorrentToUpdate.FilesLastUpdated = DateTime.Now; } }