#nullable disable
using System;
using System.Collections.Generic;
using MediaBrowser.Common.Configuration;
using MediaBrowser.Common.Plugins;
using MediaBrowser.Model.Plugins;
using MediaBrowser.Model.Serialization;
using MediaBrowser.Providers.Plugins.StudioImages.Configuration;
namespace MediaBrowser.Providers.Plugins.StudioImages
{
///
/// Artwork Plugin class.
///
public class Plugin : BasePlugin, IHasWebPages
{
///
/// Artwork repository URL.
///
public const string DefaultServer = "https://raw.github.com/jellyfin/emby-artwork/master/studios";
///
/// Initializes a new instance of the class.
///
/// application paths.
/// xml serializer.
public Plugin(IApplicationPaths applicationPaths, IXmlSerializer xmlSerializer)
: base(applicationPaths, xmlSerializer)
{
Instance = this;
}
///
/// Gets the instance of Artwork plugin.
///
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 GetPages()
{
yield return new PluginPageInfo
{
Name = Name,
EmbeddedResourcePath = GetType().Namespace + ".Configuration.config.html"
};
}
}
}