using System;
using System.Collections.Generic;
using System.Globalization;
using Jellyfin.Plugin.MetaShark.Configuration;
using MediaBrowser.Common.Configuration;
using MediaBrowser.Common.Plugins;
using MediaBrowser.Model.Plugins;
using MediaBrowser.Model.Serialization;
namespace Jellyfin.Plugin.MetaShark;
///
/// The main plugin.
///
public class Plugin : BasePlugin, IHasWebPages
{
///
/// Gets the provider name.
///
public const string PluginName = "MetaShark";
///
/// Gets the provider id.
///
public const string ProviderId = "MetaSharkID";
///
/// Initializes a new instance of the class.
///
/// Instance of the interface.
/// Instance of the interface.
public Plugin(IApplicationPaths applicationPaths, IXmlSerializer xmlSerializer)
: base(applicationPaths, xmlSerializer)
{
Instance = this;
}
///
public override string Name => PluginName;
///
public override Guid Id => Guid.Parse("9A19103F-16F7-4668-BE54-9A1E7A4F7556");
///
/// Gets the current plugin instance.
///
public static Plugin? Instance { get; private set; }
///
public IEnumerable GetPages()
{
return new[]
{
new PluginPageInfo
{
Name = this.Name,
EmbeddedResourcePath = string.Format(CultureInfo.InvariantCulture, "{0}.Configuration.configPage.html", GetType().Namespace)
}
};
}
}