From 76808adba2c141e7376560116b5e24f9b342f02b Mon Sep 17 00:00:00 2001 From: Jamie Rees Date: Fri, 18 Mar 2016 21:39:05 +0000 Subject: [PATCH] Fixed #33 we now have SSL options for Sonarr and CP --- .../SettingModels/CouchPotatoSettings.cs | 3 ++- PlexRequests.Core/SettingModels/SonarrSettings.cs | 3 ++- PlexRequests.UI/Views/Admin/CouchPotato.cshtml | 15 ++++++++++++++- PlexRequests.UI/Views/Admin/Sonarr.cshtml | 15 ++++++++++++++- 4 files changed, 32 insertions(+), 4 deletions(-) diff --git a/PlexRequests.Core/SettingModels/CouchPotatoSettings.cs b/PlexRequests.Core/SettingModels/CouchPotatoSettings.cs index 9b3d9b385..0c4ccd06f 100644 --- a/PlexRequests.Core/SettingModels/CouchPotatoSettings.cs +++ b/PlexRequests.Core/SettingModels/CouchPotatoSettings.cs @@ -36,13 +36,14 @@ namespace PlexRequests.Core.SettingModels public string Ip { get; set; } public int Port { get; set; } public string ApiKey { get; set; } + public bool Ssl { get; set; } [JsonIgnore] public Uri FullUri { get { - var formatted = Ip.ReturnUri(Port); + var formatted = Ip.ReturnUri(Port, Ssl); return formatted; } } diff --git a/PlexRequests.Core/SettingModels/SonarrSettings.cs b/PlexRequests.Core/SettingModels/SonarrSettings.cs index 4441d48d2..15f486d37 100644 --- a/PlexRequests.Core/SettingModels/SonarrSettings.cs +++ b/PlexRequests.Core/SettingModels/SonarrSettings.cs @@ -39,13 +39,14 @@ namespace PlexRequests.Core.SettingModels public string QualityProfile { get; set; } public bool SeasonFolders { get; set; } public string RootPath { get; set; } + public bool Ssl { get; set; } [JsonIgnore] public Uri FullUri { get { - var formatted = Ip.ReturnUri(Port); + var formatted = Ip.ReturnUri(Port, Ssl); return formatted; } } diff --git a/PlexRequests.UI/Views/Admin/CouchPotato.cshtml b/PlexRequests.UI/Views/Admin/CouchPotato.cshtml index 986355e1f..0b967436b 100644 --- a/PlexRequests.UI/Views/Admin/CouchPotato.cshtml +++ b/PlexRequests.UI/Views/Admin/CouchPotato.cshtml @@ -37,7 +37,20 @@ - +
+
+ +
+
diff --git a/PlexRequests.UI/Views/Admin/Sonarr.cshtml b/PlexRequests.UI/Views/Admin/Sonarr.cshtml index e7c6cccf0..83a06c443 100644 --- a/PlexRequests.UI/Views/Admin/Sonarr.cshtml +++ b/PlexRequests.UI/Views/Admin/Sonarr.cshtml @@ -37,7 +37,20 @@
- +
+
+ +
+