mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-12 08:16:06 -07:00
parent
94eb5cdef3
commit
e2326cd06a
1 changed files with 56 additions and 26 deletions
|
@ -211,32 +211,62 @@ def mask_session_info(list_of_dicts, mask_metadata=True):
|
||||||
session_library_ids = get_session_shared_libraries()
|
session_library_ids = get_session_shared_libraries()
|
||||||
session_library_filters = get_session_library_filters()
|
session_library_filters = get_session_library_filters()
|
||||||
|
|
||||||
keys_to_mask = {'user_id': '',
|
keys_to_mask = {
|
||||||
|
'user_id': '',
|
||||||
'user': 'Plex User',
|
'user': 'Plex User',
|
||||||
'username': 'Plex User',
|
'username': 'Plex User',
|
||||||
|
'email': '',
|
||||||
'friendly_name': 'Plex User',
|
'friendly_name': 'Plex User',
|
||||||
'user_thumb': common.DEFAULT_USER_THUMB,
|
'user_thumb': common.DEFAULT_USER_THUMB,
|
||||||
'ip_address': 'N/A',
|
'ip_address': 'N/A',
|
||||||
|
'ip_address_public': 'N/A',
|
||||||
'machine_id': '',
|
'machine_id': '',
|
||||||
'player': 'Player'
|
'player': 'Player'
|
||||||
}
|
}
|
||||||
|
|
||||||
metadata_to_mask = {'media_index': '0',
|
metadata_to_mask = {
|
||||||
'parent_media_index': '0',
|
'actors': [],
|
||||||
'art': common.DEFAULT_ART,
|
'art': common.DEFAULT_ART,
|
||||||
'parent_thumb': common.DEFAULT_POSTER_THUMB,
|
|
||||||
'grandparent_thumb': common.DEFAULT_POSTER_THUMB,
|
|
||||||
'thumb': common.DEFAULT_POSTER_THUMB,
|
|
||||||
'bif_thumb': '',
|
'bif_thumb': '',
|
||||||
'title': 'Plex Media',
|
'content_rating': '',
|
||||||
'parent_title': 'Plex Media',
|
'directors': [],
|
||||||
'grandparent_title': 'Plex Media',
|
'edition_title': '',
|
||||||
'original_title': 'Plex Media',
|
'file': '',
|
||||||
'rating_key': '',
|
'full_title': 'Plex Media',
|
||||||
'parent_rating_key': '',
|
'genres': [],
|
||||||
|
'grandparent_guid': '',
|
||||||
|
'grandparent_guids': [],
|
||||||
'grandparent_rating_key': '',
|
'grandparent_rating_key': '',
|
||||||
|
'grandparent_thumb': common.DEFAULT_POSTER_THUMB,
|
||||||
|
'grandparent_title': 'Plex Media',
|
||||||
|
'grandparent_year': '',
|
||||||
|
'guid': '',
|
||||||
|
'guids': [],
|
||||||
|
'labels': [],
|
||||||
|
'library_name': '',
|
||||||
|
'media_index': '0',
|
||||||
|
'original_title': 'Plex Media',
|
||||||
|
'originally_available_at': '',
|
||||||
|
'parent_guid': '',
|
||||||
|
'parent_guids': [],
|
||||||
|
'parent_media_index': '0',
|
||||||
|
'parent_rating_key': '',
|
||||||
|
'parent_thumb': common.DEFAULT_POSTER_THUMB,
|
||||||
|
'parent_title': 'Plex Media',
|
||||||
|
'parent_year': '',
|
||||||
|
'rating_key': '',
|
||||||
|
'section_id': '',
|
||||||
|
'shared_libraries': [],
|
||||||
|
'sort_title': 'Plex Media',
|
||||||
|
'studio': '',
|
||||||
|
'summary': '',
|
||||||
|
'tagline': '',
|
||||||
|
'thumb': common.DEFAULT_POSTER_THUMB,
|
||||||
|
'title': 'Plex Media',
|
||||||
|
'writers': [],
|
||||||
'year': '',
|
'year': '',
|
||||||
'last_played': 'Plex Media'
|
|
||||||
|
'last_played': 'Plex Media',
|
||||||
}
|
}
|
||||||
|
|
||||||
list_of_dicts = friendly_name_to_username(list_of_dicts)
|
list_of_dicts = friendly_name_to_username(list_of_dicts)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue