diff --git a/CHANGELOG.md b/CHANGELOG.md index 8220ad9..b236bfe 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [2.0.71] - 2024-04-10 +### Changed +- Fixed symlink path matching bug. + ## [2.0.70] - 2024-04-10 ### Added - Added symlink logging. diff --git a/client/src/app/navbar/navbar.component.html b/client/src/app/navbar/navbar.component.html index 37995ce..327ec63 100644 --- a/client/src/app/navbar/navbar.component.html +++ b/client/src/app/navbar/navbar.component.html @@ -55,7 +55,7 @@ Profile Logout - Version 2.0.70 + Version 2.0.71 diff --git a/package.json b/package.json index 5eb1d56..7848097 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "rdt-client", - "version": "2.0.70", + "version": "2.0.71", "description": "This is a web interface to manage your torrents on Real-Debrid.", "main": "index.js", "dependencies": { diff --git a/server/RdtClient.Service/Services/Downloaders/SymlinkDownloader.cs b/server/RdtClient.Service/Services/Downloaders/SymlinkDownloader.cs index cac910a..001c933 100644 --- a/server/RdtClient.Service/Services/Downloaders/SymlinkDownloader.cs +++ b/server/RdtClient.Service/Services/Downloaders/SymlinkDownloader.cs @@ -48,15 +48,12 @@ public class SymlinkDownloader(String uri, String destinationPath, String path) Speed = 0 }); - var potentialFilePaths = new List - { - Path.Combine(rcloneMountPath, fileName) - }; + var potentialFilePaths = new List(); var directoryInfo = new DirectoryInfo(searchPath); while (directoryInfo.Parent != null) { - potentialFilePaths.Add(directoryInfo.FullName + @"\"); + potentialFilePaths.Add(directoryInfo.FullName); directoryInfo = directoryInfo.Parent; if (directoryInfo.FullName == rcloneMountPath) @@ -65,6 +62,8 @@ public class SymlinkDownloader(String uri, String destinationPath, String path) } } + potentialFilePaths.Add(Path.Combine(rcloneMountPath, fileName)); + FileInfo? file = null; for (var retryCount = 0; retryCount < MaxRetries; retryCount++) diff --git a/server/RdtClient.Web/RdtClient.Web.csproj b/server/RdtClient.Web/RdtClient.Web.csproj index ba2ed70..046ac4c 100644 --- a/server/RdtClient.Web/RdtClient.Web.csproj +++ b/server/RdtClient.Web/RdtClient.Web.csproj @@ -4,7 +4,7 @@ net8.0 Exe 94c24cba-f03f-4453-a671-3640b517c573 - 2.0.70 + 2.0.71 enable enable latest