diff --git a/PlexRequests.Core/SettingModels/PlexRequestSettings.cs b/PlexRequests.Core/SettingModels/PlexRequestSettings.cs index dc0e96464..51a6413fd 100644 --- a/PlexRequests.Core/SettingModels/PlexRequestSettings.cs +++ b/PlexRequests.Core/SettingModels/PlexRequestSettings.cs @@ -32,7 +32,8 @@ namespace PlexRequests.Core.SettingModels public bool SearchForMovies { get; set; } public bool SearchForTvShows { get; set; } - public bool RequireApproval { get; set; } + public bool RequireMovieApproval { get; set; } + public bool RequireTvShowApproval { get; set; } public int WeeklyRequestLimit { get; set; } } } diff --git a/PlexRequests.Core/Setup.cs b/PlexRequests.Core/Setup.cs index 3163f8c56..4dea3a27a 100644 --- a/PlexRequests.Core/Setup.cs +++ b/PlexRequests.Core/Setup.cs @@ -62,7 +62,8 @@ namespace PlexRequests.Core { var defaultSettings = new PlexRequestSettings { - RequireApproval = true, + RequireTvShowApproval = true, + RequireMovieApproval = true, SearchForMovies = true, SearchForTvShows = true, WeeklyRequestLimit = 0 diff --git a/PlexRequests.UI/Modules/SearchModule.cs b/PlexRequests.UI/Modules/SearchModule.cs index 0ea295d40..b816a00a0 100644 --- a/PlexRequests.UI/Modules/SearchModule.cs +++ b/PlexRequests.UI/Modules/SearchModule.cs @@ -218,7 +218,7 @@ namespace PlexRequests.UI.Modules var settings = PrService.GetSettings(); Log.Trace(settings.DumpJson()); - if (!settings.RequireApproval) + if (!settings.RequireMovieApproval) { var cpSettings = CpService.GetSettings(); @@ -324,7 +324,7 @@ namespace PlexRequests.UI.Modules model.SeasonList = seasonsList.ToArray(); var settings = PrService.GetSettings(); - if (!settings.RequireApproval) + if (!settings.RequireTvShowApproval) { var sonarrSettings = SonarrService.GetSettings(); var sender = new TvSender(SonarrApi, SickrageApi); diff --git a/PlexRequests.UI/Program.cs b/PlexRequests.UI/Program.cs index 47a756897..c8f863f40 100644 --- a/PlexRequests.UI/Program.cs +++ b/PlexRequests.UI/Program.cs @@ -37,6 +37,7 @@ using PlexRequests.Core.SettingModels; using PlexRequests.Helpers; using PlexRequests.Store; using PlexRequests.Store.Repository; +using System.Diagnostics; namespace PlexRequests.UI { @@ -68,7 +69,7 @@ namespace PlexRequests.UI if (port == -1) port = GetStartupPort(); - var options = new StartOptions($"http://+:{port}") + var options = new StartOptions(Debugger.IsAttached ? $"http://localhost:{port}" : $"http://+:{port}") { ServerFactory = "Microsoft.Owin.Host.HttpListener" }; diff --git a/PlexRequests.UI/Views/Admin/Settings.cshtml b/PlexRequests.UI/Views/Admin/Settings.cshtml index 06c6b95a9..edbe6009c 100644 --- a/PlexRequests.UI/Views/Admin/Settings.cshtml +++ b/PlexRequests.UI/Views/Admin/Settings.cshtml @@ -55,13 +55,28 @@
+ +
+
+
+
+