diff options
| author | Bond_009 <bond.009@outlook.com> | 2020-09-16 14:16:44 +0200 |
|---|---|---|
| committer | Bond_009 <bond.009@outlook.com> | 2020-09-16 14:16:44 +0200 |
| commit | 2dbf73b98962bcab1de06f8699e621e4e75a96fb (patch) | |
| tree | fe5368823e2062d3a98c54428727a31403ab0faf /Jellyfin.Api/Controllers/LiveTvController.cs | |
| parent | 6bf0acb854683377bebad3ca27de17706519c420 (diff) | |
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))); } |
