You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
679 B
22 lines
679 B
using MediaBrowser.Controller.Entities.TV;
|
|
using MediaBrowser.Controller.Library;
|
|
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;
|
|
}
|
|
}
|
|
}
|