aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeil Burrows <neil.burrows@nvable.com>2020-11-08 17:16:51 +0000
committerNeil Burrows <neil.burrows@nvable.com>2020-11-08 17:16:51 +0000
commite9d35cb2cab134c1f285d695778424fafd8b35d6 (patch)
tree0346bcd33658fa67780c8af130c11018a8683e50
parent866c41519f2dcf40bb881cec4d8995e17a99b596 (diff)
Switching to the more efficient Hex.Encode function
-rw-r--r--Emby.Server.Implementations/LiveTv/Listings/SchedulesDirect.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/LiveTv/Listings/SchedulesDirect.cs b/Emby.Server.Implementations/LiveTv/Listings/SchedulesDirect.cs
index 8735745c6..aacadde50 100644
--- a/Emby.Server.Implementations/LiveTv/Listings/SchedulesDirect.cs
+++ b/Emby.Server.Implementations/LiveTv/Listings/SchedulesDirect.cs
@@ -647,7 +647,7 @@ namespace Emby.Server.Implementations.LiveTv.Listings
{
using var options = new HttpRequestMessage(HttpMethod.Post, ApiUrl + "/token");
var hashedPasswordBytes = _cryptoProvider.ComputeHash("SHA1", Encoding.ASCII.GetBytes(password), Array.Empty<byte>());
- string hashedPassword = string.Concat(hashedPasswordBytes.Select(b => b.ToString("x2", CultureInfo.InvariantCulture)));
+ string hashedPassword = Hex.Encode(hashedPasswordBytes);
options.Content = new StringContent("{\"username\":\"" + username + "\",\"password\":\"" + hashedPassword + "\"}", Encoding.UTF8, MediaTypeNames.Application.Json);
using var response = await Send(options, false, null, cancellationToken).ConfigureAwait(false);