diff --git a/server/RdtClient.Service/Services/TorrentClients/TorBoxTorrentClient.cs b/server/RdtClient.Service/Services/TorrentClients/TorBoxTorrentClient.cs index e953193..72dd2e0 100644 --- a/server/RdtClient.Service/Services/TorrentClients/TorBoxTorrentClient.cs +++ b/server/RdtClient.Service/Services/TorrentClients/TorBoxTorrentClient.cs @@ -322,6 +322,15 @@ public class TorBoxTorrentClient(ILogger logger, IHttpClien { return fileName.Trim('"'); } + } else + { + if (response.Content.Headers.ContentType?.MediaType == "application/zip") + { + return $"download-{new Random().Next(1, 10001)}.zip"; + } else + { + logger.LogDebug($"Failed to get filename for URI {downloadUrl}"); + } } }