2020-12-18 13:37:35 -07:00
|
|
|
#pragma warning disable CS1591
|
2020-06-19 11:24:13 -07:00
|
|
|
|
|
|
|
using System;
|
2020-05-30 23:15:34 -07:00
|
|
|
using System.Collections.Generic;
|
|
|
|
using MediaBrowser.Common.Configuration;
|
|
|
|
using MediaBrowser.Common.Plugins;
|
|
|
|
using MediaBrowser.Model.Plugins;
|
|
|
|
using MediaBrowser.Model.Serialization;
|
|
|
|
|
|
|
|
namespace MediaBrowser.Providers.Plugins.Omdb
|
|
|
|
{
|
|
|
|
public class Plugin : BasePlugin<PluginConfiguration>, IHasWebPages
|
|
|
|
{
|
2021-06-26 17:00:17 -07:00
|
|
|
public Plugin(IApplicationPaths applicationPaths, IXmlSerializer xmlSerializer)
|
|
|
|
: base(applicationPaths, xmlSerializer)
|
|
|
|
{
|
|
|
|
Instance = this;
|
|
|
|
}
|
|
|
|
|
2020-05-30 23:15:34 -07:00
|
|
|
public static Plugin Instance { get; private set; }
|
|
|
|
|
|
|
|
public override Guid Id => new Guid("a628c0da-fac5-4c7e-9d1a-7134223f14c8");
|
|
|
|
|
|
|
|
public override string Name => "OMDb";
|
|
|
|
|
|
|
|
public override string Description => "Get metadata for movies and other video content from OMDb.";
|
|
|
|
|
2020-07-22 07:19:26 -07:00
|
|
|
// TODO remove when plugin removed from server.
|
|
|
|
public override string ConfigurationFileName => "Jellyfin.Plugin.Omdb.xml";
|
|
|
|
|
2020-05-30 23:15:34 -07:00
|
|
|
public IEnumerable<PluginPageInfo> GetPages()
|
|
|
|
{
|
|
|
|
yield return new PluginPageInfo
|
|
|
|
{
|
|
|
|
Name = Name,
|
|
|
|
EmbeddedResourcePath = GetType().Namespace + ".Configuration.config.html"
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|