using MediaBrowser.Controller.Library;
namespace MediaBrowser.Controller.Resolvers.Audio
{
///
/// Class AudioResolver
///
public class AudioResolver : BaseItemResolver
{
///
/// Gets the priority.
///
/// The priority.
public override ResolverPriority Priority
{
get { return ResolverPriority.Last; }
}
///
/// Resolves the specified args.
///
/// The args.
/// Entities.Audio.Audio.
protected override Entities.Audio.Audio Resolve(ItemResolveArgs args)
{
// Return audio if the path is a file and has a matching extension
if (!args.IsDirectory)
{
if (EntityResolutionHelper.IsAudioFile(args))
{
return new Entities.Audio.Audio();
}
}
return null;
}
}
}