jellyfin-server/MediaBrowser.TV/Resolvers/EpisodeResolver.cs
LukePulverenti Luke Pulverenti luke pulverenti 2454b72c93 Comments and cleanup. ALso updated ffmpeg + ffprobe
2012-08-23 14:35:44 -04:00

23 lines
698 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 the parent is a Season or Series, then this is an Episode if the VideoResolver returns something
if (args.Parent is Season || args.Parent is Series)
{
return base.Resolve(args);
}
return null;
}
}
}