jellyfin-server/MediaBrowser.TV/Resolvers/EpisodeResolver.cs
LukePulverenti Luke Pulverenti luke pulverenti c658ea7feb Added Movie, Series and Episode providers
2012-08-19 12:41:47 -04:00

22 lines
582 B
C#

using System.ComponentModel.Composition;
using MediaBrowser.Controller.Events;
using MediaBrowser.Controller.Resolvers;
using MediaBrowser.TV.Entities;
namespace MediaBrowser.TV.Resolvers
{
[Export(typeof(IBaseItemResolver))]
public class EpisodeResolver : BaseVideoResolver<Episode>
{
protected override Episode Resolve(ItemResolveEventArgs args)
{
if (args.Parent is Season || args.Parent is Series)
{
return base.Resolve(args);
}
return null;
}
}
}