Set the general downloadclient when adding torrents through *rr, watchfolder.
This commit is contained in:
parent
2cea7ed292
commit
ba243d3e83
7 changed files with 11 additions and 1 deletions
|
|
@ -45,7 +45,7 @@
|
||||||
<div class="field">
|
<div class="field">
|
||||||
<label class="label">Downloader</label>
|
<label class="label">Downloader</label>
|
||||||
<div class="control select is-fullwidth">
|
<div class="control select is-fullwidth">
|
||||||
<select [(ngModel)]="downloadClient" (ngModelChange)="setFinishAction()">
|
<select [(ngModel)]="downloadClient" (ngModelChange)="setFinishAction() ">
|
||||||
<option [ngValue]="0">Internal Downloader</option>
|
<option [ngValue]="0">Internal Downloader</option>
|
||||||
<option [ngValue]="1">Aria2c</option>
|
<option [ngValue]="1">Aria2c</option>
|
||||||
<option [ngValue]="2">Symlink Downloader</option>
|
<option [ngValue]="2">Symlink Downloader</option>
|
||||||
|
|
|
||||||
|
|
@ -146,6 +146,7 @@ export class AddNewTorrentComponent implements OnInit {
|
||||||
torrent.downloadRetryAttempts = this.downloadRetryAttempts;
|
torrent.downloadRetryAttempts = this.downloadRetryAttempts;
|
||||||
torrent.deleteOnError = this.torrentDeleteOnError;
|
torrent.deleteOnError = this.torrentDeleteOnError;
|
||||||
torrent.lifetime = this.torrentLifetime;
|
torrent.lifetime = this.torrentLifetime;
|
||||||
|
torrent.downloadClient = this.downloadClient;
|
||||||
|
|
||||||
if (this.magnetLink) {
|
if (this.magnetLink) {
|
||||||
this.torrentService.uploadMagnet(this.magnetLink, torrent).subscribe(
|
this.torrentService.uploadMagnet(this.magnetLink, torrent).subscribe(
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,7 @@ export class Torrent {
|
||||||
public torrentId: string;
|
public torrentId: string;
|
||||||
public hash: string;
|
public hash: string;
|
||||||
public category: string;
|
public category: string;
|
||||||
|
public downloadClient: number;
|
||||||
public hostDownloadAction: number;
|
public hostDownloadAction: number;
|
||||||
public downloadAction: number;
|
public downloadAction: number;
|
||||||
public finishedAction: number;
|
public finishedAction: number;
|
||||||
|
|
|
||||||
|
|
@ -137,6 +137,10 @@
|
||||||
</header>
|
</header>
|
||||||
<section class="modal-card-body">
|
<section class="modal-card-body">
|
||||||
<p>Are you sure you want to retry these torrent?</p>
|
<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">
|
<div class="notification is-danger is-light" *ngIf="retryError?.length > 0">
|
||||||
Error retrying torrent: {{ retryError }}
|
Error retrying torrent: {{ retryError }}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -88,6 +88,7 @@ public class WatchFolderChecker : BackgroundService
|
||||||
|
|
||||||
var torrent = new Torrent
|
var torrent = new Torrent
|
||||||
{
|
{
|
||||||
|
DownloadClient = Settings.Get.DownloadClient.Client,
|
||||||
Category = Settings.Get.Watch.Default.Category,
|
Category = Settings.Get.Watch.Default.Category,
|
||||||
HostDownloadAction = Settings.Get.Watch.Default.HostDownloadAction,
|
HostDownloadAction = Settings.Get.Watch.Default.HostDownloadAction,
|
||||||
DownloadAction = Settings.Get.Watch.Default.OnlyDownloadAvailableFiles
|
DownloadAction = Settings.Get.Watch.Default.OnlyDownloadAvailableFiles
|
||||||
|
|
|
||||||
|
|
@ -456,6 +456,7 @@ public class QBittorrent
|
||||||
var torrent = new Torrent
|
var torrent = new Torrent
|
||||||
{
|
{
|
||||||
Category = category,
|
Category = category,
|
||||||
|
DownloadClient = Settings.Get.DownloadClient.Client,
|
||||||
HostDownloadAction = Settings.Get.Integrations.Default.HostDownloadAction,
|
HostDownloadAction = Settings.Get.Integrations.Default.HostDownloadAction,
|
||||||
DownloadAction = Settings.Get.Integrations.Default.OnlyDownloadAvailableFiles ? TorrentDownloadAction.DownloadAvailableFiles : TorrentDownloadAction.DownloadAll,
|
DownloadAction = Settings.Get.Integrations.Default.OnlyDownloadAvailableFiles ? TorrentDownloadAction.DownloadAvailableFiles : TorrentDownloadAction.DownloadAll,
|
||||||
FinishedAction = TorrentFinishedAction.None,
|
FinishedAction = TorrentFinishedAction.None,
|
||||||
|
|
@ -477,6 +478,7 @@ public class QBittorrent
|
||||||
var torrent = new Torrent
|
var torrent = new Torrent
|
||||||
{
|
{
|
||||||
Category = category,
|
Category = category,
|
||||||
|
DownloadClient = Settings.Get.DownloadClient.Client,
|
||||||
HostDownloadAction = Settings.Get.Integrations.Default.HostDownloadAction,
|
HostDownloadAction = Settings.Get.Integrations.Default.HostDownloadAction,
|
||||||
DownloadAction = Settings.Get.Integrations.Default.OnlyDownloadAvailableFiles ? TorrentDownloadAction.DownloadAvailableFiles : TorrentDownloadAction.DownloadAll,
|
DownloadAction = Settings.Get.Integrations.Default.OnlyDownloadAvailableFiles ? TorrentDownloadAction.DownloadAvailableFiles : TorrentDownloadAction.DownloadAll,
|
||||||
FinishedAction = TorrentFinishedAction.None,
|
FinishedAction = TorrentFinishedAction.None,
|
||||||
|
|
|
||||||
|
|
@ -405,6 +405,7 @@ public class Torrents
|
||||||
var newTorrent = new Torrent
|
var newTorrent = new Torrent
|
||||||
{
|
{
|
||||||
Category = Settings.Get.Provider.Default.Category,
|
Category = Settings.Get.Provider.Default.Category,
|
||||||
|
DownloadClient = Settings.Get.DownloadClient.Client,
|
||||||
DownloadAction = Settings.Get.Provider.Default.OnlyDownloadAvailableFiles ? TorrentDownloadAction.DownloadAvailableFiles : TorrentDownloadAction.DownloadAll,
|
DownloadAction = Settings.Get.Provider.Default.OnlyDownloadAvailableFiles ? TorrentDownloadAction.DownloadAvailableFiles : TorrentDownloadAction.DownloadAll,
|
||||||
FinishedAction = Settings.Get.Provider.Default.FinishedAction,
|
FinishedAction = Settings.Get.Provider.Default.FinishedAction,
|
||||||
DownloadMinSize = Settings.Get.Provider.Default.MinFileSize,
|
DownloadMinSize = Settings.Get.Provider.Default.MinFileSize,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue