diff options
| author | Joshua M. Boniface <joshua@boniface.me> | 2020-11-27 01:59:58 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-27 01:59:58 -0500 |
| commit | 9169a28df195b999c3813f842780dd7763bbcc9f (patch) | |
| tree | b64a9107b52c1bb3017be11da760f36d3aca113b /Emby.Server.Implementations/LiveTv | |
| parent | 536ac4c11cfff5349b973892f206fe5cfb0ae6f0 (diff) | |
| parent | 38932fc7d1c6851b6a282e9723bea471ef494b96 (diff) | |
Merge pull request #4588 from jellyfin/hex
Remove Hex class as the BCL has one now
Diffstat (limited to 'Emby.Server.Implementations/LiveTv')
| -rw-r--r-- | Emby.Server.Implementations/LiveTv/Listings/SchedulesDirect.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/LiveTv/Listings/SchedulesDirect.cs b/Emby.Server.Implementations/LiveTv/Listings/SchedulesDirect.cs index 5d17ba1de9..f181eb7a0b 100644 --- a/Emby.Server.Implementations/LiveTv/Listings/SchedulesDirect.cs +++ b/Emby.Server.Implementations/LiveTv/Listings/SchedulesDirect.cs @@ -647,7 +647,9 @@ 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 = Hex.Encode(hashedPasswordBytes); + // TODO: remove ToLower when Convert.ToHexString supports lowercase + // Schedules Direct requires the hex to be lowercase + string hashedPassword = Convert.ToHexString(hashedPasswordBytes).ToLowerInvariant(); options.Content = new StringContent("{\"username\":\"" + username + "\",\"password\":\"" + hashedPassword + "\"}", Encoding.UTF8, MediaTypeNames.Application.Json); using var response = await Send(options, false, null, cancellationToken).ConfigureAwait(false); |
