From 0c9de86531c750605dc06e3712ff9b80a0d94566 Mon Sep 17 00:00:00 2001 From: Cucumberrbob <128094686+Cucumberrbob@users.noreply.github.com> Date: Wed, 29 Jan 2025 12:19:52 +0000 Subject: [PATCH] rename symlinkPath -> symlinkSourcePath --- server/RdtClient.Service/Services/DownloadClient.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/RdtClient.Service/Services/DownloadClient.cs b/server/RdtClient.Service/Services/DownloadClient.cs index 949271e..5ea24b5 100644 --- a/server/RdtClient.Service/Services/DownloadClient.cs +++ b/server/RdtClient.Service/Services/DownloadClient.cs @@ -45,7 +45,7 @@ public class DownloadClient(Download download, Torrent torrent, String destinati throw new("Invalid download path"); } - var symlinkPath = torrent.ClientKind switch + var symlinkSourcePath = torrent.ClientKind switch { Torrent.TorrentClientKind.AllDebrid => AllDebridTorrentClient.GetSymlinkPath(torrent, download), _ => downloadPath @@ -63,7 +63,7 @@ public class DownloadClient(Download download, Torrent torrent, String destinati Data.Enums.DownloadClient.Internal => new InternalDownloader(download.Link, filePath), Data.Enums.DownloadClient.Bezzad => new BezzadDownloader(download.Link, filePath), Data.Enums.DownloadClient.Aria2c => new Aria2cDownloader(download.RemoteId, download.Link, filePath, downloadPath, category), - Data.Enums.DownloadClient.Symlink => new SymlinkDownloader(download.Link, filePath, symlinkPath, torrent.ClientKind), + Data.Enums.DownloadClient.Symlink => new SymlinkDownloader(download.Link, filePath, symlinkSourcePath, torrent.ClientKind), _ => throw new($"Unknown download client {Type}") };