diff --git a/server/RdtClient.Service/Services/TorrentClients/AllDebridTorrentClient.cs b/server/RdtClient.Service/Services/TorrentClients/AllDebridTorrentClient.cs index da4998b..818222f 100644 --- a/server/RdtClient.Service/Services/TorrentClients/AllDebridTorrentClient.cs +++ b/server/RdtClient.Service/Services/TorrentClients/AllDebridTorrentClient.cs @@ -265,6 +265,7 @@ public class AllDebridTorrentClient(ILogger logger, IAll }).ToList(); } + /// public Task GetFileName(Download download) { // FileName is set in GetDownlaadInfos diff --git a/server/RdtClient.Service/Services/TorrentClients/DebridLinkTorrentClient.cs b/server/RdtClient.Service/Services/TorrentClients/DebridLinkTorrentClient.cs index 3e81729..baebc84 100644 --- a/server/RdtClient.Service/Services/TorrentClients/DebridLinkTorrentClient.cs +++ b/server/RdtClient.Service/Services/TorrentClients/DebridLinkTorrentClient.cs @@ -276,6 +276,7 @@ public class DebridLinkClient(ILogger logger, IHttpClientFacto logger.LogDebug(message); } + /// public Task GetFileName(Download download) { // FileName is set in GetDownlaadInfos diff --git a/server/RdtClient.Service/Services/TorrentClients/RealDebridTorrentClient.cs b/server/RdtClient.Service/Services/TorrentClients/RealDebridTorrentClient.cs index d1a43d0..f78c533 100644 --- a/server/RdtClient.Service/Services/TorrentClients/RealDebridTorrentClient.cs +++ b/server/RdtClient.Service/Services/TorrentClients/RealDebridTorrentClient.cs @@ -351,6 +351,7 @@ public class RealDebridTorrentClient(ILogger logger, IH return null; } + /// public Task GetFileName(Download download) { if (String.IsNullOrWhiteSpace(download.Link)) diff --git a/server/RdtClient.Service/Services/TorrentClients/TorBoxTorrentClient.cs b/server/RdtClient.Service/Services/TorrentClients/TorBoxTorrentClient.cs index 26d95e1..463fb28 100644 --- a/server/RdtClient.Service/Services/TorrentClients/TorBoxTorrentClient.cs +++ b/server/RdtClient.Service/Services/TorrentClients/TorBoxTorrentClient.cs @@ -293,6 +293,7 @@ public class TorBoxTorrentClient(ILogger logger, IHttpClien .ToList(); } + /// public Task GetFileName(Download download) { // FileName is set in GetDownlaadInfos diff --git a/server/RdtClient.Service/Services/Torrents.cs b/server/RdtClient.Service/Services/Torrents.cs index 9fe1cb6..f374b11 100644 --- a/server/RdtClient.Service/Services/Torrents.cs +++ b/server/RdtClient.Service/Services/Torrents.cs @@ -390,6 +390,10 @@ public class Torrents( return unrestrictedLink; } + /// + /// To be called only when . is not set by + /// + /// public async Task RetrieveFileName(Guid downloadId) { var download = await downloads.GetById(downloadId) ?? throw new($"Download with ID {downloadId} not found");