From 6ad020acb2cb94ae577b05d6b018115d69259e26 Mon Sep 17 00:00:00 2001 From: David Ullmer Date: Tue, 17 Aug 2021 19:39:48 +0200 Subject: [PATCH] Include Splashscreen url in the branding endpoint --- MediaBrowser.Model/Branding/BrandingOptions.cs | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/MediaBrowser.Model/Branding/BrandingOptions.cs b/MediaBrowser.Model/Branding/BrandingOptions.cs index ee182207d4..18a177e2db 100644 --- a/MediaBrowser.Model/Branding/BrandingOptions.cs +++ b/MediaBrowser.Model/Branding/BrandingOptions.cs @@ -1,3 +1,4 @@ +using System.Text.Json.Serialization; using System.Xml.Serialization; #pragma warning disable CS1591 @@ -21,7 +22,17 @@ namespace MediaBrowser.Model.Branding /// /// Gets or sets the splashscreen location on disk. /// - /// The location of the user splashscreen. + /// + /// Not served via the API. + /// Only used to save the custom uploaded user splashscreen in the configuration file. + /// + [JsonIgnore] public string? SplashscreenLocation { get; set; } + + /// + /// Gets the splashscreen url. + /// + [XmlIgnore] + public string SplashscreenUrl => "/Branding/Splashscreen"; } }