The Free Software Media System - Server Backend & API
Fix build
Bond_00952c1b45feb75
diff --git a/Emby.Server.Implementations/HttpClientManager/HttpClientManager.cs b/Emby.Server.Implementations/HttpClientManager/HttpClientManager.csindex 9ca33d7db7..a933b53f5c 100644--- a/Emby.Server.Implementations/HttpClientManager/HttpClientManager.cs+++ b/Emby.Server.Implementations/HttpClientManager/HttpClientManager.cs@@ -1,5 +1,6 @@using System;using System.Collections.Concurrent;+using System.Globalization;using System.IO;using System.Linq;using System.Net;diff --git a/Emby.Server.Implementations/Security/AuthenticationRepository.cs b/Emby.Server.Implementations/Security/AuthenticationRepository.csindex 26a08cbe9a..0b5ee5d039 100644--- a/Emby.Server.Implementations/Security/AuthenticationRepository.cs+++ b/Emby.Server.Implementations/Security/AuthenticationRepository.cs@@ -97,7 +97,7 @@ namespace Emby.Server.Implementations.Securitystatement.TryBind("@AppName", info.AppName);statement.TryBind("@AppVersion", info.AppVersion);statement.TryBind("@DeviceName", info.DeviceName);- statement.TryBind("@UserId", (info.UserId.Equals(Guid.Empty) ? null : info.UserId.ToString("N")));+ statement.TryBind("@UserId", (info.UserId.Equals(Guid.Empty) ? null : info.UserId.ToString("N", CultureInfo.InvariantCulture)));statement.TryBind("@UserName", info.UserName);statement.TryBind("@IsActive", true);statement.TryBind("@DateCreated", info.DateCreated.ToDateTimeParamValue());@@ -131,7 +131,7 @@ namespace Emby.Server.Implementations.Securitystatement.TryBind("@AppName", info.AppName);statement.TryBind("@AppVersion", info.AppVersion);statement.TryBind("@DeviceName", info.DeviceName);- statement.TryBind("@UserId", (info.UserId.Equals(Guid.Empty) ? null : info.UserId.ToString("N")));+ statement.TryBind("@UserId", (info.UserId.Equals(Guid.Empty) ? null : info.UserId.ToString("N", CultureInfo.InvariantCulture)));statement.TryBind("@UserName", info.UserName);statement.TryBind("@DateCreated", info.DateCreated.ToDateTimeParamValue());statement.TryBind("@DateLastActivity", info.DateLastActivity.ToDateTimeParamValue());diff --git a/Emby.Server.Implementations/Session/SessionManager.cs b/Emby.Server.Implementations/Session/SessionManager.csindex 7ee573da5f..0347100a48 100644--- a/Emby.Server.Implementations/Session/SessionManager.cs+++ b/Emby.Server.Implementations/Session/SessionManager.cs@@ -1041,7 +1041,7 @@ namespace Emby.Server.Implementations.Session{IEnumerable<Task> GetTasks(){- var messageId = Guid.NewGuid().ToString("N");+ var messageId = Guid.NewGuid().ToString("N", CultureInfo.InvariantCulture);foreach (var session in sessions){var controllers = session.SessionControllers;diff --git a/MediaBrowser.Api/Playback/BaseStreamingService.cs b/MediaBrowser.Api/Playback/BaseStreamingService.csindex 114d3f7a24..d9f4a583c9 100644--- a/MediaBrowser.Api/Playback/BaseStreamingService.cs+++ b/MediaBrowser.Api/Playback/BaseStreamingService.cs@@ -215,12 +215,6 @@ namespace MediaBrowser.Api.Playbackvar encodingOptions = ApiEntryPoint.Instance.GetEncodingOptions();-<<<<<<< HEAD-=======- var transcodingId = Guid.NewGuid().ToString("N", CultureInfo.InvariantCulture);- var commandLineArgs = GetCommandLineArguments(outputPath, encodingOptions, state, true);-->>>>>>> Use CultureInvariant string conversion for Guidsvar process = new Process(){StartInfo = new ProcessStartInfo()@@ -246,7 +240,7 @@ namespace MediaBrowser.Api.Playbackvar transcodingJob = ApiEntryPoint.Instance.OnTranscodeBeginning(outputPath,state.Request.PlaySessionId,state.MediaSource.LiveStreamId,- Guid.NewGuid().ToString("N"),+ Guid.NewGuid().ToString("N", CultureInfo.InvariantCulture),TranscodingJobType,process,state.Request.DeviceId,