jellyfin-server/MediaBrowser.TV/Resolvers/EpisodeResolver.cs

22 lines
582 B
C#
Raw Normal View History

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