diff options
| author | AmbulantRex <21176662+AmbulantRex@users.noreply.github.com> | 2023-03-30 08:59:21 -0600 |
|---|---|---|
| committer | AmbulantRex <21176662+AmbulantRex@users.noreply.github.com> | 2023-03-30 08:59:21 -0600 |
| commit | 891b9f7a997ce5e5892c1b0f166a921ff07abf68 (patch) | |
| tree | 539177d4c5efc5b783b87cb6c8792147d73c468c /MediaBrowser.Common | |
| parent | d45cabfa74263b4f11945fc88daeffa75ed77570 (diff) | |
Add DLL whitelist support for plugins
Diffstat (limited to 'MediaBrowser.Common')
| -rw-r--r-- | MediaBrowser.Common/Plugins/PluginManifest.cs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/MediaBrowser.Common/Plugins/PluginManifest.cs b/MediaBrowser.Common/Plugins/PluginManifest.cs index 2910dbe14..2bad3454d 100644 --- a/MediaBrowser.Common/Plugins/PluginManifest.cs +++ b/MediaBrowser.Common/Plugins/PluginManifest.cs @@ -1,4 +1,5 @@ using System; +using System.Collections.Generic; using System.Text.Json.Serialization; using MediaBrowser.Model.Plugins; @@ -23,6 +24,7 @@ namespace MediaBrowser.Common.Plugins Overview = string.Empty; TargetAbi = string.Empty; Version = string.Empty; + Assemblies = new List<string>(); } /// <summary> @@ -104,5 +106,12 @@ namespace MediaBrowser.Common.Plugins /// </summary> [JsonPropertyName("imagePath")] public string? ImagePath { get; set; } + + /// <summary> + /// Gets or sets the collection of assemblies that should be loaded. + /// Paths are considered relative to the plugin folder. + /// </summary> + [JsonPropertyName("assemblies")] + public IList<string> Assemblies { get; set; } } } |
