This commit is contained in:
parent
98c4b2ae9b
commit
ea364eefc5
5 changed files with 11 additions and 7 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.91] - 2024-12-11
|
||||||
|
### Changed
|
||||||
|
- Torbox fixes.
|
||||||
|
|
||||||
## [2.0.90] - 2024-12-06
|
## [2.0.90] - 2024-12-06
|
||||||
### Changed
|
### Changed
|
||||||
- Download individual files from Torbox instead of a zip file.
|
- Download individual files from Torbox instead of a zip file.
|
||||||
|
|
|
||||||
|
|
@ -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.90</a>
|
<a href="https://github.com/rogerfar/rdt-client" target="_blank" class="navbar-item">Version 2.0.91</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "rdt-client",
|
"name": "rdt-client",
|
||||||
"version": "2.0.90",
|
"version": "2.0.91",
|
||||||
"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": {
|
||||||
|
|
|
||||||
|
|
@ -71,10 +71,10 @@ public class TorBoxTorrentClient(ILogger<TorBoxTorrentClient> logger, IHttpClien
|
||||||
OriginalBytes = torrent.Size,
|
OriginalBytes = torrent.Size,
|
||||||
Host = torrent.DownloadPresent.ToString(),
|
Host = torrent.DownloadPresent.ToString(),
|
||||||
Split = 0,
|
Split = 0,
|
||||||
Progress = (Int64)((torrent.Progress) * 100.0),
|
Progress = (Int64)(torrent.Progress * 100.0),
|
||||||
Status = torrent.DownloadState,
|
Status = torrent.DownloadState,
|
||||||
Added = ChangeTimeZone(torrent.CreatedAt)!.Value,
|
Added = ChangeTimeZone(torrent.CreatedAt)!.Value,
|
||||||
Files = (torrent.Files ?? []).Select(m => new TorrentClientFile
|
Files = (torrent.Files).Select(m => new TorrentClientFile
|
||||||
{
|
{
|
||||||
Path = String.Join("/", m.Name.Split('/').Skip(1)),
|
Path = String.Join("/", m.Name.Split('/').Skip(1)),
|
||||||
Bytes = m.Size,
|
Bytes = m.Size,
|
||||||
|
|
@ -313,8 +313,8 @@ public class TorBoxTorrentClient(ILogger<TorBoxTorrentClient> logger, IHttpClien
|
||||||
|
|
||||||
using (HttpClient client = new())
|
using (HttpClient client = new())
|
||||||
{
|
{
|
||||||
HttpRequestMessage request = new(HttpMethod.Head, uri);
|
var request = new HttpRequestMessage(HttpMethod.Head, uri);
|
||||||
HttpResponseMessage response = await client.SendAsync(request);
|
var response = await client.SendAsync(request);
|
||||||
if (response.Content.Headers.ContentDisposition != null)
|
if (response.Content.Headers.ContentDisposition != null)
|
||||||
{
|
{
|
||||||
var fileName = response.Content.Headers.ContentDisposition.FileName;
|
var fileName = response.Content.Headers.ContentDisposition.FileName;
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
<TargetFramework>net9.0</TargetFramework>
|
<TargetFramework>net9.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.90</Version>
|
<Version>2.0.91</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