diff --git a/src/Ombi.Updater/Properties/launchSettings.json b/src/Ombi.Updater/Properties/launchSettings.json index ba6773a0c..499695f7b 100644 --- a/src/Ombi.Updater/Properties/launchSettings.json +++ b/src/Ombi.Updater/Properties/launchSettings.json @@ -1,9 +1,7 @@ { "profiles": { "Ombi.Updater": { - "commandName": "Project", - "commandLineArgs": "C:\\Users\\Jamie.Rees\\Source\\Repos\\PlexRequests.Net\\src\\Ombi\\bin\\Debug\\netcoreapp1.1", - "workingDirectory": "C:\\Users\\Jamie.Rees\\Source\\Repos\\PlexRequests.Net\\src\\Ombi\\bin\\Debug\\netcoreapp1.1\\UpdateTemp" + "commandName": "Project" } } } \ No newline at end of file diff --git a/src/Ombi/ClientApp/app/wizard/emby/emby.component.html b/src/Ombi/ClientApp/app/wizard/emby/emby.component.html index 79a47bc9d..47d58d7e7 100644 --- a/src/Ombi/ClientApp/app/wizard/emby/emby.component.html +++ b/src/Ombi/ClientApp/app/wizard/emby/emby.component.html @@ -1,30 +1,32 @@ 

Emby Authentication

-
- -
- +
+
+ +
+ +
-
-
- +
+ -
- +
+ +
-
-
-
- +
+
+ +
-
-
- -
- +
+ +
+ +
+
+ -
- \ No newline at end of file diff --git a/src/Ombi/ClientApp/app/wizard/emby/emby.component.ts b/src/Ombi/ClientApp/app/wizard/emby/emby.component.ts index 4d7565c5a..4d151670e 100644 --- a/src/Ombi/ClientApp/app/wizard/emby/emby.component.ts +++ b/src/Ombi/ClientApp/app/wizard/emby/emby.component.ts @@ -1,4 +1,4 @@ -import { Component } from '@angular/core'; +import { Component, OnInit } from '@angular/core'; import { Router } from '@angular/router'; import { EmbyService } from '../../services/applications/emby.service'; @@ -10,13 +10,27 @@ import { IEmbySettings } from '../../interfaces/ISettings'; templateUrl: './emby.component.html', }) -export class EmbyComponent { +export class EmbyComponent implements OnInit { constructor(private embyService: EmbyService, private router: Router, private notificationService: NotificationService) { } + ngOnInit(): void { + this.embySettings = { + administratorId: "", + apiKey: "", + enable: true, + enableEpisodeSearching: true, + id: 0, + ip: "", + port: 8096, + ssl: false, + subDir:"" + } + } + private embySettings: IEmbySettings; diff --git a/src/Ombi/Controllers/External/EmbyController.cs b/src/Ombi/Controllers/External/EmbyController.cs index ad5869752..6dc919737 100644 --- a/src/Ombi/Controllers/External/EmbyController.cs +++ b/src/Ombi/Controllers/External/EmbyController.cs @@ -9,9 +9,17 @@ using Ombi.Core.Settings.Models.External; namespace Ombi.Controllers.External { + /// + /// + /// [Admin] public class EmbyController : BaseV1ApiController { + /// + /// + /// + /// + /// public EmbyController(IEmbyApi emby, ISettingsService embySettings) { EmbyApi = emby; @@ -30,9 +38,9 @@ namespace Ombi.Controllers.External [AllowAnonymous] public async Task SignIn([FromBody] EmbySettings request) { - // Check if settings exist + // Check if settings exist since we allow anon... var settings = await EmbySettings.GetSettingsAsync(); - if (settings != null && !string.IsNullOrEmpty(settings.ApiKey)) return null; + if (!string.IsNullOrEmpty(settings?.ApiKey)) return null; request.Enable = true; // Test that we can connect