2012-08-19 16:41:47 +00:00
|
|
|
|
using System.ComponentModel.Composition;
|
2012-08-23 20:51:10 +00:00
|
|
|
|
using MediaBrowser.Controller.Library;
|
2012-07-12 06:55:27 +00:00
|
|
|
|
using MediaBrowser.Controller.Resolvers;
|
|
|
|
|
using MediaBrowser.TV.Entities;
|
|
|
|
|
|
|
|
|
|
namespace MediaBrowser.TV.Resolvers
|
|
|
|
|
{
|
2012-07-26 02:33:11 +00:00
|
|
|
|
[Export(typeof(IBaseItemResolver))]
|
|
|
|
|
public class EpisodeResolver : BaseVideoResolver<Episode>
|
2012-07-12 06:55:27 +00:00
|
|
|
|
{
|
|
|
|
|
protected override Episode Resolve(ItemResolveEventArgs args)
|
|
|
|
|
{
|
2012-08-23 18:35:44 +00:00
|
|
|
|
// If the parent is a Season or Series, then this is an Episode if the VideoResolver returns something
|
2012-07-12 06:55:27 +00:00
|
|
|
|
if (args.Parent is Season || args.Parent is Series)
|
|
|
|
|
{
|
|
|
|
|
return base.Resolve(args);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|