diff --git a/CHANGELOG.md b/CHANGELOG.md
index bc85b6b..a48e106 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [2.0.6] - 2022-02-06
### Added
- Added setting to automatically delete torrents in the state of error after a certain amount of time.
+- Added lifetime setting to automatically expire torrents after a certain amount of time.
## [2.0.5] - 2022-01-11
### Changed
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 a61dbab..92b975d 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
@@ -131,13 +131,23 @@
-
+
When a download has been in error for this many minutes, delete it from the provider and the client. 0 to
disable.
+
+
+
+
+
+
+ The maximum lifetime of a torrent in minutes. When this time has passed, mark the torrent as error. If the torrent
+ is completed and has downloads, the lifetime setting will not apply. 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 ec3fda9..7050b12 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
@@ -27,6 +27,7 @@ export class AddNewTorrentComponent implements OnInit {
public downloadRetryAttempts: number = 3;
public torrentRetryAttempts: number = 1;
public torrentDeleteOnError: number = 0;
+ public torrentLifetime: number = 0;
public availableFiles: TorrentFileAvailability[];
public downloadFiles: { [key: string]: boolean } = {};
diff --git a/client/src/app/models/torrent.model.ts b/client/src/app/models/torrent.model.ts
index 23f5996..1ce98b0 100644
--- a/client/src/app/models/torrent.model.ts
+++ b/client/src/app/models/torrent.model.ts
@@ -20,6 +20,7 @@ export class Torrent {
public downloadRetryAttempts: number;
public torrentRetryAttempts: number;
public deleteOnError: number;
+ public lifetime: 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 ea39b32..21f7eb0 100644
--- a/client/src/app/settings/settings.component.html
+++ b/client/src/app/settings/settings.component.html
@@ -291,12 +291,23 @@
-
+
When a download has been in error for this many minutes, delete it from the provider and the client. 0 to disable.
+
+
+
+
+
+
+
+ The maximum lifetime of a torrent in minutes. When this time has passed, mark the torrent as error. If the torrent
+ is completed and has downloads, the lifetime setting will not apply. 0 to disable.
+
+ The maximum lifetime of a torrent in minutes. When this time has passed, mark the torrent as error. If the
+ torrent is completed and has downloads, the lifetime setting will not apply. 0 to disable.
+