Upgrade packages.
This commit is contained in:
parent
ffecb8507a
commit
0f0fc91b64
14 changed files with 819 additions and 549 deletions
|
|
@ -4,6 +4,9 @@ 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.8] - 2022-03-12
|
||||
- Updated packages, added logging to the RD and AD providers when serialization fails.
|
||||
|
||||
## [2.0.8] - 2022-02-28
|
||||
- Fixed issue with AllDebrid sometimes returning NULL links.
|
||||
|
||||
|
|
|
|||
1263
client/package-lock.json
generated
1263
client/package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
|
@ -10,33 +10,33 @@
|
|||
},
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"@angular/animations": "~13.2.1",
|
||||
"@angular/cdk": "^13.2.1",
|
||||
"@angular/common": "~13.2.1",
|
||||
"@angular/compiler": "~13.2.1",
|
||||
"@angular/core": "~13.2.1",
|
||||
"@angular/animations": "~13.2.6",
|
||||
"@angular/cdk": "^13.2.6",
|
||||
"@angular/common": "~13.2.6",
|
||||
"@angular/compiler": "~13.2.6",
|
||||
"@angular/core": "~13.2.6",
|
||||
"@angular/flex-layout": "^13.0.0-beta.38",
|
||||
"@angular/forms": "~13.2.1",
|
||||
"@angular/platform-browser": "~13.2.1",
|
||||
"@angular/platform-browser-dynamic": "~13.2.1",
|
||||
"@angular/router": "~13.2.1",
|
||||
"@fortawesome/fontawesome-free": "^5.15.4",
|
||||
"@microsoft/signalr": "^6.0.1",
|
||||
"@angular/forms": "~13.2.6",
|
||||
"@angular/platform-browser": "~13.2.6",
|
||||
"@angular/platform-browser-dynamic": "~13.2.6",
|
||||
"@angular/router": "~13.2.6",
|
||||
"@fortawesome/fontawesome-free": "^6.0.0",
|
||||
"@microsoft/signalr": "^6.0.3",
|
||||
"bulma": "^0.9.3",
|
||||
"curray": "^1.0.8",
|
||||
"file-saver": "^2.0.5",
|
||||
"ngx-filesize": "^2.0.16",
|
||||
"rxjs": "~7.5.2",
|
||||
"rxjs": "~7.5.5",
|
||||
"tslib": "^2.3.1",
|
||||
"zone.js": "~0.11.4"
|
||||
"zone.js": "~0.11.5"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@angular-devkit/build-angular": "~13.2.2",
|
||||
"@angular/cli": "~13.2.2",
|
||||
"@angular/compiler-cli": "~13.2.1",
|
||||
"@angular/language-service": "~13.2.1",
|
||||
"@angular-devkit/build-angular": "~13.2.6",
|
||||
"@angular/cli": "~13.2.6",
|
||||
"@angular/compiler-cli": "~13.2.6",
|
||||
"@angular/language-service": "~13.2.6",
|
||||
"@types/file-saver": "^2.0.5",
|
||||
"@types/node": "^17.0.15",
|
||||
"typescript": "~4.5.5"
|
||||
"@types/node": "^17.0.21",
|
||||
"typescript": "~4.6.2"
|
||||
}
|
||||
}
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "rdt-client",
|
||||
"version": "2.0.8",
|
||||
"version": "2.0.9",
|
||||
"description": "This is a web interface to manage your torrents on Real-Debrid.",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
|
|
|
|||
|
|
@ -5,11 +5,11 @@
|
|||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="6.0.1" />
|
||||
<PackageReference Include="Microsoft.Data.Sqlite" Version="6.0.1" />
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="6.0.1" />
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite.Core" Version="6.0.1" />
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="6.0.1">
|
||||
<PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="6.0.3" />
|
||||
<PackageReference Include="Microsoft.Data.Sqlite" Version="6.0.3" />
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="6.0.3" />
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite.Core" Version="6.0.3" />
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="6.0.3">
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
</PackageReference>
|
||||
|
|
|
|||
|
|
@ -6,13 +6,13 @@
|
|||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="AllDebrid.NET" Version="1.0.5" />
|
||||
<PackageReference Include="AllDebrid.NET" Version="1.0.6" />
|
||||
<PackageReference Include="Aria2.NET" Version="1.0.4" />
|
||||
<PackageReference Include="Downloader" Version="2.3.2" />
|
||||
<PackageReference Include="Downloader" Version="2.3.3" />
|
||||
<PackageReference Include="MonoTorrent" Version="2.0.4" />
|
||||
<PackageReference Include="RD.NET" Version="2.1.0" />
|
||||
<PackageReference Include="RD.NET" Version="2.1.1" />
|
||||
<PackageReference Include="Serilog" Version="2.10.0" />
|
||||
<PackageReference Include="Serilog.Exceptions" Version="8.0.0" />
|
||||
<PackageReference Include="Serilog.Exceptions" Version="8.1.0" />
|
||||
<PackageReference Include="Serilog.Sinks.File" Version="5.0.0" />
|
||||
<PackageReference Include="SharpCompress" Version="0.30.1" />
|
||||
</ItemGroup>
|
||||
|
|
|
|||
|
|
@ -98,7 +98,7 @@ namespace RdtClient.Service.Services.Downloaders
|
|||
{
|
||||
using var innerCts = new CancellationTokenSource(1000);
|
||||
var buffer = new Byte[BufferSize * 8];
|
||||
readSize = await destinationStream.ReadAsync(buffer, 0, buffer.Length, innerCts.Token).ConfigureAwait(false);
|
||||
readSize = await destinationStream.ReadAsync(buffer.AsMemory(0, buffer.Length), innerCts.Token).ConfigureAwait(false);
|
||||
|
||||
await fileStream.WriteAsync(buffer.AsMemory(0, readSize), innerCts.Token);
|
||||
|
||||
|
|
|
|||
|
|
@ -88,7 +88,7 @@ namespace RdtClient.Service.Services
|
|||
{
|
||||
_baseStream.SetLength(value);
|
||||
}
|
||||
|
||||
|
||||
/// <inheritdoc />
|
||||
public override Int32 Read(Byte[] buffer, Int32 offset, Int32 count)
|
||||
{
|
||||
|
|
@ -104,7 +104,7 @@ namespace RdtClient.Service.Services
|
|||
{
|
||||
await Throttle(count).ConfigureAwait(false);
|
||||
|
||||
return await _baseStream.ReadAsync(buffer, offset, count, cancellationToken).ConfigureAwait(false);
|
||||
return await _baseStream.ReadAsync(buffer.AsMemory(offset, count), cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
|
|
@ -118,7 +118,7 @@ namespace RdtClient.Service.Services
|
|||
public override async Task WriteAsync(Byte[] buffer, Int32 offset, Int32 count, CancellationToken cancellationToken)
|
||||
{
|
||||
await Throttle(count).ConfigureAwait(false);
|
||||
await _baseStream.WriteAsync(buffer, offset, count, cancellationToken).ConfigureAwait(false);
|
||||
await _baseStream.WriteAsync(buffer.AsMemory(offset, count), cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
private async Task Throttle(Int32 transmissionVolume)
|
||||
|
|
@ -132,7 +132,7 @@ namespace RdtClient.Service.Services
|
|||
}
|
||||
}
|
||||
|
||||
private async Task Sleep(Int32 time)
|
||||
private static async Task Sleep(Int32 time)
|
||||
{
|
||||
if (time > 0)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -117,7 +117,7 @@ namespace RdtClient.Service.Services
|
|||
var sw = new Stopwatch();
|
||||
sw.Start();
|
||||
|
||||
if (ActiveDownloadClients.Count > 0 || ActiveUnpackClients.Count > 0)
|
||||
if (!ActiveDownloadClients.IsEmpty || !ActiveUnpackClients.IsEmpty)
|
||||
{
|
||||
Log($"TorrentRunner Tick Start, {ActiveDownloadClients.Count} active downloads, {ActiveUnpackClients.Count} active unpacks");
|
||||
}
|
||||
|
|
@ -373,7 +373,7 @@ namespace RdtClient.Service.Services
|
|||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
_logger.LogError(ex, $"Cannot unrestrict link: {ex.Message}");
|
||||
_logger.LogError(ex, "Cannot unrestrict link: {ex.Message}", ex.Message);
|
||||
|
||||
await _downloads.UpdateError(download.DownloadId, ex.Message);
|
||||
await _downloads.UpdateCompleted(download.DownloadId, DateTimeOffset.UtcNow);
|
||||
|
|
@ -582,7 +582,7 @@ namespace RdtClient.Service.Services
|
|||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
_logger.LogError(ex.Message, $"Torrent processing result in an unexpected exception: {ex.Message}");
|
||||
_logger.LogError(ex.Message, "Torrent processing result in an unexpected exception: {Message}", ex.Message);
|
||||
await _torrents.UpdateComplete(torrent.TorrentId, ex.Message, DateTimeOffset.UtcNow, true);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -110,7 +110,7 @@ namespace RdtClient.Service.Services
|
|||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
_logger.LogError(ex, $"{ex.Message}, trying to parse {magnetLink}");
|
||||
_logger.LogError(ex, "{ex.Message}, trying to parse {magnetLink}", ex.Message, magnetLink);
|
||||
throw new Exception($"{ex.Message}, trying to parse {magnetLink}");
|
||||
}
|
||||
|
||||
|
|
@ -647,7 +647,7 @@ namespace RdtClient.Service.Services
|
|||
await _torrentData.UpdateRdData(torrent);
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
catch
|
||||
{
|
||||
// ignored
|
||||
}
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ namespace RdtClient.Service.Services
|
|||
|
||||
CurrentVersion = $"v{version[..version.LastIndexOf(".", StringComparison.Ordinal)]}";
|
||||
|
||||
_logger.LogInformation($"UpdateChecker started, currently on version {CurrentVersion}.");
|
||||
_logger.LogInformation("UpdateChecker started, currently on version {CurrentVersion}.", CurrentVersion);
|
||||
|
||||
while (!stoppingToken.IsCancellationRequested)
|
||||
{
|
||||
|
|
@ -58,7 +58,7 @@ namespace RdtClient.Service.Services
|
|||
|
||||
if (latestRelease != CurrentVersion)
|
||||
{
|
||||
_logger.LogInformation($"New version found on GitHub: {latestRelease}");
|
||||
_logger.LogInformation("New version found on GitHub: {latestRelease}", latestRelease);
|
||||
}
|
||||
|
||||
LatestVersion = latestRelease;
|
||||
|
|
|
|||
|
|
@ -109,7 +109,7 @@ namespace RdtClient.Web
|
|||
|
||||
return Host.CreateDefaultBuilder(args)
|
||||
.UseWindowsService()
|
||||
.ConfigureServices((hostContext, services) =>
|
||||
.ConfigureServices((_, services) =>
|
||||
{
|
||||
services.AddHostedService<TaskRunner>();
|
||||
services.AddHostedService<UpdateChecker>();
|
||||
|
|
@ -117,10 +117,10 @@ namespace RdtClient.Web
|
|||
.ConfigureWebHostDefaults(webBuilder =>
|
||||
{
|
||||
webBuilder.UseUrls(appSettings.HostUrl)
|
||||
.UseSerilog()
|
||||
.UseKestrel()
|
||||
.UseStartup<Startup>();
|
||||
});
|
||||
})
|
||||
.UseSerilog();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -26,17 +26,17 @@
|
|||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.AspNetCore.SpaServices.Extensions" Version="6.0.1" />
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="6.0.1" />
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite.Core" Version="6.0.1" />
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="6.0.1">
|
||||
<PackageReference Include="Microsoft.AspNetCore.SpaServices.Extensions" Version="6.0.3" />
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="6.0.3" />
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite.Core" Version="6.0.3" />
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="6.0.3">
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
</PackageReference>
|
||||
<PackageReference Include="Microsoft.Extensions.Hosting.WindowsServices" Version="6.0.0" />
|
||||
<PackageReference Include="Microsoft.Extensions.Identity.Core" Version="6.0.1" />
|
||||
<PackageReference Include="Microsoft.Extensions.Identity.Core" Version="6.0.3" />
|
||||
<PackageReference Include="Serilog" Version="2.10.0" />
|
||||
<PackageReference Include="Serilog.AspNetCore" Version="4.1.0" />
|
||||
<PackageReference Include="Serilog.AspNetCore" Version="5.0.0" />
|
||||
<PackageReference Include="Serilog.Sinks.File" Version="5.0.0" />
|
||||
</ItemGroup>
|
||||
|
||||
|
|
|
|||
|
|
@ -107,7 +107,7 @@ namespace RdtClient.Web
|
|||
|
||||
if (context.Response.StatusCode != 200)
|
||||
{
|
||||
logger.LogWarning($"{context.Response.StatusCode}: {context.Request.Path.Value}");
|
||||
logger.LogWarning("{StatusCode}: {Value}", context.Response.StatusCode, context.Request.Path.Value);
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue