Add fix for symlink downloader.
Some checks failed
Docker Image CI / build (push) Has been cancelled

This commit is contained in:
Roger Far 2024-04-09 20:02:07 -06:00
parent 367e195ed6
commit d36b9cf889
5 changed files with 12 additions and 5 deletions

View file

@ -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.67] - 2024-04-08
### Changed
- Symlink fixes.
## [2.0.66] - 2024-04-08
### Changed
- Symlink fixes and improvements.

View file

@ -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.66</a>
<a href="https://github.com/rogerfar/rdt-client" target="_blank" class="navbar-item">Version 2.0.67</a>
</div>
</div>
</div>

View file

@ -1,6 +1,6 @@
{
"name": "rdt-client",
"version": "2.0.66",
"version": "2.0.67",
"description": "This is a web interface to manage your torrents on Real-Debrid.",
"main": "index.js",
"dependencies": {

View file

@ -47,7 +47,10 @@ public class SymlinkDownloader(String uri, String destinationPath, String path)
Speed = 0
});
var potentialFilePaths = new List<String>();
var potentialFilePaths = new List<String>
{
Path.Combine(rcloneMountPath, fileName)
};
var directoryInfo = new DirectoryInfo(searchPath);
while (directoryInfo.Parent != null)
@ -73,7 +76,7 @@ public class SymlinkDownloader(String uri, String destinationPath, String path)
Speed = 1
});
_logger.Debug($"Searching {Settings.Get.DownloadClient.RcloneMountPath} for {fileName} (attempt #{retryCount})...");
_logger.Debug($"Searching {rcloneMountPath} for {fileName} (attempt #{retryCount})...");
foreach (var potentialFilePath in potentialFilePaths)
{

View file

@ -4,7 +4,7 @@
<TargetFramework>net8.0</TargetFramework>
<OutputType>Exe</OutputType>
<UserSecretsId>94c24cba-f03f-4453-a671-3640b517c573</UserSecretsId>
<Version>2.0.66</Version>
<Version>2.0.67</Version>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<LangVersion>latest</LangVersion>