From fb7c16ee80ace4e298eb2e84c3b25a11f19547fd Mon Sep 17 00:00:00 2001 From: Blacktwin Date: Sat, 5 May 2018 08:20:48 -0400 Subject: [PATCH] == not in --- killstream/kill_all_more_than.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/killstream/kill_all_more_than.py b/killstream/kill_all_more_than.py index 2f6c5e6..b3401cb 100644 --- a/killstream/kill_all_more_than.py +++ b/killstream/kill_all_more_than.py @@ -41,7 +41,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] in user: + if session.usernames[0] == user: print('Killing all of {user}\'s streams. Too many streams'.format(user=user)) session.stop(reason=MESSAGE)