From dce0dcfd234110e57d5ef09669318c0b41c5953c Mon Sep 17 00:00:00 2001 From: blacktwin Date: Fri, 27 Sep 2019 09:38:34 -0400 Subject: [PATCH] adding check in user_lst to omit pending invites. Closing PR #185 --- fun/playlist_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fun/playlist_manager.py b/fun/playlist_manager.py index a97aa30..d09d14b 100644 --- a/fun/playlist_manager.py +++ b/fun/playlist_manager.py @@ -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]))