diff --git a/CHANGELOG.md b/CHANGELOG.md
index a951796..bc85b6b 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.6] - 2022-02-06
+### Added
+- Added setting to automatically delete torrents in the state of error after a certain amount of time.
+
## [2.0.5] - 2022-01-11
### Changed
- Updated AllDebrid provider to fix issue with ID's not being a number.
diff --git a/client/src/app/add-new-torrent/add-new-torrent.component.html b/client/src/app/add-new-torrent/add-new-torrent.component.html
index 3aa11b2..a61dbab 100644
--- a/client/src/app/add-new-torrent/add-new-torrent.component.html
+++ b/client/src/app/add-new-torrent/add-new-torrent.component.html
@@ -128,6 +128,16 @@
error it will retry the full torrent this many times before marking it failed.
+
+
+
+
+
+
+ When a download has been in error for this many minutes, delete it from the provider and the client. 0 to
+ disable.
+
+
diff --git a/client/src/app/add-new-torrent/add-new-torrent.component.ts b/client/src/app/add-new-torrent/add-new-torrent.component.ts
index e9daf86..ec3fda9 100644
--- a/client/src/app/add-new-torrent/add-new-torrent.component.ts
+++ b/client/src/app/add-new-torrent/add-new-torrent.component.ts
@@ -26,6 +26,7 @@ export class AddNewTorrentComponent implements OnInit {
public downloadRetryAttempts: number = 3;
public torrentRetryAttempts: number = 1;
+ public torrentDeleteOnError: number = 0;
public availableFiles: TorrentFileAvailability[];
public downloadFiles: { [key: string]: boolean } = {};
@@ -36,9 +37,13 @@ export class AddNewTorrentComponent implements OnInit {
private selectedFile: File;
- constructor(private router: Router, private torrentService: TorrentService, private settingsService: SettingsService) {
- this.settingsService.get().subscribe(settings => {
- this.provider = settings.firstOrDefault(m => m.settingId === 'Provider')?.value;
+ constructor(
+ private router: Router,
+ private torrentService: TorrentService,
+ private settingsService: SettingsService
+ ) {
+ this.settingsService.get().subscribe((settings) => {
+ this.provider = settings.firstOrDefault((m) => m.settingId === 'Provider')?.value;
});
}
@@ -110,6 +115,7 @@ export class AddNewTorrentComponent implements OnInit {
torrent.priority = this.priority;
torrent.torrentRetryAttempts = this.torrentRetryAttempts;
torrent.downloadRetryAttempts = this.downloadRetryAttempts;
+ torrent.deleteOnError = this.torrentDeleteOnError;
if (this.magnetLink) {
this.torrentService.uploadMagnet(this.magnetLink, torrent).subscribe(
diff --git a/client/src/app/models/torrent.model.ts b/client/src/app/models/torrent.model.ts
index 09eb2fe..23f5996 100644
--- a/client/src/app/models/torrent.model.ts
+++ b/client/src/app/models/torrent.model.ts
@@ -19,6 +19,7 @@ export class Torrent {
public retryCount: number;
public downloadRetryAttempts: number;
public torrentRetryAttempts: number;
+ public deleteOnError: number;
public priority: number;
public error: string;
diff --git a/client/src/app/settings/settings.component.html b/client/src/app/settings/settings.component.html
index c5be409..ea39b32 100644
--- a/client/src/app/settings/settings.component.html
+++ b/client/src/app/settings/settings.component.html
@@ -122,6 +122,14 @@
Maximum amount of downloads that get unpacked on your host at the same time.
+
+
+
+
+
+
+
Maximum amount of downloads that get unpacked on your host at the same time.
+
@@ -189,7 +197,7 @@
-
+
This is the URL to your Aria2c instance. It must end in /jsonrpc. A common URL is
@@ -200,7 +208,7 @@
-
+
The secret of your Aria2c instance. Optional.
@@ -264,7 +272,7 @@
-
+
When a single download fails it will retry it this many times before marking it as failed.
@@ -272,13 +280,23 @@
-
+
When a single download has failed multiple times (see setting above) or when the torrent itself received an error
it will retry the full torrent this many times before marking it failed.
+
+
+
+
+
+
+
+ When a download has been in error for this many minutes, delete it from the provider and the client. 0 to disable.
+