diff --git a/Engine/FileDB/FileDB.cs b/Engine/FileDB/FileDB.cs index 1639405..2d468d3 100644 --- a/Engine/FileDB/FileDB.cs +++ b/Engine/FileDB/FileDB.cs @@ -35,9 +35,6 @@ public partial class FileDB : IDisposable #region AddOrUpdate public void AddOrUpdate(TorrentBaseDetails torrent) { - if (string.IsNullOrWhiteSpace(torrent.magnet) || torrent.types == null || torrent.types.Length == 0) - return; - if (db.TryGetValue(torrent.url, out TorrentDetails t)) { long startUpdateTime = t.updateTime.ToFileTimeUtc(); @@ -131,6 +128,9 @@ void upt() } else { + if (string.IsNullOrWhiteSpace(torrent.magnet) || torrent.types == null || torrent.types.Length == 0) + return; + t = new TorrentDetails() { url = torrent.url,