The Free Software Media System - Server Backend & API
fix remote image service not ensuring save directory existence
Luke Pulverentid81349036337
diff --git a/MediaBrowser.Api/Images/RemoteImageService.cs b/MediaBrowser.Api/Images/RemoteImageService.csindex f92d9d581b..1084e99d07 100644--- a/MediaBrowser.Api/Images/RemoteImageService.cs+++ b/MediaBrowser.Api/Images/RemoteImageService.cs@@ -359,6 +359,8 @@ namespace MediaBrowser.Api.Imagesvar fullCachePath = GetFullCachePath(urlHash + "." + ext);+ Directory.CreateDirectory(Path.GetDirectoryName(fullCachePath));+using (var stream = result.Content){using (var filestream = _fileSystem.GetFileStream(fullCachePath, FileMode.Create, FileAccess.Write, FileShare.Read, true))