mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-11-17 19:08:53 -07:00
22 lines
674 B
C#
22 lines
674 B
C#
using MediaBrowser.Controller.Library;
|
|
using MediaBrowser.Model.Entities.TV;
|
|
using System.ComponentModel.Composition;
|
|
|
|
namespace MediaBrowser.Controller.Resolvers.TV
|
|
{
|
|
[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;
|
|
}
|
|
}
|
|
}
|