From 7a8a0946d1f77bcf525330fdb00a16acd5be6393 Mon Sep 17 00:00:00 2001 From: Roger Far Date: Sun, 28 Jul 2024 21:42:08 -0600 Subject: [PATCH] Force update torrent data when no filename is set. --- .../Services/TorrentClients/RealDebridTorrentClient.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/RdtClient.Service/Services/TorrentClients/RealDebridTorrentClient.cs b/server/RdtClient.Service/Services/TorrentClients/RealDebridTorrentClient.cs index 29c9958..2b09057 100644 --- a/server/RdtClient.Service/Services/TorrentClients/RealDebridTorrentClient.cs +++ b/server/RdtClient.Service/Services/TorrentClients/RealDebridTorrentClient.cs @@ -287,7 +287,7 @@ public class RealDebridTorrentClient(ILogger logger, IH return torrent; } - if (torrentClientTorrent == null || torrentClientTorrent.Ended == null) + if (torrentClientTorrent == null || torrentClientTorrent.Ended == null || String.IsNullOrEmpty(torrentClientTorrent.Filename)) { torrentClientTorrent = await GetInfo(torrent.RdId) ?? throw new($"Resource not found"); }