From ba243d3e837a435c2e5151bcfe0a02dacc3d6c9b Mon Sep 17 00:00:00 2001 From: Roger Far Date: Fri, 5 Jan 2024 09:59:54 -0700 Subject: [PATCH] Set the general downloadclient when adding torrents through *rr, watchfolder. --- client/src/app/add-new-torrent/add-new-torrent.component.html | 2 +- client/src/app/add-new-torrent/add-new-torrent.component.ts | 1 + client/src/app/models/torrent.model.ts | 1 + client/src/app/torrent-table/torrent-table.component.html | 4 ++++ .../BackgroundServices/WatchFolderChecker.cs | 1 + server/RdtClient.Service/Services/QBittorrent.cs | 2 ++ server/RdtClient.Service/Services/Torrents.cs | 1 + 7 files changed, 11 insertions(+), 1 deletion(-) 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 99bb7b4..42e16a4 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 @@ -45,7 +45,7 @@
- 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 2087720..3aaad21 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 @@ -146,6 +146,7 @@ export class AddNewTorrentComponent implements OnInit { torrent.downloadRetryAttempts = this.downloadRetryAttempts; torrent.deleteOnError = this.torrentDeleteOnError; torrent.lifetime = this.torrentLifetime; + torrent.downloadClient = this.downloadClient; 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 4e1bd07..681343d 100644 --- a/client/src/app/models/torrent.model.ts +++ b/client/src/app/models/torrent.model.ts @@ -4,6 +4,7 @@ export class Torrent { public torrentId: string; public hash: string; public category: string; + public downloadClient: number; public hostDownloadAction: number; public downloadAction: number; public finishedAction: number; diff --git a/client/src/app/torrent-table/torrent-table.component.html b/client/src/app/torrent-table/torrent-table.component.html index 65459b9..3e04bad 100644 --- a/client/src/app/torrent-table/torrent-table.component.html +++ b/client/src/app/torrent-table/torrent-table.component.html @@ -137,6 +137,10 @@