aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Server
diff options
context:
space:
mode:
authorVasily <JustAMan@users.noreply.github.com>2020-04-10 12:52:46 +0300
committerGitHub <noreply@github.com>2020-04-10 12:52:46 +0300
commit53db9567d3a71f9755138498f18f7695c52b7b72 (patch)
tree9b32e6efe16dd7643129130f6826f1330b24b42d /Jellyfin.Server
parent77445d9a5db439a3a2aa0d4e5fbe42e9dea00914 (diff)
parented88430429a707c91d9a72da1fe0618287c21649 (diff)
Merge pull request #2769 from mark-monteiro/configurable-repo-url
Make Plugin Repo URL Configurable
Diffstat (limited to 'Jellyfin.Server')
-rw-r--r--Jellyfin.Server/StartupOptions.cs11
1 files changed, 10 insertions, 1 deletions
diff --git a/Jellyfin.Server/StartupOptions.cs b/Jellyfin.Server/StartupOptions.cs
index c93577d3ea..6e15d058fc 100644
--- a/Jellyfin.Server/StartupOptions.cs
+++ b/Jellyfin.Server/StartupOptions.cs
@@ -1,7 +1,7 @@
using System.Collections.Generic;
-using System.Globalization;
using CommandLine;
using Emby.Server.Implementations;
+using Emby.Server.Implementations.Updates;
using MediaBrowser.Controller.Extensions;
namespace Jellyfin.Server
@@ -76,6 +76,10 @@ namespace Jellyfin.Server
[Option("restartargs", Required = false, HelpText = "Arguments for restart script.")]
public string? RestartArgs { get; set; }
+ /// <inheritdoc />
+ [Option("plugin-manifest-url", Required = false, HelpText = "A custom URL for the plugin repository JSON manifest")]
+ public string? PluginManifestUrl { get; set; }
+
/// <summary>
/// Gets the command line options as a dictionary that can be used in the .NET configuration system.
/// </summary>
@@ -84,6 +88,11 @@ namespace Jellyfin.Server
{
var config = new Dictionary<string, string>();
+ if (PluginManifestUrl != null)
+ {
+ config.Add(InstallationManager.PluginManifestUrlKey, PluginManifestUrl);
+ }
+
if (NoWebClient)
{
config.Add(ConfigurationExtensions.HostWebClientKey, bool.FalseString);