Update internal downloader.
This commit is contained in:
parent
a176bf8891
commit
562ecef75d
6 changed files with 12 additions and 8 deletions
|
|
@ -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).
|
||||||
|
|
||||||
|
## [2.0.45] - 2023-11-15
|
||||||
|
### Changed
|
||||||
|
- Optimizations to the internal downloader.
|
||||||
|
|
||||||
## [2.0.44] - 2023-11-15
|
## [2.0.44] - 2023-11-15
|
||||||
### Changed
|
### Changed
|
||||||
- Revert broken upgrade.
|
- Revert broken upgrade.
|
||||||
|
|
|
||||||
|
|
@ -55,7 +55,7 @@
|
||||||
<a class="navbar-item" routerLink="profile"> Profile </a>
|
<a class="navbar-item" routerLink="profile"> 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" />
|
||||||
<a href="https://github.com/rogerfar/rdt-client" target="_blank" class="navbar-item">Version 2.0.44</a>
|
<a href="https://github.com/rogerfar/rdt-client" target="_blank" class="navbar-item">Version 2.0.45</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "rdt-client",
|
"name": "rdt-client",
|
||||||
"version": "2.0.44",
|
"version": "2.0.45",
|
||||||
"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": {
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@
|
||||||
<FrameworkReference Include="Microsoft.AspNetCore.App" />
|
<FrameworkReference Include="Microsoft.AspNetCore.App" />
|
||||||
<PackageReference Include="AllDebrid.NET" Version="1.0.12" />
|
<PackageReference Include="AllDebrid.NET" Version="1.0.12" />
|
||||||
<PackageReference Include="Aria2.NET" Version="1.0.5" />
|
<PackageReference Include="Aria2.NET" Version="1.0.5" />
|
||||||
<PackageReference Include="Downloader.NET" Version="1.0.5" />
|
<PackageReference Include="Downloader.NET" Version="1.0.6" />
|
||||||
<PackageReference Include="MonoTorrent" Version="2.0.7" />
|
<PackageReference Include="MonoTorrent" Version="2.0.7" />
|
||||||
<PackageReference Include="Premiumize.NET" Version="1.0.4" />
|
<PackageReference Include="Premiumize.NET" Version="1.0.4" />
|
||||||
<PackageReference Include="RD.NET" Version="2.1.4" />
|
<PackageReference Include="RD.NET" Version="2.1.4" />
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@ public class InternalDownloader : IDownloader
|
||||||
|
|
||||||
SetSettings();
|
SetSettings();
|
||||||
|
|
||||||
_downloadService = new Downloader(_uri, _filePath, _downloadConfiguration, _cancellationToken.Token);
|
_downloadService = new Downloader(_uri, _filePath, _downloadConfiguration);
|
||||||
|
|
||||||
_downloadService.OnProgress += args =>
|
_downloadService.OnProgress += args =>
|
||||||
{
|
{
|
||||||
|
|
@ -49,7 +49,7 @@ public class InternalDownloader : IDownloader
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
_downloadService.OnComplete += error =>
|
_downloadService.OnComplete += (_, error) =>
|
||||||
{
|
{
|
||||||
DownloadComplete?.Invoke(this,
|
DownloadComplete?.Invoke(this,
|
||||||
new DownloadCompleteEventArgs
|
new DownloadCompleteEventArgs
|
||||||
|
|
@ -67,7 +67,7 @@ public class InternalDownloader : IDownloader
|
||||||
{
|
{
|
||||||
_logger.Debug($"Starting download of {_uri}, writing to path: {_filePath}");
|
_logger.Debug($"Starting download of {_uri}, writing to path: {_filePath}");
|
||||||
|
|
||||||
Task.Run(_downloadService.Download);
|
_downloadService.Download(_cancellationToken.Token);
|
||||||
Task.Run(StartTimer);
|
Task.Run(StartTimer);
|
||||||
|
|
||||||
return Task.FromResult<String?>(null);
|
return Task.FromResult<String?>(null);
|
||||||
|
|
@ -117,7 +117,7 @@ public class InternalDownloader : IDownloader
|
||||||
settingDownloadTimeout = 1000;
|
settingDownloadTimeout = 1000;
|
||||||
}
|
}
|
||||||
|
|
||||||
_downloadConfiguration.ChunkCount = settingDownloadParallelCount;
|
_downloadConfiguration.Parallel = settingDownloadParallelCount;
|
||||||
_downloadConfiguration.MaximumBytesPerSecond = settingDownloadMaxSpeed;
|
_downloadConfiguration.MaximumBytesPerSecond = settingDownloadMaxSpeed;
|
||||||
_downloadConfiguration.Timeout = settingDownloadTimeout;
|
_downloadConfiguration.Timeout = settingDownloadTimeout;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
<TargetFramework>net8.0</TargetFramework>
|
<TargetFramework>net8.0</TargetFramework>
|
||||||
<OutputType>Exe</OutputType>
|
<OutputType>Exe</OutputType>
|
||||||
<UserSecretsId>94c24cba-f03f-4453-a671-3640b517c573</UserSecretsId>
|
<UserSecretsId>94c24cba-f03f-4453-a671-3640b517c573</UserSecretsId>
|
||||||
<Version>2.0.44</Version>
|
<Version>2.0.45</Version>
|
||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
<ImplicitUsings>enable</ImplicitUsings>
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
<LangVersion>latest</LangVersion>
|
<LangVersion>latest</LangVersion>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue