#nullable disable
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.Tmdb
{
///
/// Plugin class for the TMDb library.
///
public class Plugin : BasePlugin, IHasWebPages
{
///
/// 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 TMDb plugin.
///
public static Plugin Instance { get; private set; }
///
public override Guid Id => new Guid("b8715ed1-6c47-4528-9ad3-f72deb539cd4");
///
public override string Name => "TMDb";
///
public override string Description => "Get metadata for movies and other video content from TheMovieDb.";
// TODO remove when plugin removed from server.
///
public override string ConfigurationFileName => "Jellyfin.Plugin.Tmdb.xml";
///
/// Return the plugin configuration page.
///
/// PluginPageInfo.
public IEnumerable GetPages()
{
yield return new PluginPageInfo
{
Name = Name,
EmbeddedResourcePath = GetType().Namespace + ".Configuration.config.html"
};
}
}
}