added ignore
This commit is contained in:
parent
5d2f387955
commit
17b2180a09
@ -20,8 +20,9 @@ plex = PlexServer(PLEX_URL, PLEX_TOKEN, session=sess)
|
|||||||
def kill_session():
|
def kill_session():
|
||||||
for session in plex.sessions():
|
for session in plex.sessions():
|
||||||
user = session.username[0]
|
user = session.username[0]
|
||||||
title = (session.grandparentTitle + ' - ' if session.type == 'episode' else '') + session.title
|
if user not in ignore_lst:
|
||||||
print("Killing {}'s stream of {} for {}".format(user, title, MESSAGE))
|
title = (session.grandparentTitle + ' - ' if session.type == 'episode' else '') + session.title
|
||||||
session.stop(reason=MESSAGE)
|
print("Killing {}'s stream of {} for {}".format(user, title, MESSAGE))
|
||||||
|
session.stop(reason=MESSAGE)
|
||||||
|
|
||||||
kill_session()
|
kill_session()
|
||||||
|
Loading…
Reference in New Issue
Block a user