The Free Software Media System - Server Backend & API
update cache file cleanup
Luke Pulverentibd4c99b01a60
diff --git a/Emby.Drawing/ImageProcessor.cs b/Emby.Drawing/ImageProcessor.csindex 3288229a2f..80ebbb7190 100644--- a/Emby.Drawing/ImageProcessor.cs+++ b/Emby.Drawing/ImageProcessor.cs@@ -246,7 +246,7 @@ namespace Emby.Drawingvar newHeight = Convert.ToInt32(newSize.Height);_fileSystem.CreateDirectory(Path.GetDirectoryName(cacheFilePath));- var tmpPath = Path.Combine(_appPaths.TempDirectory, Guid.NewGuid().ToString("N"));+ var tmpPath = Path.ChangeExtension(Path.Combine(_appPaths.TempDirectory, Guid.NewGuid().ToString("N")), Path.GetExtension(cacheFilePath));_fileSystem.CreateDirectory(Path.GetDirectoryName(tmpPath));await _imageProcessingSemaphore.WaitAsync().ConfigureAwait(false);@@ -433,7 +433,7 @@ namespace Emby.Drawingtry{_fileSystem.CreateDirectory(Path.GetDirectoryName(croppedImagePath));- var tmpPath = Path.Combine(_appPaths.TempDirectory, Guid.NewGuid().ToString("N"));+ var tmpPath = Path.ChangeExtension(Path.Combine(_appPaths.TempDirectory, Guid.NewGuid().ToString("N")), Path.GetExtension(croppedImagePath));_fileSystem.CreateDirectory(Path.GetDirectoryName(tmpPath));await _imageProcessingSemaphore.WaitAsync().ConfigureAwait(false);diff --git a/MediaBrowser.Api/Playback/StreamState.cs b/MediaBrowser.Api/Playback/StreamState.csindex d0d0337c26..da6be97b61 100644--- a/MediaBrowser.Api/Playback/StreamState.cs+++ b/MediaBrowser.Api/Playback/StreamState.cs@@ -80,6 +80,10 @@ namespace MediaBrowser.Api.Playback{return 10;}+ if (userAgent.IndexOf("cfnetwork", StringComparison.OrdinalIgnoreCase) != -1)+ {+ return 10;+ }return 6;}diff --git a/MediaBrowser.Common.Implementations/ScheduledTasks/Tasks/DeleteCacheFileTask.cs b/MediaBrowser.Common.Implementations/ScheduledTasks/Tasks/DeleteCacheFileTask.csindex b4cc5d7530..0a2b9222a0 100644--- a/MediaBrowser.Common.Implementations/ScheduledTasks/Tasks/DeleteCacheFileTask.cs+++ b/MediaBrowser.Common.Implementations/ScheduledTasks/Tasks/DeleteCacheFileTask.cs@@ -71,7 +71,7 @@ namespace MediaBrowser.Common.Implementations.ScheduledTasks.Tasksprogress.Report(90);- minDateModified = DateTime.UtcNow.AddDays(-2);+ minDateModified = DateTime.UtcNow.AddDays(-1);try{