Skip to content

Commit

Permalink
Fixed another symlink path resolver issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
rogerfar committed Apr 12, 2024
1 parent eb21211 commit 0bfb497
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.73] - 2024-04-11
### Changed
- Fixed another issue with the symlinker and file resolver.

## [2.0.72] - 2024-04-10
### Changed
- Fixed issue with download speed test when the symlink downloader is selected.
Expand Down
2 changes: 1 addition & 1 deletion client/src/app/navbar/navbar.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
<a class="navbar-item" routerLink="profile"> Profile </a>
<a class="navbar-item" (click)="logout()"> Logout </a>
<hr class="navbar-divider" />
<a href="https://github.com/rogerfar/rdt-client" target="_blank" class="navbar-item">Version 2.0.72</a>
<a href="https://github.com/rogerfar/rdt-client" target="_blank" class="navbar-item">Version 2.0.73</a>
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rdt-client",
"version": "2.0.72",
"version": "2.0.73",
"description": "This is a web interface to manage your torrents on Real-Debrid.",
"main": "index.js",
"dependencies": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ public async Task<String> Download()
var rcloneMountPath = Settings.Get.DownloadClient.RcloneMountPath.TrimEnd(['\\', '/']);
var fileName = filePath.Name;
var fileExtension = filePath.Extension;
var fileNameWithoutExtension = fileName.Replace(fileExtension, "");
var pathWithoutFileName = path.Replace(fileName, "").TrimEnd(['\\', '/']);
var searchPath = Path.Combine(rcloneMountPath, pathWithoutFileName);

Expand Down Expand Up @@ -56,13 +57,14 @@ public async Task<String> Download()
potentialFilePaths.Add(directoryInfo.FullName);
directoryInfo = directoryInfo.Parent;

if (directoryInfo.FullName == rcloneMountPath)
if (directoryInfo.FullName.TrimEnd(['\\', '/']) == rcloneMountPath)
{
break;
}
}

potentialFilePaths.Add(Path.Combine(rcloneMountPath, fileName));
potentialFilePaths.Add(Path.Combine(rcloneMountPath, fileNameWithoutExtension));

FileInfo? file = null;

Expand Down
2 changes: 1 addition & 1 deletion server/RdtClient.Web/RdtClient.Web.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<TargetFramework>net8.0</TargetFramework>
<OutputType>Exe</OutputType>
<UserSecretsId>94c24cba-f03f-4453-a671-3640b517c573</UserSecretsId>
<Version>2.0.72</Version>
<Version>2.0.73</Version>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<LangVersion>latest</LangVersion>
Expand Down

0 comments on commit 0bfb497

Please sign in to comment.