Update kill_plex_streams.py
This commit is contained in:
parent
17b2180a09
commit
03b77821f1
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user