Set the general downloadclient when adding torrents through *rr, watchfolder.

This commit is contained in:
Roger Far 2024-01-05 09:59:54 -07:00
parent 2cea7ed292
commit ba243d3e83
7 changed files with 11 additions and 1 deletions

View file

@ -45,7 +45,7 @@
<div class="field">
<label class="label">Downloader</label>
<div class="control select is-fullwidth">
<select [(ngModel)]="downloadClient" (ngModelChange)="setFinishAction()">
<select [(ngModel)]="downloadClient" (ngModelChange)="setFinishAction() ">
<option [ngValue]="0">Internal Downloader</option>
<option [ngValue]="1">Aria2c</option>
<option [ngValue]="2">Symlink Downloader</option>

View file

@ -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(

View file

@ -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;

View file

@ -137,6 +137,10 @@
</header>
<section class="modal-card-body">
<p>Are you sure you want to retry these torrent?</p>
<p>
This action will delete all the torrent data + all local downloads. Then it will re-add the original magnet link
or torrent file to the debrid provider.
</p>
<div class="notification is-danger is-light" *ngIf="retryError?.length > 0">
Error retrying torrent: {{ retryError }}
</div>

View file

@ -88,6 +88,7 @@ public class WatchFolderChecker : BackgroundService
var torrent = new Torrent
{
DownloadClient = Settings.Get.DownloadClient.Client,
Category = Settings.Get.Watch.Default.Category,
HostDownloadAction = Settings.Get.Watch.Default.HostDownloadAction,
DownloadAction = Settings.Get.Watch.Default.OnlyDownloadAvailableFiles

View file

@ -456,6 +456,7 @@ public class QBittorrent
var torrent = new Torrent
{
Category = category,
DownloadClient = Settings.Get.DownloadClient.Client,
HostDownloadAction = Settings.Get.Integrations.Default.HostDownloadAction,
DownloadAction = Settings.Get.Integrations.Default.OnlyDownloadAvailableFiles ? TorrentDownloadAction.DownloadAvailableFiles : TorrentDownloadAction.DownloadAll,
FinishedAction = TorrentFinishedAction.None,
@ -477,6 +478,7 @@ public class QBittorrent
var torrent = new Torrent
{
Category = category,
DownloadClient = Settings.Get.DownloadClient.Client,
HostDownloadAction = Settings.Get.Integrations.Default.HostDownloadAction,
DownloadAction = Settings.Get.Integrations.Default.OnlyDownloadAvailableFiles ? TorrentDownloadAction.DownloadAvailableFiles : TorrentDownloadAction.DownloadAll,
FinishedAction = TorrentFinishedAction.None,

View file

@ -405,6 +405,7 @@ public class Torrents
var newTorrent = new Torrent
{
Category = Settings.Get.Provider.Default.Category,
DownloadClient = Settings.Get.DownloadClient.Client,
DownloadAction = Settings.Get.Provider.Default.OnlyDownloadAvailableFiles ? TorrentDownloadAction.DownloadAvailableFiles : TorrentDownloadAction.DownloadAll,
FinishedAction = Settings.Get.Provider.Default.FinishedAction,
DownloadMinSize = Settings.Get.Provider.Default.MinFileSize,