Fixed a bug in the torrent runner where it could download the same file multiple times.

This commit is contained in:
Roger Far 2021-03-12 08:11:02 -07:00
parent 2a258dcf58
commit 8b85521839
5 changed files with 8 additions and 4 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/), 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). and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [1.6.1] - 2021-03-12
### Changed
- Fixed a bug in the torrent runner where it could download the same file multiple times.
## [1.6.0] - 2021-03-10 ## [1.6.0] - 2021-03-10
### Added ### Added
- Add an option to see which files are available on Real-Debrid on the add torrent modal. - Add an option to see which files are available on Real-Debrid on the add torrent modal.

View file

@ -49,7 +49,7 @@
<a class="navbar-item"> Profile </a> <a class="navbar-item"> Profile </a>
<a class="navbar-item" (click)="logout()"> Logout </a> <a class="navbar-item" (click)="logout()"> Logout </a>
<hr class="navbar-divider" /> <hr class="navbar-divider" />
<div class="navbar-item">Version 1.6.0</div> <div class="navbar-item">Version 1.6.1</div>
</div> </div>
</div> </div>
</div> </div>

View file

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

View file

@ -335,7 +335,7 @@ namespace RdtClient.Service.Services
} }
// RealDebrid is waiting for file selection, select which files to download. // RealDebrid is waiting for file selection, select which files to download.
if (torrent.RdStatus == RealDebridStatus.WaitingForFileSelection) if (torrent.RdStatus == RealDebridStatus.WaitingForFileSelection && torrent.Downloads.Count == 0)
{ {
Log.Debug($"Torrent {torrent.RdId} selecting files"); Log.Debug($"Torrent {torrent.RdId} selecting files");

View file

@ -4,7 +4,7 @@
<TargetFramework>net5.0</TargetFramework> <TargetFramework>net5.0</TargetFramework>
<OutputType>Exe</OutputType> <OutputType>Exe</OutputType>
<UserSecretsId>94c24cba-f03f-4453-a671-3640b517c573</UserSecretsId> <UserSecretsId>94c24cba-f03f-4453-a671-3640b517c573</UserSecretsId>
<Version>1.6.0</Version> <Version>1.6.1</Version>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>