jellyfin/MediaBrowser.Movies/Plugin.cs
LukePulverenti Luke Pulverenti luke pulverenti b50f78e5da Initial check-in
2012-07-12 02:55:27 -04:00

25 lines
717 B
C#

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>();
}
}
}