aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBreno Alvim <alvimbrenosilva6@gmail.com>2026-06-23 23:13:33 -0300
committerBreno Alvim <alvimbrenosilva6@gmail.com>2026-06-23 23:13:33 -0300
commite41f41559426a5996bc58a28af5e82f432557ea4 (patch)
tree626c2b78f066f39e1916f5d1c6af704b20645492 /src
parent987744529aadd3a5e0da60ae1e6dec0e6e8ea469 (diff)
Use Convert.ToHexStringLower for Schedules Direct password hash
Diffstat (limited to 'src')
-rw-r--r--src/Jellyfin.LiveTv/Listings/SchedulesDirect.cs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/Jellyfin.LiveTv/Listings/SchedulesDirect.cs b/src/Jellyfin.LiveTv/Listings/SchedulesDirect.cs
index c1ccb24bf4..d456bea469 100644
--- a/src/Jellyfin.LiveTv/Listings/SchedulesDirect.cs
+++ b/src/Jellyfin.LiveTv/Listings/SchedulesDirect.cs
@@ -748,9 +748,7 @@ namespace Jellyfin.LiveTv.Listings
#pragma warning disable CA5350 // SchedulesDirect is always SHA1.
var hashedPasswordBytes = SHA1.HashData(Encoding.ASCII.GetBytes(password));
#pragma warning restore CA5350
- // TODO: remove ToLower when Convert.ToHexString supports lowercase
- // Schedules Direct requires the hex to be lowercase
- string hashedPassword = Convert.ToHexString(hashedPasswordBytes).ToLowerInvariant();
+ string hashedPassword = Convert.ToHexStringLower(hashedPasswordBytes);
options.Content = new StringContent("{\"username\":\"" + username + "\",\"password\":\"" + hashedPassword + "\"}", Encoding.UTF8, MediaTypeNames.Application.Json);
var root = await Request<TokenDto>(options, false, null, cancellationToken).ConfigureAwait(false);