@page "/FirstTimeSetup/Metadata" @using LANCommander.Server.Settings @using Microsoft.Extensions.Options @layout FirstTimeSetupLayout @inject SetupService SetupService @inject SettingsProvider SettingsProvider @inject IOptions Settings @inject NavigationManager NavigationManager @inject ILogger Logger Metadata Connections - First Time Setup
LANCommander has the ability to pull metadata and media from external sources. Required credentials can be added here, or can be set later in Settings.

LANCommander HQ provides access to multiple metadata and media providers through a single connection. Connect your account in Settings > Integrations > LANCommander HQ after setup.

In order to use IGDB metadata, you need a Twitch developer account. Click here for more details.

In order to automatically search SteamGridDB for media, you need an API key. Click here to get your key.

@code { [CascadingParameter] FirstTimeSetupLayout Layout { get; set; } bool Loading = false; protected override async Task OnInitializedAsync() { var isSetupInitialized = await SetupService.IsSetupInitialized(); if (isSetupInitialized) { NavigationManager.NavigateTo("/"); return; } await Layout.ChangeCurrentStep(FirstTimeSetupStep.Metadata); SettingsProvider.Update(s => { s.Server.IGDB.ClientId = Settings.Value.Server.IGDB.ClientId; s.Server.IGDB.ClientSecret = Settings.Value.Server.IGDB.ClientSecret; s.Server.Media.SteamGridDbApiKey = Settings.Value.Server.Media.SteamGridDbApiKey; }); } async Task ValidateMetadataConnections() { SettingsProvider.Update(s => { s.Server.IGDB.ClientId = Settings.Value.Server.IGDB.ClientId; s.Server.IGDB.ClientSecret = Settings.Value.Server.IGDB.ClientSecret; s.Server.Media.SteamGridDbApiKey = Settings.Value.Server.Media.SteamGridDbApiKey; }); NavigationManager.NavigateTo("/FirstTimeSetup/Administrator"); } }