25 lines
717 B
C#
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>();
|
|
}
|
|
}
|
|
}
|