From d029319ed164ed2bb9cebfdea7acdc6bd3031d31 Mon Sep 17 00:00:00 2001 From: Roger Far Date: Wed, 13 Jan 2021 13:15:44 -0700 Subject: [PATCH] Fixed torrent content_path. --- server/RdtClient.Service/Services/QBittorrent.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/RdtClient.Service/Services/QBittorrent.cs b/server/RdtClient.Service/Services/QBittorrent.cs index 3cb000d..f38b037 100644 --- a/server/RdtClient.Service/Services/QBittorrent.cs +++ b/server/RdtClient.Service/Services/QBittorrent.cs @@ -240,6 +240,8 @@ namespace RdtClient.Service.Services downloadPath = Path.Combine(downloadPath, torrent.Category); } + var torrentPath = Path.Combine(downloadPath, torrent.RdName); + var result = new TorrentInfo { AddedOn = torrent.RdAdded.ToUnixTimeSeconds(), @@ -270,7 +272,7 @@ namespace RdtClient.Service.Services Progress = (Int64) (torrent.RdProgress / 100.0), Ratio = 1, RatioLimit = 1, - ContentPath = downloadPath, + ContentPath = torrentPath, SavePath = downloadPath, SeedingTimeLimit = 1, SeenComplete = DateTimeOffset.UtcNow.ToUnixTimeSeconds(),