diff --git a/client/src/app/navbar/navbar.component.ts b/client/src/app/navbar/navbar.component.ts index a07406d..2880814 100644 --- a/client/src/app/navbar/navbar.component.ts +++ b/client/src/app/navbar/navbar.component.ts @@ -35,12 +35,12 @@ export class NavbarComponent implements OnInit { case 'Premiumize': this.providerLink = 'https://www.premiumize.me/'; break; - case 'DebridLinkFr': - this.providerLink = 'https://debrid-link.fr/'; - break; case 'TorBox': this.providerLink = 'https://torbox.app/'; break; + case 'DebridLinkFr': + this.providerLink = 'https://debrid-link.com/'; + break; } }); } diff --git a/client/src/app/setup/setup.component.html b/client/src/app/setup/setup.component.html index fda6219..a096260 100644 --- a/client/src/app/setup/setup.component.html +++ b/client/src/app/setup/setup.component.html @@ -42,7 +42,7 @@
To be able to use the Real-Debrid Client you need a premium subscription to download torrents.

- Not premium yet? You have the choice of 4 providers: + Not premium yet? You have the choice of 5 providers:
Use this link to sign up to Real-Debrid.Use this link to sign up to Premiumize.
- Use this link to sign up to DebridLinkFr. Use this link to sign up to TorBox.
+ Use this link to sign up to DebridLink. (Referal links)
@@ -71,8 +71,8 @@ - - + +
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