+
+
+
+
+
+
The category becomes a sub-folder in your main download path.
+
diff --git a/client/src/app/torrent/torrent.component.ts b/client/src/app/torrent/torrent.component.ts
index 087284a..a7fcb83 100644
--- a/client/src/app/torrent/torrent.component.ts
+++ b/client/src/app/torrent/torrent.component.ts
@@ -35,6 +35,8 @@ export class TorrentComponent implements OnInit {
public downloadRetryId: string;
public isUpdateSettingsModalActive: boolean;
+
+ public updateSettingsCategory: string;
public updateSettingsPriority: number;
public updateSettingsDownloadRetryAttempts: number;
public updateSettingsTorrentRetryAttempts: number;
@@ -174,6 +176,7 @@ export class TorrentComponent implements OnInit {
}
public showUpdateSettingsModal(): void {
+ this.updateSettingsCategory = this.torrent.category;
this.updateSettingsPriority = this.torrent.priority;
this.updateSettingsDownloadRetryAttempts = this.torrent.downloadRetryAttempts;
this.updateSettingsTorrentRetryAttempts = this.torrent.torrentRetryAttempts;
@@ -190,6 +193,7 @@ export class TorrentComponent implements OnInit {
public updateSettingsOk(): void {
this.updating = true;
+ this.torrent.category = this.updateSettingsCategory;
this.torrent.priority = this.updateSettingsPriority;
this.torrent.downloadRetryAttempts = this.updateSettingsDownloadRetryAttempts;
this.torrent.torrentRetryAttempts = this.updateSettingsTorrentRetryAttempts;
diff --git a/server/RdtClient.Data/Data/TorrentData.cs b/server/RdtClient.Data/Data/TorrentData.cs
index 8330eee..d28beb0 100644
--- a/server/RdtClient.Data/Data/TorrentData.cs
+++ b/server/RdtClient.Data/Data/TorrentData.cs
@@ -146,6 +146,7 @@ public class TorrentData
return;
}
+ dbTorrent.Category = torrent.Category;
dbTorrent.Priority = torrent.Priority;
dbTorrent.DownloadRetryAttempts = torrent.DownloadRetryAttempts;
dbTorrent.TorrentRetryAttempts = torrent.TorrentRetryAttempts;