From eb345784888f7d7e621cca534b24f3514d55615e Mon Sep 17 00:00:00 2001 From: Matt Date: Tue, 9 Jun 2020 19:53:32 -0400 Subject: [PATCH] Sanitize the server URL in log messages --- jellyfin_kodi/helper/loghandler.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/jellyfin_kodi/helper/loghandler.py b/jellyfin_kodi/helper/loghandler.py index a0f6003e..97842584 100644 --- a/jellyfin_kodi/helper/loghandler.py +++ b/jellyfin_kodi/helper/loghandler.py @@ -44,11 +44,8 @@ class LogHandler(logging.StreamHandler): if server.get('AccessToken'): self.sensitive['Token'].append(server['AccessToken']) - if server.get('LocalAddress'): - self.sensitive['Server'].append(server['LocalAddress'].split('://')[1]) - - if server.get('ManualAddress'): - self.sensitive['Server'].append(server['ManualAddress'].split('://')[1]) + if server.get('address'): + self.sensitive['Server'].append(server['address'].split('://')[1]) self.mask_info = settings('maskInfo.bool')