jellyfin/MediaBrowser.Controller/Resolvers/TV/EpisodeResolver.cs

22 lines
674 B
C#
Raw Normal View History

using MediaBrowser.Controller.Library;
using MediaBrowser.Model.Entities.TV;
using System.ComponentModel.Composition;
2012-07-11 23:55:27 -07:00
namespace MediaBrowser.Controller.Resolvers.TV
2012-07-11 23:55:27 -07:00
{
[Export(typeof(IBaseItemResolver))]
public class EpisodeResolver : BaseVideoResolver<Episode>
2012-07-11 23:55:27 -07:00
{
protected override Episode Resolve(ItemResolveEventArgs args)
{
// If the parent is a Season or Series, then this is an Episode if the VideoResolver returns something
2012-07-11 23:55:27 -07:00
if (args.Parent is Season || args.Parent is Series)
{
return base.Resolve(args);
}
return null;
}
}
}