mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-08-30 16:14:35 +02:00
44 lines
1.5 KiB
C#
44 lines
1.5 KiB
C#
#nullable disable
|
|
#pragma warning disable CS1591
|
|
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using MediaBrowser.Common.Configuration;
|
|
using MediaBrowser.Common.Plugins;
|
|
using MediaBrowser.Model.Plugins;
|
|
using MediaBrowser.Model.Serialization;
|
|
|
|
namespace MediaBrowser.Providers.Plugins.StudioImages
|
|
{
|
|
public class Plugin : BasePlugin<PluginConfiguration>, IHasWebPages
|
|
{
|
|
// TODO change this for a Jellyfin-hosted repository.
|
|
public const string DefaultServer = "https://raw.github.com/MediaBrowser/MediaBrowser.Resources/master/images/imagesbyname";
|
|
|
|
public Plugin(IApplicationPaths applicationPaths, IXmlSerializer xmlSerializer)
|
|
: base(applicationPaths, xmlSerializer)
|
|
{
|
|
Instance = this;
|
|
}
|
|
|
|
public static Plugin Instance { get; private set; }
|
|
|
|
public override Guid Id => new Guid("872a7849-1171-458d-a6fb-3de3d442ad30");
|
|
|
|
public override string Name => "Studio Images";
|
|
|
|
public override string Description => "Get artwork for studios from any Jellyfin-compatible repository.";
|
|
|
|
// TODO remove when plugin removed from server.
|
|
public override string ConfigurationFileName => "Jellyfin.Plugin.StudioImages.xml";
|
|
|
|
public IEnumerable<PluginPageInfo> GetPages()
|
|
{
|
|
yield return new PluginPageInfo
|
|
{
|
|
Name = Name,
|
|
EmbeddedResourcePath = GetType().Namespace + ".Configuration.config.html"
|
|
};
|
|
}
|
|
}
|
|
}
|