Fixed bug where the download and unpack handlers were not properly dispatched.
This commit is contained in:
parent
a121593829
commit
05e565ff1f
5 changed files with 9 additions and 3 deletions
|
|
@ -14,7 +14,7 @@ export class DownloadStatusPipe implements PipeTransform {
|
|||
}
|
||||
|
||||
if (value.error) {
|
||||
return `Error`;
|
||||
return value.error;
|
||||
}
|
||||
|
||||
if (value.completed != null) {
|
||||
|
|
|
|||
|
|
@ -199,6 +199,10 @@
|
|||
<ng-container *ngIf="download.link">
|
||||
{{ download.link | decodeURI }}
|
||||
</ng-container>
|
||||
|
||||
<ng-container *ngIf="!download.link">
|
||||
{{ download.path }}
|
||||
</ng-container>
|
||||
</td>
|
||||
<td>
|
||||
{{ download.bytesTotal | filesize }}
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@ namespace RdtClient.Service.Services
|
|||
|
||||
var uri = new Uri(_download.Link);
|
||||
|
||||
await Task.Run(async delegate
|
||||
Task.Run(async delegate
|
||||
{
|
||||
switch (settings.DownloadClient)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -225,6 +225,8 @@ namespace RdtClient.Service.Services
|
|||
await _downloads.UpdateCompleted(download.DownloadId, DateTimeOffset.UtcNow);
|
||||
download.Error = ex.Message;
|
||||
download.Completed = DateTimeOffset.UtcNow;
|
||||
|
||||
Log.Information($"Cannot unrestrict: {ex.Message}");
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ namespace RdtClient.Service.Services
|
|||
throw new Exception("Invalid download path");
|
||||
}
|
||||
|
||||
await Task.Run(async delegate
|
||||
Task.Run(async delegate
|
||||
{
|
||||
if (!_cancelled)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue