Fixed settings for the qBittorrent integration.
This commit is contained in:
parent
aac570f697
commit
3b507730e4
7 changed files with 31 additions and 24 deletions
|
|
@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
|
|||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||
|
||||
## [2.0.15] - 2022-05-15
|
||||
### Changed
|
||||
- Remove settings for Finish Action and Category for the qBittorrent integration, these should always be set to None and the category comes from the integration.
|
||||
|
||||
## [2.0.14] - 2022-05-14
|
||||
### Changed
|
||||
- Fixed Windows Service issue
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@
|
|||
<a class="navbar-item" routerLink="profile"> Profile </a>
|
||||
<a class="navbar-item" (click)="logout()"> Logout </a>
|
||||
<hr class="navbar-divider" />
|
||||
<div class="navbar-item">Version 2.0.14</div>
|
||||
<div class="navbar-item">Version 2.0.15</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "rdt-client",
|
||||
"version": "2.0.14",
|
||||
"version": "2.0.15",
|
||||
"description": "This is a web interface to manage your torrents on Real-Debrid.",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
|
|
|
|||
|
|
@ -101,7 +101,7 @@ public class SettingData
|
|||
{
|
||||
var result = new List<SettingProperty>();
|
||||
|
||||
var properties = defaultSetting.GetType().GetProperties(BindingFlags.DeclaredOnly | BindingFlags.Public | BindingFlags.Instance);
|
||||
var properties = defaultSetting.GetType().GetProperties(BindingFlags.Public | BindingFlags.Instance);
|
||||
|
||||
foreach (var property in properties)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -9,27 +9,27 @@ public class DbSettings
|
|||
{
|
||||
[DisplayName("General")]
|
||||
[Description("")]
|
||||
public DbSettingsGeneral General { get; set; } = new DbSettingsGeneral();
|
||||
public DbSettingsGeneral General { get; set; } = new();
|
||||
|
||||
[DisplayName("Download Client")]
|
||||
[Description("")]
|
||||
public DbSettingsDownloadClient DownloadClient { get; set; } = new DbSettingsDownloadClient();
|
||||
public DbSettingsDownloadClient DownloadClient { get; set; } = new();
|
||||
|
||||
[DisplayName("Provider")]
|
||||
[Description("")]
|
||||
public DbSettingsProvider Provider { get; set; } = new DbSettingsProvider();
|
||||
public DbSettingsProvider Provider { get; set; } = new();
|
||||
|
||||
[DisplayName("qBittorrent")]
|
||||
[DisplayName("qBittorrent / *darr")]
|
||||
[Description("The following settings only apply when a torrent gets added through the qbittorrent API, usually Radarr or Sonarr.")]
|
||||
public DbSettingsIntegrations Integrations { get; set; } = new DbSettingsIntegrations();
|
||||
public DbSettingsIntegrations Integrations { get; set; } = new();
|
||||
|
||||
[DisplayName("GUI Defaults")]
|
||||
[Description("Settings used when adding a torrent through the web interface.")]
|
||||
public DbSettingsGui Gui { get; set; } = new DbSettingsGui();
|
||||
public DbSettingsGui Gui { get; set; } = new();
|
||||
|
||||
[DisplayName("Watch")]
|
||||
[Description("The following settings only apply when a torrent gets through the watch folder.")]
|
||||
public DbSettingsWatch Watch { get; set; } = new DbSettingsWatch();
|
||||
public DbSettingsWatch Watch { get; set; } = new();
|
||||
}
|
||||
|
||||
public class DbSettingsGeneral
|
||||
|
|
@ -142,17 +142,17 @@ or
|
|||
public Int32 CheckInterval { get; set; } = 10;
|
||||
|
||||
[DisplayName("Auto Import Defaults")]
|
||||
public DbSettingsDefaults Default { get; set; } = new DbSettingsDefaults();
|
||||
public DbSettingsDefaultsWithCategory Default { get; set; } = new();
|
||||
}
|
||||
|
||||
public class DbSettingsIntegrations
|
||||
{
|
||||
public DbSettingsDefaults Default { get; set; } = new DbSettingsDefaults();
|
||||
public DbSettingsDefaults Default { get; set; } = new();
|
||||
}
|
||||
|
||||
public class DbSettingsGui
|
||||
{
|
||||
public DbSettingsDefaults Default { get; set; } = new DbSettingsDefaults();
|
||||
public DbSettingsDefaultsWithCategory Default { get; set; } = new();
|
||||
}
|
||||
|
||||
public class DbSettingsWatch
|
||||
|
|
@ -166,22 +166,25 @@ public class DbSettingsWatch
|
|||
public Int32 Interval { get; set; } = 60;
|
||||
|
||||
[DisplayName("Import Defaults")]
|
||||
public DbSettingsDefaults Default { get; set; } = new DbSettingsDefaults();
|
||||
public DbSettingsDefaultsWithCategory Default { get; set; } = new();
|
||||
}
|
||||
|
||||
public class DbSettingsDefaults
|
||||
public class DbSettingsDefaultsWithCategory : DbSettingsDefaults
|
||||
{
|
||||
[DisplayName("Category")]
|
||||
[Description("When a torrent is imported assign it this category.")]
|
||||
public String? Category { get; set; } = null;
|
||||
|
||||
[DisplayName("Only download available files on debrid provider")]
|
||||
[Description("When selected, it will only download files in the torrent that have been download by Real-Debrid. You can use this in combination with the Min File size setting above.")]
|
||||
public Boolean OnlyDownloadAvailableFiles { get; set; } = true;
|
||||
|
||||
[DisplayName("Finished Action")]
|
||||
[Description("When a torrent is finished, perform this action.")]
|
||||
public TorrentFinishedAction FinishedAction { get; set; } = TorrentFinishedAction.RemoveAllTorrents;
|
||||
}
|
||||
|
||||
public class DbSettingsDefaults
|
||||
{
|
||||
[DisplayName("Only download available files on debrid provider")]
|
||||
[Description("When selected, it will only download files in the torrent that have been download by Real-Debrid. You can use this in combination with the Min File size setting above.")]
|
||||
public Boolean OnlyDownloadAvailableFiles { get; set; } = true;
|
||||
|
||||
[DisplayName("Minimum file size to download")]
|
||||
[Description("Files that are smaller than this setting are skipped and not downloaded. When set to 0 all files are downloaded. When downloading from Radarr or Sonarr it's recommended to keep this setting at atleast a few MB to avoid the debrid provider having to re-download the torrent.")]
|
||||
|
|
|
|||
|
|
@ -419,9 +419,9 @@ public class QBittorrent
|
|||
{
|
||||
var torrent = new Torrent
|
||||
{
|
||||
Category = category ?? Settings.Get.Integrations.Default.Category,
|
||||
Category = category,
|
||||
DownloadAction = Settings.Get.Integrations.Default.OnlyDownloadAvailableFiles ? TorrentDownloadAction.DownloadAvailableFiles : TorrentDownloadAction.DownloadAll,
|
||||
FinishedAction = Settings.Get.Integrations.Default.FinishedAction,
|
||||
FinishedAction = TorrentFinishedAction.None,
|
||||
DownloadMinSize = Settings.Get.Integrations.Default.MinFileSize,
|
||||
TorrentRetryAttempts = Settings.Get.Integrations.Default.TorrentRetryAttempts,
|
||||
DownloadRetryAttempts = Settings.Get.Integrations.Default.DownloadRetryAttempts,
|
||||
|
|
@ -437,9 +437,9 @@ public class QBittorrent
|
|||
{
|
||||
var torrent = new Torrent
|
||||
{
|
||||
Category = category ?? Settings.Get.Integrations.Default.Category,
|
||||
Category = category,
|
||||
DownloadAction = Settings.Get.Integrations.Default.OnlyDownloadAvailableFiles ? TorrentDownloadAction.DownloadAvailableFiles : TorrentDownloadAction.DownloadAll,
|
||||
FinishedAction = Settings.Get.Integrations.Default.FinishedAction,
|
||||
FinishedAction = TorrentFinishedAction.None,
|
||||
DownloadMinSize = Settings.Get.Integrations.Default.MinFileSize,
|
||||
TorrentRetryAttempts = Settings.Get.Integrations.Default.TorrentRetryAttempts,
|
||||
DownloadRetryAttempts = Settings.Get.Integrations.Default.DownloadRetryAttempts,
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
<TargetFramework>net6.0</TargetFramework>
|
||||
<OutputType>Exe</OutputType>
|
||||
<UserSecretsId>94c24cba-f03f-4453-a671-3640b517c573</UserSecretsId>
|
||||
<Version>2.0.14</Version>
|
||||
<Version>2.0.15</Version>
|
||||
<Nullable>enable</Nullable>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<LangVersion>latest</LangVersion>
|
||||
|
|
|
|||
Loading…
Reference in a new issue