2013-02-20 18:33:05 -07:00
|
|
|
|
using MediaBrowser.Controller.Entities;
|
2014-11-16 13:44:08 -07:00
|
|
|
|
using MediaBrowser.Controller.Library;
|
2013-03-03 09:53:58 -07:00
|
|
|
|
using MediaBrowser.Controller.Resolvers;
|
2013-02-20 18:33:05 -07:00
|
|
|
|
|
2013-03-02 23:58:04 -07:00
|
|
|
|
namespace MediaBrowser.Server.Implementations.Library.Resolvers
|
2013-02-20 18:33:05 -07:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Resolves a Path into a Video
|
|
|
|
|
/// </summary>
|
2013-03-03 09:53:58 -07:00
|
|
|
|
public class VideoResolver : BaseVideoResolver<Video>
|
2013-02-20 18:33:05 -07:00
|
|
|
|
{
|
2014-11-16 13:44:08 -07:00
|
|
|
|
public VideoResolver(ILibraryManager libraryManager)
|
|
|
|
|
: base(libraryManager)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected override Video Resolve(ItemResolveArgs args)
|
|
|
|
|
{
|
|
|
|
|
if (args.Parent != null)
|
|
|
|
|
{
|
2014-12-02 20:13:03 -07:00
|
|
|
|
// The movie resolver will handle this
|
2014-12-03 22:24:41 -07:00
|
|
|
|
return null;
|
2014-11-16 13:44:08 -07:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return base.Resolve(args);
|
|
|
|
|
}
|
|
|
|
|
|
2013-02-20 18:33:05 -07:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the priority.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The priority.</value>
|
|
|
|
|
public override ResolverPriority Priority
|
|
|
|
|
{
|
|
|
|
|
get { return ResolverPriority.Last; }
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|