diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-11-16 15:44:08 -0500 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-11-16 15:44:08 -0500 |
| commit | 5fdd7ec6725a3acb3365e92c090f2e90bbbf122f (patch) | |
| tree | e6032d9319cf2f459d2c5e718c36669c21d6dbfe /MediaBrowser.Server.Implementations/Intros/DefaultIntroProvider.cs | |
| parent | 4edcab9c11cf8e8cfbfc0bd9afe7b7ec067fd1e3 (diff) | |
add new naming project
Diffstat (limited to 'MediaBrowser.Server.Implementations/Intros/DefaultIntroProvider.cs')
| -rw-r--r-- | MediaBrowser.Server.Implementations/Intros/DefaultIntroProvider.cs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/MediaBrowser.Server.Implementations/Intros/DefaultIntroProvider.cs b/MediaBrowser.Server.Implementations/Intros/DefaultIntroProvider.cs index 2e1e54ad6..2d991abba 100644 --- a/MediaBrowser.Server.Implementations/Intros/DefaultIntroProvider.cs +++ b/MediaBrowser.Server.Implementations/Intros/DefaultIntroProvider.cs @@ -6,7 +6,6 @@ using MediaBrowser.Controller.Entities.Movies; using MediaBrowser.Controller.Entities.TV; using MediaBrowser.Controller.Library; using MediaBrowser.Controller.Localization; -using MediaBrowser.Controller.Resolvers; using MediaBrowser.Model.Channels; using MediaBrowser.Model.Configuration; using MediaBrowser.Model.Entities; @@ -25,13 +24,15 @@ namespace MediaBrowser.Server.Implementations.Intros private readonly IChannelManager _channelManager; private readonly ILocalizationManager _localization; private readonly IConfigurationManager _serverConfig; + private readonly ILibraryManager _libraryManager; - public DefaultIntroProvider(ISecurityManager security, IChannelManager channelManager, ILocalizationManager localization, IConfigurationManager serverConfig) + public DefaultIntroProvider(ISecurityManager security, IChannelManager channelManager, ILocalizationManager localization, IConfigurationManager serverConfig, ILibraryManager libraryManager) { _security = security; _channelManager = channelManager; _localization = localization; _serverConfig = serverConfig; + _libraryManager = libraryManager; } public async Task<IEnumerable<IntroInfo>> GetIntros(BaseItem item, User user) @@ -226,7 +227,7 @@ namespace MediaBrowser.Server.Implementations.Intros } return Directory.EnumerateFiles(options.CustomIntroPath, "*", SearchOption.AllDirectories) - .Where(EntityResolutionHelper.IsVideoFile); + .Where(_libraryManager.IsVideoFile); } private bool FilterByParentalRating(int? ratingLevel, BaseItem item) |
