Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
immisterio committed Feb 2, 2023
1 parent b8ef7a9 commit a99715b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Engine/FileDB/FileDB.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit a99715b

Please sign in to comment.