From 1409209e58b0e9c4cd1cc70df25ee0ed9f43ea1d Mon Sep 17 00:00:00 2001 From: Blacktwin Date: Sat, 5 Jan 2019 01:04:43 -0500 Subject: [PATCH] #133 only include users who have active shares --- 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 d4a3351..2f3f5a6 100644 --- a/fun/playlist_manager.py +++ b/fun/playlist_manager.py @@ -127,7 +127,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()] +user_lst = [x.title for x in plex.myPlexAccount().users() if x.servers] sections = plex.library.sections() sections_dict = {x.key: x.title for x in sections} filter_lst = list(set([y for x in sections if x.type != 'photo' for y in x.ALLOWED_FILTERS]))