The Free Software Media System - Server Backend & API
Fix build
Bond_009c751ba9f70ca
diff --git a/Emby.Server.Implementations/HttpServer/HttpResultFactory.cs b/Emby.Server.Implementations/HttpServer/HttpResultFactory.csindex cefcaa835f..98a4f140e3 100644--- a/Emby.Server.Implementations/HttpServer/HttpResultFactory.cs+++ b/Emby.Server.Implementations/HttpServer/HttpResultFactory.cs@@ -440,7 +440,7 @@ namespace Emby.Server.Implementations.HttpServerpublic Task<object> GetStaticFileResult(IRequest requestContext,string path,- FileShareMode fileShare = FileShareMode.Read)+ FileShare fileShare = FileShare.Read){if (string.IsNullOrEmpty(path)){@@ -464,7 +464,7 @@ namespace Emby.Server.Implementations.HttpServerthrow new ArgumentException("Path can't be empty.", nameof(options));}- if (fileShare != FileShareMode.Read && fileShare != FileShareMode.ReadWrite)+ if (fileShare != FileShare.Read && fileShare != FileShare.ReadWrite){throw new ArgumentException("FileShare must be either Read or ReadWrite");}@@ -492,9 +492,9 @@ namespace Emby.Server.Implementations.HttpServer/// <param name="path">The path.</param>/// <param name="fileShare">The file share.</param>/// <returns>Stream.</returns>- private Stream GetFileStream(string path, FileShareMode fileShare)+ private Stream GetFileStream(string path, FileShare fileShare){- return _fileSystem.GetFileStream(path, FileOpenMode.Open, FileAccessMode.Read, fileShare);+ return new FileStream(path, FileMode.Open, FileAccess.Read, fileShare);}public Task<object> GetStaticResult(IRequest requestContext,