From 776fe7334b9df4861db53bd1c14116535a0373b8 Mon Sep 17 00:00:00 2001 From: Blacktwin Date: Thu, 14 Jun 2018 00:47:21 -0400 Subject: [PATCH] show --jbop choices. --- killstream/kill_stream.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/killstream/kill_stream.py b/killstream/kill_stream.py index 6ff455d..0070cb3 100644 --- a/killstream/kill_stream.py +++ b/killstream/kill_stream.py @@ -57,7 +57,7 @@ sess.verify = False # '/path/to/certfile' # If verify is set to a path to a directory, # the directory must have been processed using the c_rehash utility supplied with OpenSSL. -SELECTOR = ['stream', 'allStreams', 'limit', 'delay'] +SELECTOR = ['stream', 'allStreams'] def send_notification(subject_text, body_text, notifier_id): @@ -121,7 +121,7 @@ def terminate_session(session_id, message): if __name__ == "__main__": parser = argparse.ArgumentParser(description="Killing Plex streams from Tautulli.") - parser.add_argument('--jbop', help='Kill selector.', required=True, choices=SELECTOR) + parser.add_argument('--jbop', help='Kill selector.\nChoices: (%(choices)s)', required=True, choices=SELECTOR) parser.add_argument('--userId', help='The unique identifier for the user.', type=int) parser.add_argument('--username', help='The username of the person streaming.') parser.add_argument('--sessionId', help='The unique identifier for the stream.', required=True)