Change get_users API command to pull from database instead of Plex.tv

This commit is contained in:
JonnyWong16 2018-06-30 16:45:56 -07:00
parent 9355d31a27
commit 5cf1cac7e9
4 changed files with 44 additions and 13 deletions

View file

@ -5214,15 +5214,21 @@ class WebInterface(object):
Returns:
json:
[{"email": "Jon.Snow.1337@CastleBlack.com",
[{"allow_guest": 1,
"do_notify": 1,
"email": "Jon.Snow.1337@CastleBlack.com",
"filter_all": "",
"filter_movies": "",
"filter_music": "",
"filter_photos": "",
"filter_tv": "",
"is_allow_sync": null,
"is_home_user": "1",
"is_restricted": "0",
"is_admin": 0,
"is_allow_sync": 1,
"is_home_user": 1,
"is_restricted": 0,
"keep_history": 1,
"server_token": "PU9cMuQZxJKFBtGqHk68",
"shared_libraries": "1;2;3",
"thumb": "https://plex.tv/users/k10w42309cynaopq/avatar",
"user_id": "133788",
"username": "Jon Snow"
@ -5232,8 +5238,8 @@ class WebInterface(object):
]
```
"""
plex_tv = plextv.PlexTV()
result = plex_tv.get_full_users_list()
user_data = users.Users()
result = user_data.get_users()
if result:
return result