== not in

This commit is contained in:
Blacktwin 2018-05-05 08:20:48 -04:00
parent 35382673a6
commit fb7c16ee80

View File

@ -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)