jellyfin-server/MediaBrowser.Movies/Plugin.cs

25 lines
717 B
C#
Raw Normal View History

2012-07-12 06:55:27 +00:00
using MediaBrowser.Common.Plugins;
using MediaBrowser.Controller;
using MediaBrowser.Movies.Entities;
using MediaBrowser.Movies.Resolvers;
namespace MediaBrowser.Movies
{
public class Plugin : BasePlugin<BasePluginConfiguration>
{
protected override void InitInternal()
{
Kernel.Instance.AddBaseItemType<BoxSet, BoxSetResolver>();
Kernel.Instance.AddBaseItemType<Movie, MovieResolver>();
}
public override void Dispose()
{
base.Dispose();
Kernel.Instance.RemoveBaseItemType<Movie, MovieResolver>();
Kernel.Instance.RemoveBaseItemType<BoxSet, BoxSetResolver>();
}
}
}