mirror of
https://github.com/Radarr/Radarr.git
synced 2024-09-11 12:02:35 +02:00
Misc Settings
This commit is contained in:
parent
15bbeb9270
commit
b87f2a22da
@ -1,9 +1,17 @@
|
||||
.form-horizontal .controls i {
|
||||
font-size: 16px;
|
||||
/*color: #3A87AD;*/ /* Info blue */
|
||||
color: #595959;
|
||||
cursor: default;
|
||||
}
|
||||
.form-horizontal .controls i {
|
||||
font-size: 16px;
|
||||
/*color: #3A87AD;*/ /* Info blue */
|
||||
color: #595959;
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
.form-horizontal .controls i.warning {
|
||||
color: #F89406;
|
||||
}
|
||||
|
||||
.form-horizontal .controls i.danger {
|
||||
color: #B94A48;
|
||||
}
|
||||
|
||||
.help-inline-checkbox {
|
||||
float: left;
|
||||
@ -13,4 +21,14 @@
|
||||
|
||||
.switch {
|
||||
float: left;
|
||||
}
|
||||
|
||||
textarea.nzb-restrictions {
|
||||
width: 260px;
|
||||
}
|
||||
|
||||
.text-area-help {
|
||||
display: block;
|
||||
color: #777777;
|
||||
font-size: 12px;
|
||||
}
|
@ -1,3 +1,40 @@
|
||||
<div>
|
||||
Misc settings will go here
|
||||
</div>
|
||||
<fieldset>
|
||||
<legend>General</legend>
|
||||
|
||||
<div class="control-group">
|
||||
<label class="control-label">Backlog Searching</label>
|
||||
<div class="controls">
|
||||
<div class="switch">
|
||||
<input type="checkbox" name="enableBacklogSearching" />
|
||||
</div>
|
||||
<span class="help-inline-checkbox">
|
||||
<i class="icon-question-sign" title="Should NzbDrone try to download missing episodes automatically?"></i>
|
||||
<i class="icon-exclamation-sign danger" title="Enabling backlog searching can use a lot of bandwidth and is not
|
||||
recommended for users with block usenet accounts or bandwidth restrictions."></i>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label class="control-label">Ignore Deleted Episodes</label>
|
||||
<div class="controls">
|
||||
<div class="switch">
|
||||
<input type="checkbox" name="autoIgnorePreviouslyDownloadedEpisodes" />
|
||||
</div>
|
||||
<span class="help-inline-checkbox">
|
||||
<i class="icon-question-sign" title="Episodes deleted from disk are automatically ignored in NzbDrone"></i>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label class="control-label">Nzb Restrictions</label>
|
||||
<div class="controls">
|
||||
<textarea rows="3" name="nzbRestrictions" class="nzb-restrictions"></textarea>
|
||||
<span class="help-inline">
|
||||
<i class="icon-question-sign" title="White list or black list nzbs based on these rules<br/>White list: +:LoL<br/>Black list: -:French"></i>
|
||||
</span>
|
||||
<span class="text-area-help">Newline-delimited set of rules in the form of +|-:</span>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
@ -7,9 +7,17 @@ define([
|
||||
|
||||
NzbDrone.Settings.Misc.MiscView = Backbone.Marionette.ItemView.extend({
|
||||
template: 'Settings/Misc/MiscTemplate',
|
||||
className: 'form-horizontal',
|
||||
|
||||
ui: {
|
||||
switch: '.switch',
|
||||
tooltip: '[class^="help-inline"] i'
|
||||
},
|
||||
|
||||
onRender: function () {
|
||||
NzbDrone.ModelBinder.bind(this.model, this.el);
|
||||
this.ui.switch.bootstrapSwitch();
|
||||
this.ui.tooltip.tooltip({ placement: 'right', html: true });
|
||||
}
|
||||
});
|
||||
});
|
||||
|
@ -149,7 +149,6 @@ public String DownloadClientTvDirectory
|
||||
set { SetValue("DownloadClientTvDirectory", value); }
|
||||
}
|
||||
|
||||
|
||||
public bool UseSeasonFolder
|
||||
{
|
||||
get { return GetValueBoolean("UseSeasonFolder", true); }
|
||||
@ -373,12 +372,6 @@ public Boolean MetadataUseBanners
|
||||
set { SetValue("MetadataUseBanners", value); }
|
||||
}
|
||||
|
||||
public string AllowedReleaseGroups
|
||||
{
|
||||
get { return GetValue("AllowedReleaseGroups"); }
|
||||
set { SetValue("AllowedReleaseGroups", value); }
|
||||
}
|
||||
|
||||
public string PneumaticDirectory
|
||||
{
|
||||
get { return GetValue("PneumaticDirectory", String.Empty); }
|
||||
@ -479,6 +472,12 @@ public PriorityType NzbgetRecentTvPriority
|
||||
set { SetValue("NzbgetRecentTvPriority", (int)value); }
|
||||
}
|
||||
|
||||
public string NzbRestrictions
|
||||
{
|
||||
get { return GetValue("NzbRestrictions", String.Empty); }
|
||||
set { SetValue("NzbRestrictions", value); }
|
||||
}
|
||||
|
||||
private string GetValue(string key)
|
||||
{
|
||||
return GetValue(key, String.Empty);
|
||||
|
@ -61,7 +61,6 @@ public interface IConfigService
|
||||
string PlexUsername { get; set; }
|
||||
string PlexPassword { get; set; }
|
||||
Boolean MetadataUseBanners { get; set; }
|
||||
string AllowedReleaseGroups { get; set; }
|
||||
string PneumaticDirectory { get; set; }
|
||||
string RecycleBin { get; set; }
|
||||
int RssSyncInterval { get; set; }
|
||||
@ -77,6 +76,7 @@ public interface IConfigService
|
||||
Int32 NzbgetPriority { get; set; }
|
||||
PriorityType NzbgetBacklogTvPriority { get; set; }
|
||||
PriorityType NzbgetRecentTvPriority { get; set; }
|
||||
string NzbRestrictions { get; set; }
|
||||
string GetValue(string key, object defaultValue, bool persist = false);
|
||||
void SetValue(string key, string value);
|
||||
void SaveValues(Dictionary<string, object> configValues);
|
||||
|
@ -29,7 +29,10 @@ public virtual bool IsSatisfiedBy(EpisodeParseResult subject)
|
||||
{
|
||||
_logger.Trace("Beginning release group check for: {0}", subject);
|
||||
|
||||
var allowed = _configService.AllowedReleaseGroups;
|
||||
//Todo: Make this use NzbRestrictions - How should whitelist be used? Will it override blacklist or vice-versa?
|
||||
|
||||
//var allowed = _configService.AllowedReleaseGroups;
|
||||
var allowed = "";
|
||||
|
||||
if (string.IsNullOrWhiteSpace(allowed))
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user