adding check in user_lst to omit pending invites.

Closing PR #185
This commit is contained in:
blacktwin 2019-09-27 09:38:34 -04:00
parent 1cbdb149f7
commit dce0dcfd23

View File

@ -167,7 +167,7 @@ if sess.verify is False:
plex = PlexServer(PLEX_URL, PLEX_TOKEN, session=sess)
account = plex.myPlexAccount()
user_lst = [x.title for x in plex.myPlexAccount().users() if x.servers]
user_lst = [x.title for x in plex.myPlexAccount().users() if x.servers and x.friend]
sections = plex.library.sections()
sections_dict = {x.key: x.title for x in sections}
filters_lst = list(set([y for x in sections if x.type != 'photo' for y in x.ALLOWED_FILTERS]))