From 9ba615e64948de7f377c4ec6bb7967744b4fd029 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Mon, 4 Nov 2013 14:04:23 -0500 Subject: fixes #606 - Add manual image selection for Seasons --- .../Drawing/ImageProcessor.cs | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'MediaBrowser.Server.Implementations/Drawing/ImageProcessor.cs') diff --git a/MediaBrowser.Server.Implementations/Drawing/ImageProcessor.cs b/MediaBrowser.Server.Implementations/Drawing/ImageProcessor.cs index ace633be7..a439251db 100644 --- a/MediaBrowser.Server.Implementations/Drawing/ImageProcessor.cs +++ b/MediaBrowser.Server.Implementations/Drawing/ImageProcessor.cs @@ -48,10 +48,7 @@ namespace MediaBrowser.Server.Implementations.Drawing /// The _logger /// private readonly ILogger _logger; - /// - /// The _app paths - /// - private readonly IServerApplicationPaths _appPaths; + private readonly IFileSystem _fileSystem; private readonly string _imageSizeCachePath; @@ -62,13 +59,12 @@ namespace MediaBrowser.Server.Implementations.Drawing public ImageProcessor(ILogger logger, IServerApplicationPaths appPaths, IFileSystem fileSystem) { _logger = logger; - _appPaths = appPaths; _fileSystem = fileSystem; - _imageSizeCachePath = Path.Combine(_appPaths.ImageCachePath, "image-sizes"); - _croppedWhitespaceImageCachePath = Path.Combine(_appPaths.ImageCachePath, "cropped-images"); - _enhancedImageCachePath = Path.Combine(_appPaths.ImageCachePath, "enhanced-images"); - _resizedImageCachePath = Path.Combine(_appPaths.ImageCachePath, "resized-images"); + _imageSizeCachePath = Path.Combine(appPaths.ImageCachePath, "image-sizes"); + _croppedWhitespaceImageCachePath = Path.Combine(appPaths.ImageCachePath, "cropped-images"); + _enhancedImageCachePath = Path.Combine(appPaths.ImageCachePath, "enhanced-images"); + _resizedImageCachePath = Path.Combine(appPaths.ImageCachePath, "resized-images"); } public void AddParts(IEnumerable enhancers) -- cgit v1.2.3