Update wait_kill_pause_notify_main.py

This commit is contained in:
blacktwin 2017-10-23 12:52:12 -04:00 committed by GitHub
parent 3007863ea0
commit 8a63cb5a8b

View File

@ -115,6 +115,6 @@ if __name__ == '__main__':
sub_path = os.path.join(fileDir, sub_script)
for session in plex.sessions():
if session.sessionKey == int(sessionKey) and session.usernames[0] in USER_IGNORE:
if session.sessionKey == int(sessionKey) and session.usernames[0] not in USER_IGNORE:
subprocess.Popen([sys.executable, sub_path, sessionKey, TIMEOUT, INTERVAL],
startupinfo=startupinfo)