diff --git a/server/RdtClient.Service/Services/TorrentClients/DebridLinkFrTorrentClient.cs b/server/RdtClient.Service/Services/TorrentClients/DebridLinkFrTorrentClient.cs
index ea7927c..6d1b219 100644
--- a/server/RdtClient.Service/Services/TorrentClients/DebridLinkFrTorrentClient.cs
+++ b/server/RdtClient.Service/Services/TorrentClients/DebridLinkFrTorrentClient.cs
@@ -5,6 +5,7 @@ using RdtClient.Data.Enums;
using RdtClient.Data.Models.TorrentClient;
using RdtClient.Service.Helpers;
using DebridLinkFrNET.Models;
+using System.Web;
namespace RdtClient.Service.Services.TorrentClients;
@@ -314,4 +315,16 @@ public class DebridLinkFrClient : ITorrentClient
_logger.LogDebug(message);
}
+
+ public Task GetFileName(string downloadUrl)
+ {
+ if (String.IsNullOrWhiteSpace(downloadUrl))
+ {
+ return Task.FromResult("");
+ }
+
+ var uri = new Uri(downloadUrl);
+
+ return Task.FromResult(HttpUtility.UrlDecode(uri.Segments.Last()));
+ }
}
\ No newline at end of file