parent
4771f736b0
commit
51ec69f651
10
src/plex.py
10
src/plex.py
|
|
@ -545,10 +545,7 @@ class Plex:
|
||||||
user_other = None
|
user_other = None
|
||||||
# If type of user is dict
|
# If type of user is dict
|
||||||
if user_mapping:
|
if user_mapping:
|
||||||
if user in user_mapping.keys():
|
user_other = search_mapping(user_mapping, user)
|
||||||
user_other = user_mapping[user]
|
|
||||||
elif user in user_mapping.values():
|
|
||||||
user_other = search_mapping(user_mapping, user)
|
|
||||||
|
|
||||||
for index, value in enumerate(self.users):
|
for index, value in enumerate(self.users):
|
||||||
username_title = (
|
username_title = (
|
||||||
|
|
@ -591,10 +588,7 @@ class Plex:
|
||||||
for library, videos in libraries.items():
|
for library, videos in libraries.items():
|
||||||
library_other = None
|
library_other = None
|
||||||
if library_mapping:
|
if library_mapping:
|
||||||
if library in library_mapping.keys():
|
library_other = search_mapping(library_mapping, library)
|
||||||
library_other = library_mapping[library]
|
|
||||||
elif library in library_mapping.values():
|
|
||||||
library_other = search_mapping(library_mapping, library)
|
|
||||||
|
|
||||||
# if library in plex library list
|
# if library in plex library list
|
||||||
library_list = user_plex.library.sections()
|
library_list = user_plex.library.sections()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue