diff options
| author | Anthony Lavado <anthony@lavado.ca> | 2020-09-23 10:30:13 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-23 10:30:13 -0400 |
| commit | 5aa743a6a2946fcee9ee57015c8cfc0152b2d914 (patch) | |
| tree | 2405b7b3c003c09e76b3f75ace11e911549bf07c /Jellyfin.Api/Controllers/LiveTvController.cs | |
| parent | 25bfef58fc8eadfcca2219721693864f8969b14a (diff) | |
| parent | 0007756a5ee0b0da3ac238ccc76f4be198ee4eed (diff) | |
Merge pull request #4163 from Bond-009/minor4
Minor improvements
Diffstat (limited to 'Jellyfin.Api/Controllers/LiveTvController.cs')
| -rw-r--r-- | Jellyfin.Api/Controllers/LiveTvController.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Jellyfin.Api/Controllers/LiveTvController.cs b/Jellyfin.Api/Controllers/LiveTvController.cs index 32ebfbd98..3557e6304 100644 --- a/Jellyfin.Api/Controllers/LiveTvController.cs +++ b/Jellyfin.Api/Controllers/LiveTvController.cs @@ -1017,9 +1017,9 @@ namespace Jellyfin.Api.Controllers [FromQuery] bool validateListings = false, [FromQuery] bool validateLogin = false) { - using var sha = SHA1.Create(); if (!string.IsNullOrEmpty(pw)) { + using var sha = SHA1.Create(); listingsProviderInfo.Password = Hex.Encode(sha.ComputeHash(Encoding.UTF8.GetBytes(pw))); } |
