1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-04 10:02:40 +01:00

DownloadClient settings cleaned up

This commit is contained in:
Mark McDowall 2013-05-30 08:29:43 -07:00
parent c1bbd0bd5d
commit fd88f17ead
8 changed files with 47 additions and 47 deletions

View File

@ -22,7 +22,7 @@ public class BlackholeProviderFixture : CoreTest<BlackholeProvider>
[SetUp]
public void Setup()
{
Mocker.GetMock<IConfigService>().SetupGet(c => c.BlackholeDirectory).Returns(blackHoleFolder);
Mocker.GetMock<IConfigService>().SetupGet(c => c.BlackholeFolder).Returns(blackHoleFolder);
}

View File

@ -25,7 +25,7 @@ public void Setup()
{
nzbPath = pneumaticFolder + title + ".nzb";
Mocker.GetMock<IConfigService>().SetupGet(c => c.PneumaticDirectory).Returns(pneumaticFolder);
Mocker.GetMock<IConfigService>().SetupGet(c => c.PneumaticFolder).Returns(pneumaticFolder);
Mocker.GetMock<IConfigService>().SetupGet(c => c.DownloadedEpisodesFolder).Returns(sabDrop);
}

View File

@ -172,7 +172,7 @@ public DownloadClientType DownloadClient
set { SetValue("DownloadClient", value); }
}
public string BlackholeDirectory
public string BlackholeFolder
{
get { return GetValue("BlackholeDirectory", String.Empty); }
set { SetValue("BlackholeDirectory", value); }
@ -190,7 +190,7 @@ public Boolean MetadataUseBanners
set { SetValue("MetadataUseBanners", value); }
}
public string PneumaticDirectory
public string PneumaticFolder
{
get { return GetValue("PneumaticDirectory", String.Empty); }
set { SetValue("PneumaticDirectory", value); }

View File

@ -27,10 +27,10 @@ public interface IConfigService
int Retention { get; set; }
Guid UGuid { get; }
DownloadClientType DownloadClient { get; set; }
string BlackholeDirectory { get; set; }
string BlackholeFolder { get; set; }
string ServiceRootUrl { get; }
Boolean MetadataUseBanners { get; set; }
string PneumaticDirectory { get; set; }
string PneumaticFolder { get; set; }
string RecycleBin { get; set; }
int RssSyncInterval { get; set; }
Boolean IgnoreArticlesWhenSortingSeries { get; set; }

View File

@ -40,7 +40,7 @@ public bool DownloadNzb(string url, string title, bool recentlyAired)
{
title = FileNameBuilder.CleanFilename(title);
var filename = Path.Combine(_configService.BlackholeDirectory, title + ".nzb");
var filename = Path.Combine(_configService.BlackholeFolder, title + ".nzb");
if (_diskProvider.FileExists(filename))
{

View File

@ -45,7 +45,7 @@ public virtual bool DownloadNzb(string url, string title, bool recentlyAired)
title = FileNameBuilder.CleanFilename(title);
//Save to the Pneumatic directory (The user will need to ensure its accessible by XBMC)
var filename = Path.Combine(_configService.PneumaticDirectory, title + ".nzb");
var filename = Path.Combine(_configService.PneumaticFolder, title + ".nzb");
if (_diskProvider.FileExists(filename))
{

View File

@ -6,10 +6,10 @@
<div class="controls">
<select class="inputClass x-download-client" name="downloadClient">
<option value="0">SABnzbd</option>
<option value="1">Blackhole</option>
<option value="2">Pneumatic</option>
<option value="3">NZBGet</option>
<option value="sabnzbd">SABnzbd</option>
<option value="blackhole">Blackhole</option>
<option value="pneumatic">Pneumatic</option>
<option value="nzbget">NZBGet</option>
</select>
<span class="help-inline">
<i class="icon-question-sign" title="What method do you download NZBs with?"></i>
@ -114,12 +114,12 @@
<div class="controls">
<select name="sabBacklogTvPriority">
<option>Default</option>
<option>Paused</option>
<option>Low</option>
<option>Normal</option>
<option>High</option>
<option>Force</option>
<option value="default">Default</option>
<option value="paused">Paused</option>
<option value="low">Low</option>
<option value="normal">Normal</option>
<option value="high">High</option>
<option value="force">Force</option>
</select>
<span class="help-inline">
<i class="icon-question-sign" title="Priority to use when sending episodes older than 7 days to SABnzbd"></i>
@ -132,12 +132,12 @@
<div class="controls">
<select name="sabRecentTvPriority">
<option>Default</option>
<option>Paused</option>
<option>Low</option>
<option>Normal</option>
<option>High</option>
<option>Force</option>
<option value="default">Default</option>
<option value="paused">Paused</option>
<option value="low">Low</option>
<option value="normal">Normal</option>
<option value="high">High</option>
<option value="force">Force</option>
</select>
<span class="help-inline">
<i class="icon-question-sign" title="Priority to use when sending episodes that aired within the last 7 days to SABnzbd"></i>
@ -160,12 +160,12 @@
<fieldset class="x-blackhole-config">
<legend>Blackhole</legend>
<div class="control-group">
<label class="control-label">Blackhole Directory</label>
<label class="control-label">Blackhole Folder</label>
<div class="controls">
<input type="text" name="blackholeDirectory" class="x-path"/>
<input type="text" name="blackholeFolder" class="x-path"/>
<span class="help-inline">
<i class="icon-question-sign" title="The directory where your download client will pickup .nzb files"></i>
<i class="icon-question-sign" title="The folder where your download client will pickup .nzb files"></i>
</span>
</div>
</div>
@ -174,12 +174,12 @@
<fieldset class="x-pneumatic-config">
<legend>Pneumatic</legend>
<div class="control-group">
<label class="control-label">Nzb Directory</label>
<label class="control-label">Nzb Folder</label>
<div class="controls">
<input type="text" name="pneumaticDirectory" class="x-path"/>
<input type="text" name="pneumaticFolder" class="x-path"/>
<span class="help-inline">
<i class="icon-question-sign" title="Directory to save NZBs for Pneumatic<br/>must be accessible from XBMC"></i>
<i class="icon-question-sign" title="Folder to save NZBs for Pneumatic<br/>must be accessible from XBMC"></i>
</span>
</div>
</div>
@ -258,12 +258,12 @@
<div class="controls">
<select name="nzbgetBacklogTvPriority">
<option>Default</option>
<option>Paused</option>
<option>Low</option>
<option>Normal</option>
<option>High</option>
<option>Force</option>
<option value="default">Default</option>
<option value="pasued">Paused</option>
<option value="low">Low</option>
<option value="normal">Normal</option>
<option value="high">High</option>
<option value="force">Force</option>
</select>
<span class="help-inline">
<i class="icon-question-sign" title="Priority to use when sending episodes older than 7 days to NZBGet"></i>
@ -276,12 +276,12 @@
<div class="controls">
<select name="nzbgetRecentTvPriority">
<option>Default</option>
<option>Paused</option>
<option>Low</option>
<option>Normal</option>
<option>High</option>
<option>Force</option>
<option value="default">Default</option>
<option value="pasued">Paused</option>
<option value="low">Low</option>
<option value="normal">Normal</option>
<option value="high">High</option>
<option value="force">Force</option>
</select>
<span class="help-inline">
<i class="icon-question-sign" title="Priority to use when sending episodes that aired within the last 7 days to NZBGet"></i>

View File

@ -39,32 +39,32 @@ define([
refreshUIVisibility: function (clientId) {
if (!clientId) {
clientId = "0";
clientId = "sabnzbd";
}
switch (clientId.toString()) {
case "0":
case "sabnzbd":
this.ui.sabConfig.show();
this.ui.blackholeConfig.hide();
this.ui.pneumaticConfig.hide();
this.ui.nzbGetConfig.hide();
break;
case "1":
case "blackhole":
this.ui.sabConfig.hide();
this.ui.blackholeConfig.show();
this.ui.pneumaticConfig.hide();
this.ui.nzbGetConfig.hide();
break;
case "2":
case "pneumatic":
this.ui.sabConfig.hide();
this.ui.blackholeConfig.hide();
this.ui.pneumaticConfig.show();
this.ui.nzbGetConfig.hide();
break;
case "3":
case "nzbget":
this.ui.sabConfig.hide();
this.ui.blackholeConfig.hide();
this.ui.pneumaticConfig.hide();