1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-05 10:32:35 +01:00

Rename Sonarr to Radarr in DownloadStation client (#812)

This commit is contained in:
Mitchell Cash 2017-02-21 02:15:53 +10:00 committed by Devin Buhl
parent 7d6a518f30
commit 1c0f9b64ca
2 changed files with 5 additions and 5 deletions

View File

@ -42,7 +42,7 @@ public class DownloadStationSettings : IProviderConfig
[FieldDefinition(3, Label = "Password", Type = FieldType.Password)]
public string Password { get; set; }
[FieldDefinition(4, Label = "Category", Type = FieldType.Textbox, HelpText = "Adding a category specific to Sonarr avoids conflicts with unrelated downloads, but it's optional. Creates a [category] subdirectory in the output directory.")]
[FieldDefinition(4, Label = "Category", Type = FieldType.Textbox, HelpText = "Adding a category specific to Radarr avoids conflicts with unrelated downloads, but it's optional. Creates a [category] subdirectory in the output directory.")]
public string TvCategory { get; set; }
[FieldDefinition(5, Label = "Directory", Type = FieldType.Textbox, HelpText = "Optional shared folder to put downloads into, leave blank to use the default Download Station location")]

View File

@ -197,7 +197,7 @@ protected override void Test(List<ValidationFailure> failures)
failures.AddIfNotNull(TestOutputPath());
if (failures.Any()) return;
failures.AddIfNotNull(TestGetTorrents());
}
}
protected bool IsFinished(DownloadStationTorrent torrent)
{
@ -278,7 +278,7 @@ protected long GetRemainingSize(DownloadStationTorrent torrent)
protected ValidationFailure TestOutputPath()
{
try
{
{
var folderInfo = _fileStationProxy.GetInfoFileOrDirectory($"/{GetDownloadDirectory()}", Settings);
if (!folderInfo.IsDir || folderInfo.Additional == null)
@ -305,7 +305,7 @@ protected ValidationFailure TestConnection()
_logger.Error(ex, ex.Message);
return new NzbDroneValidationFailure("Username", "Authentication failure")
{
DetailedDescription = $"Please verify your username and password. Also verify if the host running Sonarr isn't blocked from accessing {Name} by WhiteList limitations in the {Name} configuration."
DetailedDescription = $"Please verify your username and password. Also verify if the host running Radarr isn't blocked from accessing {Name} by WhiteList limitations in the {Name} configuration."
};
}
catch (WebException ex)
@ -390,4 +390,4 @@ protected string GetDownloadDirectory()
return null;
}
}
}
}