pull/2814/head
tidusjar 5 years ago
parent 3bf07c63f9
commit d9209642f2

@ -2,6 +2,7 @@
{ {
public class DemoLists public class DemoLists
{ {
public bool Enabled { get; set; }
public int[] Movies { get; set; } public int[] Movies { get; set; }
public int[] TvShows { get; set; } public int[] TvShows { get; set; }
} }

@ -10,7 +10,6 @@ import {
ICronTestModel, ICronTestModel,
ICronViewModelBody, ICronViewModelBody,
ICustomizationSettings, ICustomizationSettings,
ICustomPage,
IDiscordNotifcationSettings, IDiscordNotifcationSettings,
IDogNzbSettings, IDogNzbSettings,
IEmailNotificationSettings, IEmailNotificationSettings,

@ -86,7 +86,7 @@ namespace Ombi
} }
c.OperationFilter<SwaggerOperationFilter>(); c.OperationFilter<SwaggerOperationFilter>();^
c.DescribeAllParametersInCamelCase(); c.DescribeAllParametersInCamelCase();
}); });
} }
@ -110,6 +110,8 @@ namespace Ombi
services.Configure<TokenAuthentication>(configuration.GetSection("TokenAuthentication")); services.Configure<TokenAuthentication>(configuration.GetSection("TokenAuthentication"));
services.Configure<LandingPageBackground>(configuration.GetSection("LandingPageBackground")); services.Configure<LandingPageBackground>(configuration.GetSection("LandingPageBackground"));
services.Configure<DemoLists>(configuration.GetSection("Demo")); services.Configure<DemoLists>(configuration.GetSection("Demo"));
var enabledDemo = Convert.ToBoolean(configuration.GetSection("Demo:Enabled").Value);
DemoSingleton.Instance.Demo = enabledDemo;
} }
public static void AddJwtAuthentication(this IServiceCollection services, IConfigurationRoot configuration) public static void AddJwtAuthentication(this IServiceCollection services, IConfigurationRoot configuration)

@ -50,6 +50,7 @@
}, },
// Please ignore the below // Please ignore the below
"Demo": { "Demo": {
"Enabled": true,
"Movies": [ "Movies": [
//https://en.wikipedia.org/wiki/List_of_films_in_the_public_domain_in_the_United_States //https://en.wikipedia.org/wiki/List_of_films_in_the_public_domain_in_the_United_States
130816, 130816,
@ -108,6 +109,6 @@
2122, 2122,
22148, 22148,
25941 // Front Row Center 25941 // Front Row Center
] ]
} }
} }

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save