From c81dcf6477edd64325bceeade16cdd24bd0c8790 Mon Sep 17 00:00:00 2001 From: blacktwin Date: Tue, 2 Jan 2018 23:57:27 -0500 Subject: [PATCH] players --- killstream/kill_outsider_stream.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/killstream/kill_outsider_stream.py b/killstream/kill_outsider_stream.py index ff5cb5f..d13abc6 100644 --- a/killstream/kill_outsider_stream.py +++ b/killstream/kill_outsider_stream.py @@ -36,7 +36,7 @@ plex = PlexServer(PLEX_URL, PLEX_TOKEN, session=sess) def kill_session(user): for session in plex.sessions(): # Check for users stream - if session.usernames[0] == user and session.player[0].local is False: + if session.usernames[0] == user and session.players[0].local is False: title = (session.grandparentTitle + ' - ' if session.type == 'episode' else '') + session.title print('{user} is watching {title} and they might be asleep.'.format(user=user, title=title)) session.stop(reason=MESSAGE)