internal void UpdateTorrentProperties(Torrent TorrentToUpdate, bool ForceUpdate) { if (TorrentToUpdate.PropertiesLastUpdated == null || TorrentToUpdate.PropertiesLastUpdated.Add(MinimumTimeBetweenUpdates) < DateTime.Now || ForceUpdate) { TorrentPropertiesList[] CurrentProperties = ServiceClient.GetProperties(TorrentToUpdate.Hash, _token).Properties; if (CurrentProperties.Length != 1) { throw new FormatException("The array of torrent properties was not in the expected format."); } TorrentToUpdate.ParseProperties(CurrentProperties[0]); TorrentToUpdate.PropertiesLastUpdated = DateTime.Now; } }