From 03b77821f1f63174e0ec5a95ac5266f3571f3577 Mon Sep 17 00:00:00 2001 From: blacktwin Date: Sat, 21 Oct 2017 14:59:23 -0400 Subject: [PATCH] Update kill_plex_streams.py --- killstream/kill_plex_streams.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/killstream/kill_plex_streams.py b/killstream/kill_plex_streams.py index 0a9fcb4..c2c43cb 100644 --- a/killstream/kill_plex_streams.py +++ b/killstream/kill_plex_streams.py @@ -19,7 +19,7 @@ plex = PlexServer(PLEX_URL, PLEX_TOKEN, session=sess) def kill_session(): for session in plex.sessions(): - user = session.username[0] + user = session.usernames[0] if user not in ignore_lst: title = (session.grandparentTitle + ' - ' if session.type == 'episode' else '') + session.title print("Killing {}'s stream of {} for {}".format(user, title, MESSAGE))