diff --git a/CHANGELOG.md b/CHANGELOG.md index 2e51397..5841d62 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.45] - 2023-11-15 +### Changed +- Optimizations to the internal downloader. + ## [2.0.44] - 2023-11-15 ### Changed - Revert broken upgrade. diff --git a/client/src/app/navbar/navbar.component.html b/client/src/app/navbar/navbar.component.html index f99ca9e..f300e1f 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.44 + Version 2.0.45 diff --git a/package.json b/package.json index 73486d5..af1334a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "rdt-client", - "version": "2.0.44", + "version": "2.0.45", "description": "This is a web interface to manage your torrents on Real-Debrid.", "main": "index.js", "dependencies": { diff --git a/server/RdtClient.Service/RdtClient.Service.csproj b/server/RdtClient.Service/RdtClient.Service.csproj index 153a691..a580244 100644 --- a/server/RdtClient.Service/RdtClient.Service.csproj +++ b/server/RdtClient.Service/RdtClient.Service.csproj @@ -11,7 +11,7 @@ - + diff --git a/server/RdtClient.Service/Services/Downloaders/InternalDownloader.cs b/server/RdtClient.Service/Services/Downloaders/InternalDownloader.cs index 79ebdf7..2699efb 100644 --- a/server/RdtClient.Service/Services/Downloaders/InternalDownloader.cs +++ b/server/RdtClient.Service/Services/Downloaders/InternalDownloader.cs @@ -31,7 +31,7 @@ public class InternalDownloader : IDownloader SetSettings(); - _downloadService = new Downloader(_uri, _filePath, _downloadConfiguration, _cancellationToken.Token); + _downloadService = new Downloader(_uri, _filePath, _downloadConfiguration); _downloadService.OnProgress += args => { @@ -49,7 +49,7 @@ public class InternalDownloader : IDownloader }); }; - _downloadService.OnComplete += error => + _downloadService.OnComplete += (_, error) => { DownloadComplete?.Invoke(this, new DownloadCompleteEventArgs @@ -67,7 +67,7 @@ public class InternalDownloader : IDownloader { _logger.Debug($"Starting download of {_uri}, writing to path: {_filePath}"); - Task.Run(_downloadService.Download); + _downloadService.Download(_cancellationToken.Token); Task.Run(StartTimer); return Task.FromResult(null); @@ -117,7 +117,7 @@ public class InternalDownloader : IDownloader settingDownloadTimeout = 1000; } - _downloadConfiguration.ChunkCount = settingDownloadParallelCount; + _downloadConfiguration.Parallel = settingDownloadParallelCount; _downloadConfiguration.MaximumBytesPerSecond = settingDownloadMaxSpeed; _downloadConfiguration.Timeout = settingDownloadTimeout; } diff --git a/server/RdtClient.Web/RdtClient.Web.csproj b/server/RdtClient.Web/RdtClient.Web.csproj index 1159e2c..eaa2c3d 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.44 + 2.0.45 enable enable latest