From 33a1ebdb1a8817b28668daca3cc40a88c04b1dc9 Mon Sep 17 00:00:00 2001 From: JonnyWong16 Date: Mon, 12 Feb 2018 17:40:11 -0800 Subject: [PATCH] Show location for masked session info --- data/interfaces/default/current_activity_instance.html | 3 ++- plexpy/session.py | 3 +-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/data/interfaces/default/current_activity_instance.html b/data/interfaces/default/current_activity_instance.html index 1c6c32ab..61467084 100644 --- a/data/interfaces/default/current_activity_instance.html +++ b/data/interfaces/default/current_activity_instance.html @@ -276,8 +276,9 @@ DOCUMENTATION :: END
  • Location
    + ${data['location'].upper()}: % if data['ip_address'] != 'N/A': - ${data['location'].upper()}: ${data['ip_address']} + ${data['ip_address']} diff --git a/plexpy/session.py b/plexpy/session.py index f885ef48..23e9b02d 100644 --- a/plexpy/session.py +++ b/plexpy/session.py @@ -191,8 +191,7 @@ def mask_session_info(list_of_dicts, mask_metadata=True): 'user_thumb': common.DEFAULT_USER_THUMB, 'ip_address': 'N/A', 'machine_id': '', - 'player': 'Player', - 'location': '' + 'player': 'Player' } metadata_to_mask = {'media_index': '0',