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