Fixed bug where downloads weren't starting properly.

Bump to 1.8.2.
This commit is contained in:
Roger Far 2021-08-02 13:37:22 -06:00
parent 06b4422ab8
commit 7931568803
7 changed files with 13 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).
## [1.8.2] - 2021-08-02
### Changed
- Fixed issue with starting downloads.
## [1.8.1] - 2021-07-31
### Changed
- Fixed issue where downloads were hanging the full interface.

View file

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

View file

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

View file

@ -46,7 +46,7 @@ namespace RdtClient.Service.Services
Torrents.TorrentResetLock.Release();
}
await Task.Delay(TimeSpan.FromSeconds(2), stoppingToken);
await Task.Delay(TimeSpan.FromSeconds(1), stoppingToken);
}
_logger.LogInformation("TaskRunner stopped.");

View file

@ -354,6 +354,8 @@ namespace RdtClient.Service.Services
// The files are selected but there are no downloads yet, check if Real-Debrid has generated links yet.
if (torrent.Downloads.Count == 0 && torrent.FilesSelected != null)
{
Log.Debug($"Torrent {torrent.RdId} checking for links");
await _torrents.CheckForLinks(torrent.TorrentId);
}

View file

@ -171,7 +171,9 @@ namespace RdtClient.Service.Services
var rdTorrent = await GetRdNetClient().Torrents.GetInfoAsync(torrent.RdId);
// Sometimes RD will give you 1 rar with all files, sometimes it will give you 1 link per file.
if (torrent.Files.Count != rdTorrent.Links.Count && rdTorrent.Links.Count != 1)
if (torrent.Files.Count(m => m.Selected) != rdTorrent.Links.Count &&
torrent.ManualFiles.Count != rdTorrent.Links.Count &&
rdTorrent.Links.Count != 1)
{
return;
}

View file

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