mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-06 06:12:52 +01:00
Fix integrated provider images
This commit is contained in:
@@ -109,7 +109,7 @@ namespace MediaBrowser.Common.Plugins
|
||||
{
|
||||
var inst = Instance?.GetPluginInfo() ?? new PluginInfo(Manifest.Name, Version, Manifest.Description, Manifest.Id, true);
|
||||
inst.Status = Manifest.Status;
|
||||
inst.HasImage = !string.IsNullOrEmpty(Manifest.ImagePath);
|
||||
inst.HasImage = !string.IsNullOrEmpty(Manifest.ImagePath) || !string.IsNullOrEmpty(Manifest.ImageResourceName);
|
||||
return inst;
|
||||
}
|
||||
|
||||
|
||||
@@ -107,6 +107,15 @@ namespace MediaBrowser.Common.Plugins
|
||||
[JsonPropertyName("imagePath")]
|
||||
public string? ImagePath { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the name of an embedded resource in the plugin's assembly
|
||||
/// that should be served as the plugin image.
|
||||
/// Used by bundled/integrated plugins whose images are shipped inside the assembly
|
||||
/// rather than on disk. Ignored when <see cref="ImagePath"/> is set.
|
||||
/// </summary>
|
||||
[JsonIgnore]
|
||||
public string? ImageResourceName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the collection of assemblies that should be loaded.
|
||||
/// Paths are considered relative to the plugin folder.
|
||||
|
||||
Reference in New Issue
Block a user