blacktwin / JBOPS

Just a Bunch Of Plex Scripts
1.66k stars 307 forks source link

Can anybody please explain how Limit user to total time watching works? #290

Closed Anuruddha094 closed 3 years ago

Anuruddha094 commented 3 years ago

Hi, I just try to implement Limit user to total time watching. It looks like it's not working as I expected. The total count resets on every tautulli restarts.

my settings:

Triggers: Playback Start, Playback Resume

--jbop time --username {username} --sessionId {session_id} --limit days=0 --limit hours=2 --killMessage "You have met your limit of 2 hours."

my requirement as follows.

I need to allow user to watch only 2 hours. After that script should kill the play back even user try to play something after 7 days etc.

thank you.

Log: https://gist.github.com/Anuruddha094/bac8a3b76042c98b09ce8e40b3c70b91

blacktwin commented 3 years ago

Why even include a dummy log...

You're one example up from the example you want to use.

Anuruddha094 commented 3 years ago

Why even include a dummy log...

You're one example up from the example you want to use.

@blacktwin Thank you very much for the reply. I'm sorry I didn't add the log files. I thought it's not necessary as I just need know what this script exactly doing with those arguments.

here is my log: https://gist.github.com/Anuruddha094/bac8a3b76042c98b09ce8e40b3c70b91

cheers

blacktwin commented 3 years ago

2021-04-06 19:31:38 - DEBUG :: Thread-154 : Tautulli Notifiers :: Script returned: Total time (99) is less than limit (7200).

They haven't reached the two hours.

The total count resets on every tautulli restarts.

Why are you restarting it often? Your logs are not showing any restarts and only one reference to the script running.

After that script should kill the play back even user try to play something after 7 days etc.

I think I misread this initially, you had the correct example.

--jbop time --username {username} --sessionId {session_id} --limit hours=2 --killMessage "You have met your limit of 2 hours."

--limit days=0 is not needed.

Anuruddha094 commented 3 years ago

@blacktwin thank you very much for the great support. Actually I'm not restarting tautulli every time. If any case if I restart my pc for windows update or something.

--jbop time --username {username} --sessionId {session_id} --limit hours=2 --killMessage "You have met your limit of 2 hours.

So basically if I add --limit days=0 argument, script will reset the counter every 24 hours and if I removed it, it won't reset anymore. so it kills the stream after it exceed 7200 seconds for particular user even he plays something after 7 days or so on. Did I get it correct?

cheers

blacktwin commented 3 years ago

So basically if I add --limit days=0 argument, script will reset the counter every 24 hours

No. --limit days=0 is just not needed. Just like adding --limit minutes=0 would be not needed. You don't need to account for a 0 value.

it kills the stream after it exceed 7200 seconds for particular user even he plays something after 7 days or so on.

Yes, using the example provided above, this is the expected behavior.

Anuruddha094 commented 3 years ago

@blacktwin thank you very much. That's what I exactly needed. So user never ever can play anything after he exceeded 7200 seconds and until I manually add a condition to skip the script for particular user.

cheers.

Anuruddha094 commented 3 years ago

@blacktwin Hi I'm back. It looks like script reset the counter to zero every 24 hours. any fix for it?

thank you.

blacktwin commented 3 years ago

Logs? Your entire Tautulli log, please.

Anuruddha094 commented 3 years ago

Logs? Your entire Tautulli log, please.

@blacktwin sorry I didn't attached logs earlier. Here is my 2 days tautulli logs for your examination.

log: https://gist.github.com/Anuruddha094/ff101c72f054117ecdc079c0335140f4

Thank you for your fantastic support.

blacktwin commented 3 years ago

Ok, I see it. Let me figure out whats happening. It been awhile since I've touched this script.

Anuruddha094 commented 3 years ago

Ok, I see it. Let me figure out whats happening. It been awhile since I've touched this script.

@blacktwin thank you very much.

Anuruddha094 commented 3 years ago

@blacktwin I played a movie just before 12AM and just after 12AM. I can confirm script reset the counter to zero after 12AM. Please find the bold text on the log.

For your reference I extrated script return part from the log.

2021-04-12 23:59:15 - DEBUG :: Thread-549 : Tautulli Notifiers :: Script returned: Total time (247) is less than limit (7200).

2021-04-12 23:59:39 - DEBUG :: Thread-556 : Tautulli Notifiers :: Script returned: Total time (264) is less than limit (7200).

2021-04-13 00:05:46 - DEBUG :: Thread-571 : Tautulli Notifiers :: Script returned: Total time (7) is less than limit (7200).

new log: https://gist.github.com/Anuruddha094/14705a998d54dfcba0e379c64afb3488

thank you for your help.

cheers

----------------- tautulli.log ----------------- 2021-04-12 23:58:28 - DEBUG :: Thread-16 : Tautulli ActivityHandler :: Session 300 started by user 15134663 (John Doe 2) with ratingKey 18425 (preroll-04). 2021-04-12 23:58:28 - DEBUG :: Thread-2 : Tautulli NotificationHandler :: Notifiers enabled for notify_action 'on_play'. 2021-04-12 23:58:28 - DEBUG :: Thread-2 : Tautulli NotificationHandler :: Checking global notification conditions. 2021-04-12 23:58:28 - DEBUG :: Thread-2 : Tautulli NotificationHandler :: Global notification conditions evaluated to 'True'. 2021-04-12 23:58:28 - DEBUG :: Thread-2 : Tautulli Helpers :: Image 'preroll-04' (poster) transformed on Cloudinary. 2021-04-12 23:58:28 - DEBUG :: Thread-2 : Tautulli NotificationHandler :: Checking custom notification conditions for notifier_id 8. 2021-04-12 23:58:28 - DEBUG :: Thread-2 : Tautulli NotificationHandler :: {1} video_resolution | is | '4k' > '1080' > False 2021-04-12 23:58:28 - DEBUG :: Thread-2 : Tautulli NotificationHandler :: {2} transcode_decision | is | 'transcode' > 'transcode' > True 2021-04-12 23:58:28 - DEBUG :: Thread-2 : Tautulli NotificationHandler :: {3} stream_local | is not | '1' > '0' > True 2021-04-12 23:58:28 - DEBUG :: Thread-2 : Tautulli NotificationHandler :: Condition logic: {1} and {2} and {3} > False 2021-04-12 23:58:28 - DEBUG :: Thread-2 : Tautulli NotificationHandler :: Custom conditions evaluated to 'False'. Conditions: [False, True, True]. 2021-04-12 23:58:28 - DEBUG :: Thread-2 : Tautulli NotificationHandler :: Custom notification conditions not satisfied, skipping notifier_id 8. 2021-04-12 23:58:28 - DEBUG :: Thread-2 : Tautulli NotificationHandler :: Checking custom notification conditions for notifier_id 10. 2021-04-12 23:58:28 - DEBUG :: Thread-2 : Tautulli NotificationHandler :: {1} user_streams | is greater than | '2' > '1' > False 2021-04-12 23:58:28 - DEBUG :: Thread-2 : Tautulli NotificationHandler :: {2} stream_local | is not | '1' > '0' > True 2021-04-12 23:58:28 - DEBUG :: Thread-2 : Tautulli NotificationHandler :: Condition logic: {1} and {2} > False 2021-04-12 23:58:28 - DEBUG :: Thread-2 : Tautulli NotificationHandler :: Custom conditions evaluated to 'False'. Conditions: [False, True]. 2021-04-12 23:58:28 - DEBUG :: Thread-2 : Tautulli NotificationHandler :: Custom notification conditions not satisfied, skipping notifier_id 10. 2021-04-12 23:58:28 - INFO :: Thread-3 : Tautulli NotificationHandler :: Preparing notification for notifier_id 15. 2021-04-12 23:58:28 - DEBUG :: Thread-2 : Tautulli NotificationHandler :: Checking custom notification conditions for notifier_id 17. 2021-04-12 23:58:28 - DEBUG :: Thread-2 : Tautulli NotificationHandler :: {1} stream_local | is | '1' > '0' > False 2021-04-12 23:58:28 - DEBUG :: Thread-2 : Tautulli NotificationHandler :: {2} username | contains | 'local' > 'John Doe 2' > False 2021-04-12 23:58:28 - DEBUG :: Thread-2 : Tautulli NotificationHandler :: Condition logic: {1} and {2} > False 2021-04-12 23:58:28 - DEBUG :: Thread-2 : Tautulli NotificationHandler :: Custom conditions evaluated to 'False'. Conditions: [False, False]. 2021-04-12 23:58:28 - DEBUG :: Thread-2 : Tautulli NotificationHandler :: Custom notification conditions not satisfied, skipping notifier_id 17. 2021-04-12 23:58:28 - DEBUG :: Thread-2 : Tautulli NotificationHandler :: Checking custom notification conditions for notifier_id 18. 2021-04-12 23:58:28 - DEBUG :: Thread-2 : Tautulli NotificationHandler :: {1} library_name | is not | 'announcements' > '' > True 2021-04-12 23:58:28 - DEBUG :: Thread-2 : Tautulli NotificationHandler :: {2} title | does not contain | 'preroll' > 'preroll-04' > False 2021-04-12 23:58:28 - DEBUG :: Thread-2 : Tautulli NotificationHandler :: {3} username | is not | 'home theatre' or 'John Doe' > 'John Doe 2' > True 2021-04-12 23:58:28 - DEBUG :: Thread-2 : Tautulli NotificationHandler :: {4} user_email | is not | ****************@********' or ****************@********' or ****************@********' or ****************@********' > '' > True 2021-04-12 23:58:28 - DEBUG :: Thread-2 : Tautulli NotificationHandler :: Condition logic: {1} and {2} and {3} and {4} > False 2021-04-12 23:58:28 - DEBUG :: Thread-2 : Tautulli NotificationHandler :: Custom conditions evaluated to 'False'. Conditions: [True, False, True, True]. 2021-04-12 23:58:28 - DEBUG :: Thread-2 : Tautulli NotificationHandler :: Custom notification conditions not satisfied, skipping notifier_id 18. 2021-04-12 23:58:28 - DEBUG :: Thread-2 : Tautulli NotificationHandler :: Checking custom notification conditions for notifier_id 19. 2021-04-12 23:58:28 - DEBUG :: Thread-2 : Tautulli NotificationHandler :: {1} platform | is | 'safari' or 'chrome' or 'opera' or 'microsoft edge' or 'firefox' > 'ios' > False 2021-04-12 23:58:28 - DEBUG :: Thread-2 : Tautulli NotificationHandler :: Condition logic [blank]: {1} > False 2021-04-12 23:58:28 - DEBUG :: Thread-2 : Tautulli NotificationHandler :: Custom conditions evaluated to 'False'. Conditions: [False]. 2021-04-12 23:58:28 - DEBUG :: Thread-2 : Tautulli NotificationHandler :: Custom notification conditions not satisfied, skipping notifier_id 19. 2021-04-12 23:58:28 - DEBUG :: Thread-2 : Tautulli NotificationHandler :: Notifiers enabled for notify_action 'on_concurrent'. 2021-04-12 23:58:28 - DEBUG :: Thread-2 : Tautulli NotificationHandler :: Checking global notification conditions. 2021-04-12 23:58:28 - DEBUG :: Thread-2 : Tautulli NotificationHandler :: Global notification conditions evaluated to 'False'. 2021-04-12 23:58:28 - DEBUG :: Thread-2 : Tautulli NotificationHandler :: Notifiers enabled for notify_action 'on_newdevice'. 2021-04-12 23:58:28 - DEBUG :: Thread-2 : Tautulli NotificationHandler :: Checking global notification conditions. 2021-04-12 23:58:28 - INFO :: Thread-3 : Tautulli Notifiers :: Sending Webhook notification... 2021-04-12 23:58:28 - DEBUG :: Thread-2 : Tautulli NotificationHandler :: Global notification conditions evaluated to 'False'. 2021-04-12 23:58:29 - INFO :: Thread-3 : Tautulli Notifiers :: Webhook notification sent. 2021-04-12 23:58:31 - WARNING :: CP Server Thread-14 : Failed to get image /library/metadata/18425/art, falling back to art. 2021-04-12 23:58:40 - DEBUG :: Thread-16 : Tautulli ActivityHandler :: Session 300 is buffering. 2021-04-12 23:58:40 - DEBUG :: Thread-16 : Tautulli ActivityHandler :: Session 300 buffer count is 1. 2021-04-12 23:58:41 - DEBUG :: Thread-16 : Tautulli ActivityHandler :: Session 300 stopped. 2021-04-12 23:58:41 - DEBUG :: Thread-2 : Tautulli NotificationHandler :: Notifiers enabled for notify_action 'on_stop'. 2021-04-12 23:58:41 - DEBUG :: Thread-2 : Tautulli NotificationHandler :: Checking global notification conditions. 2021-04-12 23:58:41 - DEBUG :: Thread-2 : Tautulli NotificationHandler :: Global notification conditions evaluated to '1'. 2021-04-12 23:58:41 - DEBUG :: Thread-16 : Tautulli ActivityProcessor :: Session 300 ratingKey 18425 not logged. Does not meet logging criteria. Media type is 'clip' 2021-04-12 23:58:41 - DEBUG :: Thread-16 : Tautulli ActivityHandler :: Removing sessionKey 300 ratingKey 18425 from session queue 2021-04-12 23:58:41 - DEBUG :: Thread-16 : Tautulli ActivityHandler :: Session 300 watched. 2021-04-12 23:58:41 - DEBUG :: Thread-2 : Tautulli Helpers :: Image 'preroll-04' (poster) transformed on Cloudinary. 2021-04-12 23:58:41 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Notifiers enabled for notify_action 'on_watched'. 2021-04-12 23:58:41 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Checking global notification conditions. 2021-04-12 23:58:41 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Global notification conditions evaluated to 'True'. 2021-04-12 23:58:41 - INFO :: Thread-2 : Tautulli NotificationHandler :: Preparing notification for notifier_id 15. 2021-04-12 23:58:41 - DEBUG :: Thread-3 : Tautulli Helpers :: Image 'preroll-04' (poster) transformed on Cloudinary. 2021-04-12 23:58:41 - INFO :: Thread-3 : Tautulli NotificationHandler :: Preparing notification for notifier_id 15. 2021-04-12 23:58:41 - INFO :: Thread-2 : Tautulli Notifiers :: Sending Webhook notification... 2021-04-12 23:58:41 - INFO :: Thread-3 : Tautulli Notifiers :: Sending Webhook notification... 2021-04-12 23:58:42 - INFO :: Thread-2 : Tautulli Notifiers :: Webhook notification sent. 2021-04-12 23:58:42 - INFO :: Thread-3 : Tautulli Notifiers :: Webhook notification sent. 2021-04-12 23:59:11 - DEBUG :: Thread-16 : Tautulli ActivityHandler :: Session 301 started by user 15134663 (John Doe 2) with ratingKey 35272 (Lucy). 2021-04-12 23:59:11 - DEBUG :: Thread-2 : Tautulli NotificationHandler :: Notifiers enabled for notify_action 'on_play'. 2021-04-12 23:59:11 - DEBUG :: Thread-2 : Tautulli NotificationHandler :: Checking global notification conditions. 2021-04-12 23:59:11 - DEBUG :: Thread-2 : Tautulli NotificationHandler :: Global notification conditions evaluated to 'True'. 2021-04-12 23:59:11 - DEBUG :: Thread-2 : Tautulli Helpers :: Image 'Lucy' (poster) transformed on Cloudinary. 2021-04-12 23:59:12 - DEBUG :: Thread-2 : Tautulli NotificationHandler :: Checking custom notification conditions for notifier_id 8. 2021-04-12 23:59:12 - DEBUG :: Thread-2 : Tautulli NotificationHandler :: {1} video_resolution | is | '4k' > '1080' > False 2021-04-12 23:59:12 - DEBUG :: Thread-2 : Tautulli NotificationHandler :: {2} transcode_decision | is | 'transcode' > 'transcode' > True 2021-04-12 23:59:12 - DEBUG :: Thread-2 : Tautulli NotificationHandler :: {3} stream_local | is not | '1' > '0' > True 2021-04-12 23:59:12 - DEBUG :: Thread-2 : Tautulli NotificationHandler :: Condition logic: {1} and {2} and {3} > False 2021-04-12 23:59:12 - DEBUG :: Thread-2 : Tautulli NotificationHandler :: Custom conditions evaluated to 'False'. Conditions: [False, True, True]. 2021-04-12 23:59:12 - DEBUG :: Thread-2 : Tautulli NotificationHandler :: Custom notification conditions not satisfied, skipping notifier_id 8. 2021-04-12 23:59:12 - DEBUG :: Thread-2 : Tautulli NotificationHandler :: Checking custom notification conditions for notifier_id 10. 2021-04-12 23:59:12 - DEBUG :: Thread-2 : Tautulli NotificationHandler :: {1} user_streams | is greater than | '2' > '1' > False 2021-04-12 23:59:12 - DEBUG :: Thread-2 : Tautulli NotificationHandler :: {2} stream_local | is not | '1' > '0' > True 2021-04-12 23:59:12 - DEBUG :: Thread-2 : Tautulli NotificationHandler :: Condition logic: {1} and {2} > False 2021-04-12 23:59:12 - DEBUG :: Thread-2 : Tautulli NotificationHandler :: Custom conditions evaluated to 'False'. Conditions: [False, True]. 2021-04-12 23:59:12 - DEBUG :: Thread-2 : Tautulli NotificationHandler :: Custom notification conditions not satisfied, skipping notifier_id 10. 2021-04-12 23:59:12 - INFO :: Thread-3 : Tautulli NotificationHandler :: Preparing notification for notifier_id 15. 2021-04-12 23:59:12 - DEBUG :: Thread-2 : Tautulli NotificationHandler :: Checking custom notification conditions for notifier_id 17. 2021-04-12 23:59:12 - DEBUG :: Thread-2 : Tautulli NotificationHandler :: {1} stream_local | is | '1' > '0' > False 2021-04-12 23:59:12 - DEBUG :: Thread-2 : Tautulli NotificationHandler :: {2} username | contains | 'local' > 'John Doe 2' > False 2021-04-12 23:59:12 - DEBUG :: Thread-2 : Tautulli NotificationHandler :: Condition logic: {1} and {2} > False 2021-04-12 23:59:12 - DEBUG :: Thread-2 : Tautulli NotificationHandler :: Custom conditions evaluated to 'False'. Conditions: [False, False]. 2021-04-12 23:59:12 - DEBUG :: Thread-2 : Tautulli NotificationHandler :: Custom notification conditions not satisfied, skipping notifier_id 17. 2021-04-12 23:59:12 - DEBUG :: Thread-2 : Tautulli NotificationHandler :: Checking custom notification conditions for notifier_id 18. 2021-04-12 23:59:12 - DEBUG :: Thread-2 : Tautulli NotificationHandler :: {1} library_name | is not | 'announcements' > 'movies' > True 2021-04-12 23:59:12 - DEBUG :: Thread-2 : Tautulli NotificationHandler :: {2} title | does not contain | 'preroll' > 'lucy' > True 2021-04-12 23:59:12 - DEBUG :: Thread-2 : Tautulli NotificationHandler :: {3} username | is not | 'home theatre' or 'John Doe' > 'John Doe 2' > True 2021-04-12 23:59:12 - DEBUG :: Thread-2 : Tautulli NotificationHandler :: {4} user_email | is not | ****************@********' or ****************@********' or ****************@********' or ****************@********' > '' > True 2021-04-12 23:59:12 - DEBUG :: Thread-2 : Tautulli NotificationHandler :: Condition logic: {1} and {2} and {3} and {4} > True 2021-04-12 23:59:12 - DEBUG :: Thread-2 : Tautulli NotificationHandler :: Custom conditions evaluated to 'True'. Conditions: [True, True, True, True]. 2021-04-12 23:59:12 - DEBUG :: Thread-2 : Tautulli NotificationHandler :: Checking custom notification conditions for notifier_id 19. 2021-04-12 23:59:12 - DEBUG :: Thread-2 : Tautulli NotificationHandler :: {1} platform | is | 'safari' or 'chrome' or 'opera' or 'microsoft edge' or 'firefox' > 'ios' > False 2021-04-12 23:59:12 - DEBUG :: Thread-2 : Tautulli NotificationHandler :: Condition logic [blank]: {1} > False 2021-04-12 23:59:12 - DEBUG :: Thread-2 : Tautulli NotificationHandler :: Custom conditions evaluated to 'False'. Conditions: [False]. 2021-04-12 23:59:12 - DEBUG :: Thread-2 : Tautulli NotificationHandler :: Custom notification conditions not satisfied, skipping notifier_id 19. 2021-04-12 23:59:12 - INFO :: Thread-2 : Tautulli NotificationHandler :: Preparing notification for notifier_id 18. 2021-04-12 23:59:12 - INFO :: Thread-3 : Tautulli Notifiers :: Sending Webhook notification... 2021-04-12 23:59:12 - DEBUG :: Thread-2 : Tautulli Notifiers :: Trying to run notify script: C:\JBOPS\killstream\limiterr.py, arguments: ['--jbop', 'time', '--username', 'John Doe 2', '--sessionId', 'B4A0E15A-3624-4F8E-92FA-61226F67BF62', '--limit', 'hours=2', '--killMessage', 'You have met your limit of 2 hours.'], action: play 2021-04-12 23:59:12 - DEBUG :: Thread-2 : Tautulli Notifiers :: Full script is: ['C:\\Python39\\pythonw.exe', 'C:\\JBOPS\\killstream\\limiterr.py', '--jbop', 'time', '--username', 'John Doe 2', '--sessionId', 'B4A0E15A-3624-4F8E-92FA-61226F67BF62', '--limit', 'hours=2', '--killMessage', 'You have met your limit of 2 hours.'] 2021-04-12 23:59:12 - DEBUG :: Thread-2 : Tautulli Notifiers :: Executing script in a new thread. 2021-04-12 23:59:12 - DEBUG :: Thread-2 : Tautulli NotificationHandler :: Notifiers enabled for notify_action 'on_concurrent'. 2021-04-12 23:59:12 - DEBUG :: Thread-2 : Tautulli NotificationHandler :: Checking global notification conditions. 2021-04-12 23:59:13 - INFO :: Thread-3 : Tautulli Notifiers :: Webhook notification sent. 2021-04-12 23:59:13 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Notifiers enabled for notify_action 'on_newdevice'. 2021-04-12 23:59:13 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Checking global notification conditions. 2021-04-12 23:59:13 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Global notification conditions evaluated to 'False'. 2021-04-12 23:59:15 - DEBUG :: Thread-549 : Tautulli Notifiers :: Subprocess returned with status code 0. **2021-04-12 23:59:15 - DEBUG :: Thread-549 : Tautulli Notifiers :: Script returned: Total time (247) is less than limit (7200).** 2021-04-12 23:59:15 - INFO :: Thread-549 : Tautulli Notifiers :: Script notification sent. 2021-04-12 23:59:15 - DEBUG :: Thread-2 : Tautulli NotificationHandler :: Global notification conditions evaluated to 'False'. 2021-04-12 23:59:21 - DEBUG :: Thread-16 : Tautulli ActivityHandler :: Session 301 has changed transcode decision. 2021-04-12 23:59:21 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Notifiers enabled for notify_action 'on_change'. 2021-04-12 23:59:22 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Checking global notification conditions. 2021-04-12 23:59:22 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Global notification conditions evaluated to 'True'. 2021-04-12 23:59:22 - DEBUG :: Thread-3 : Tautulli Helpers :: Image 'Lucy' (poster) transformed on Cloudinary. 2021-04-12 23:59:22 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Checking custom notification conditions for notifier_id 8. 2021-04-12 23:59:22 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: {1} video_resolution | is | '4k' > '1080' > False 2021-04-12 23:59:22 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: {2} transcode_decision | is | 'transcode' > 'transcode' > True 2021-04-12 23:59:22 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: {3} stream_local | is not | '1' > '0' > True 2021-04-12 23:59:22 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Condition logic: {1} and {2} and {3} > False 2021-04-12 23:59:22 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Custom conditions evaluated to 'False'. Conditions: [False, True, True]. 2021-04-12 23:59:22 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Custom notification conditions not satisfied, skipping notifier_id 8. 2021-04-12 23:59:22 - INFO :: Thread-2 : Tautulli NotificationHandler :: Preparing notification for notifier_id 15. 2021-04-12 23:59:22 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Checking custom notification conditions for notifier_id 17. 2021-04-12 23:59:22 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: {1} stream_local | is | '1' > '0' > False 2021-04-12 23:59:22 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: {2} username | contains | 'local' > 'John Doe 2' > False 2021-04-12 23:59:22 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Condition logic: {1} and {2} > False 2021-04-12 23:59:22 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Custom conditions evaluated to 'False'. Conditions: [False, False]. 2021-04-12 23:59:22 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Custom notification conditions not satisfied, skipping notifier_id 17. 2021-04-12 23:59:22 - INFO :: Thread-2 : Tautulli Notifiers :: Sending Webhook notification... 2021-04-12 23:59:22 - INFO :: Thread-2 : Tautulli Notifiers :: Webhook notification sent. 2021-04-12 23:59:28 - DEBUG :: Thread-16 : Tautulli ActivityHandler :: Session 301 paused. 2021-04-12 23:59:28 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Notifiers enabled for notify_action 'on_pause'. 2021-04-12 23:59:28 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Checking global notification conditions. 2021-04-12 23:59:28 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Global notification conditions evaluated to 'True'. 2021-04-12 23:59:28 - DEBUG :: Thread-3 : Tautulli Helpers :: Image 'Lucy' (poster) transformed on Cloudinary. 2021-04-12 23:59:28 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Checking custom notification conditions for notifier_id 9. 2021-04-12 23:59:28 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: {1} stream_local | is not | '1' > '0' > True 2021-04-12 23:59:28 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Condition logic [blank]: {1} > True 2021-04-12 23:59:28 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Custom conditions evaluated to 'True'. Conditions: [True]. 2021-04-12 23:59:28 - INFO :: Thread-2 : Tautulli NotificationHandler :: Preparing notification for notifier_id 9. 2021-04-12 23:59:28 - INFO :: Thread-3 : Tautulli NotificationHandler :: Preparing notification for notifier_id 15. 2021-04-12 23:59:29 - DEBUG :: Thread-2 : Tautulli Notifiers :: Trying to run notify script: C:\JBOPS\killstream\kill_stream.py, arguments: ['--jbop', 'paused', '--interval', '15', '--limit', '900', '--sessionId', 'B4A0E15A-3624-4F8E-92FA-61226F67BF62', '--killMessage', 'Your stream was paused for over 15 minutes and has been automatically stopped.'], action: pause 2021-04-12 23:59:29 - DEBUG :: Thread-2 : Tautulli Notifiers :: Full script is: ['C:\\Python39\\pythonw.exe', 'C:\\JBOPS\\killstream\\kill_stream.py', '--jbop', 'paused', '--interval', '15', '--limit', '900', '--sessionId', 'B4A0E15A-3624-4F8E-92FA-61226F67BF62', '--killMessage', 'Your stream was paused for over 15 minutes and has been automatically stopped.'] 2021-04-12 23:59:29 - DEBUG :: Thread-2 : Tautulli Notifiers :: Executing script in a new thread. 2021-04-12 23:59:29 - INFO :: Thread-3 : Tautulli Notifiers :: Sending Webhook notification... 2021-04-12 23:59:29 - INFO :: Thread-3 : Tautulli Notifiers :: Webhook notification sent. 2021-04-12 23:59:31 - DEBUG :: Thread-16 : Tautulli ActivityHandler :: Session 301 stopped. 2021-04-12 23:59:31 - DEBUG :: Thread-2 : Tautulli NotificationHandler :: Notifiers enabled for notify_action 'on_stop'. 2021-04-12 23:59:31 - DEBUG :: Thread-2 : Tautulli NotificationHandler :: Checking global notification conditions. 2021-04-12 23:59:31 - DEBUG :: Thread-2 : Tautulli NotificationHandler :: Global notification conditions evaluated to '1'. 2021-04-12 23:59:31 - DEBUG :: Thread-16 : Tautulli ActivityProcessor :: Fetching metadata for item ratingKey 35272 2021-04-12 23:59:31 - DEBUG :: Thread-2 : Tautulli Helpers :: Image 'Lucy' (poster) transformed on Cloudinary. 2021-04-12 23:59:31 - INFO :: Thread-2 : Tautulli NotificationHandler :: Preparing notification for notifier_id 15. 2021-04-12 23:59:31 - INFO :: Thread-2 : Tautulli Notifiers :: Sending Webhook notification... 2021-04-12 23:59:31 - DEBUG :: Thread-16 : Tautulli ActivityHandler :: Removing sessionKey 301 ratingKey 35272 from session queue 2021-04-12 23:59:34 - INFO :: Thread-2 : Tautulli Notifiers :: Webhook notification sent. 2021-04-12 23:59:36 - DEBUG :: Thread-16 : Tautulli ActivityHandler :: Session 302 started by user 15134663 (John Doe 2) with ratingKey 34879 (Waterworld). 2021-04-12 23:59:36 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Notifiers enabled for notify_action 'on_play'. 2021-04-12 23:59:36 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Checking global notification conditions. 2021-04-12 23:59:36 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Global notification conditions evaluated to 'True'. 2021-04-12 23:59:36 - DEBUG :: Thread-3 : Tautulli Helpers :: Image 'Waterworld' (poster) transformed on Cloudinary. 2021-04-12 23:59:36 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Checking custom notification conditions for notifier_id 8. 2021-04-12 23:59:36 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: {1} video_resolution | is | '4k' > '1080' > False 2021-04-12 23:59:36 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: {2} transcode_decision | is | 'transcode' > 'transcode' > True 2021-04-12 23:59:36 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: {3} stream_local | is not | '1' > '0' > True 2021-04-12 23:59:36 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Condition logic: {1} and {2} and {3} > False 2021-04-12 23:59:36 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Custom conditions evaluated to 'False'. Conditions: [False, True, True]. 2021-04-12 23:59:36 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Custom notification conditions not satisfied, skipping notifier_id 8. 2021-04-12 23:59:36 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Checking custom notification conditions for notifier_id 10. 2021-04-12 23:59:36 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: {1} user_streams | is greater than | '2' > '1' > False 2021-04-12 23:59:36 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: {2} stream_local | is not | '1' > '0' > True 2021-04-12 23:59:36 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Condition logic: {1} and {2} > False 2021-04-12 23:59:36 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Custom conditions evaluated to 'False'. Conditions: [False, True]. 2021-04-12 23:59:36 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Custom notification conditions not satisfied, skipping notifier_id 10. 2021-04-12 23:59:36 - INFO :: Thread-2 : Tautulli NotificationHandler :: Preparing notification for notifier_id 15. 2021-04-12 23:59:36 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Checking custom notification conditions for notifier_id 17. 2021-04-12 23:59:36 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: {1} stream_local | is | '1' > '0' > False 2021-04-12 23:59:36 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: {2} username | contains | 'local' > 'John Doe 2' > False 2021-04-12 23:59:36 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Condition logic: {1} and {2} > False 2021-04-12 23:59:36 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Custom conditions evaluated to 'False'. Conditions: [False, False]. 2021-04-12 23:59:36 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Custom notification conditions not satisfied, skipping notifier_id 17. 2021-04-12 23:59:36 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Checking custom notification conditions for notifier_id 18. 2021-04-12 23:59:36 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: {1} library_name | is not | 'announcements' > 'movies' > True 2021-04-12 23:59:36 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: {2} title | does not contain | 'preroll' > 'waterworld' > True 2021-04-12 23:59:36 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: {3} username | is not | 'home theatre' or 'John Doe' > 'John Doe 2' > True 2021-04-12 23:59:36 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: {4} user_email | is not | ****************@********' or ****************@********' or ****************@********' or ****************@********' > '' > True 2021-04-12 23:59:36 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Condition logic: {1} and {2} and {3} and {4} > True 2021-04-12 23:59:36 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Custom conditions evaluated to 'True'. Conditions: [True, True, True, True]. 2021-04-12 23:59:36 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Checking custom notification conditions for notifier_id 19. 2021-04-12 23:59:36 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: {1} platform | is | 'safari' or 'chrome' or 'opera' or 'microsoft edge' or 'firefox' > 'ios' > False 2021-04-12 23:59:36 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Condition logic [blank]: {1} > False 2021-04-12 23:59:36 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Custom conditions evaluated to 'False'. Conditions: [False]. 2021-04-12 23:59:36 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Custom notification conditions not satisfied, skipping notifier_id 19. 2021-04-12 23:59:36 - INFO :: Thread-3 : Tautulli NotificationHandler :: Preparing notification for notifier_id 18. 2021-04-12 23:59:36 - INFO :: Thread-2 : Tautulli Notifiers :: Sending Webhook notification... 2021-04-12 23:59:37 - DEBUG :: Thread-3 : Tautulli Notifiers :: Trying to run notify script: C:\JBOPS\killstream\limiterr.py, arguments: ['--jbop', 'time', '--username', 'John Doe 2', '--sessionId', 'B4A0E15A-3624-4F8E-92FA-61226F67BF62', '--limit', 'hours=2', '--killMessage', 'You have met your limit of 2 hours.'], action: play 2021-04-12 23:59:37 - DEBUG :: Thread-3 : Tautulli Notifiers :: Full script is: ['C:\\Python39\\pythonw.exe', 'C:\\JBOPS\\killstream\\limiterr.py', '--jbop', 'time', '--username', 'John Doe 2', '--sessionId', 'B4A0E15A-3624-4F8E-92FA-61226F67BF62', '--limit', 'hours=2', '--killMessage', 'You have met your limit of 2 hours.'] 2021-04-12 23:59:37 - DEBUG :: Thread-3 : Tautulli Notifiers :: Executing script in a new thread. 2021-04-12 23:59:37 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Notifiers enabled for notify_action 'on_concurrent'. 2021-04-12 23:59:37 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Checking global notification conditions. 2021-04-12 23:59:37 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Global notification conditions evaluated to 'False'. 2021-04-12 23:59:37 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Notifiers enabled for notify_action 'on_newdevice'. 2021-04-12 23:59:37 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Checking global notification conditions. 2021-04-12 23:59:37 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Global notification conditions evaluated to 'False'. 2021-04-12 23:59:37 - INFO :: Thread-2 : Tautulli Notifiers :: Webhook notification sent. 2021-04-12 23:59:39 - DEBUG :: Thread-556 : Tautulli Notifiers :: Subprocess returned with status code 0. **2021-04-12 23:59:39 - DEBUG :: Thread-556 : Tautulli Notifiers :: Script returned: Total time (264) is less than limit (7200).** 2021-04-12 23:59:39 - INFO :: Thread-556 : Tautulli Notifiers :: Script notification sent. 2021-04-12 23:59:46 - DEBUG :: Thread-553 : Tautulli Notifiers :: Subprocess returned with status code 0. 2021-04-12 23:59:46 - DEBUG :: Thread-553 : Tautulli Notifiers :: Script returned: Session 'B4A0E15A-3624-4F8E-92FA-61226F67BF62' from user 'John Doe 2' has been resumed, stopping monitoring. 2021-04-12 23:59:46 - INFO :: Thread-553 : Tautulli Notifiers :: Script notification sent. 2021-04-13 00:00:05 - DEBUG :: Thread-16 : Tautulli ActivityHandler :: Session 302 paused. 2021-04-13 00:00:06 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Notifiers enabled for notify_action 'on_pause'. 2021-04-13 00:00:06 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Checking global notification conditions. 2021-04-13 00:00:06 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Global notification conditions evaluated to 'True'. 2021-04-13 00:00:06 - DEBUG :: Thread-3 : Tautulli Helpers :: Image 'Waterworld' (poster) transformed on Cloudinary. 2021-04-13 00:00:06 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Checking custom notification conditions for notifier_id 9. 2021-04-13 00:00:06 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: {1} stream_local | is not | '1' > '0' > True 2021-04-13 00:00:06 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Condition logic [blank]: {1} > True 2021-04-13 00:00:06 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Custom conditions evaluated to 'True'. Conditions: [True]. 2021-04-13 00:00:06 - INFO :: Thread-2 : Tautulli NotificationHandler :: Preparing notification for notifier_id 9. 2021-04-13 00:00:06 - INFO :: Thread-3 : Tautulli NotificationHandler :: Preparing notification for notifier_id 15. 2021-04-13 00:00:06 - DEBUG :: Thread-2 : Tautulli Notifiers :: Trying to run notify script: C:\JBOPS\killstream\kill_stream.py, arguments: ['--jbop', 'paused', '--interval', '15', '--limit', '900', '--sessionId', 'B4A0E15A-3624-4F8E-92FA-61226F67BF62', '--killMessage', 'Your stream was paused for over 15 minutes and has been automatically stopped.'], action: pause 2021-04-13 00:00:06 - DEBUG :: Thread-2 : Tautulli Notifiers :: Full script is: ['C:\\Python39\\pythonw.exe', 'C:\\JBOPS\\killstream\\kill_stream.py', '--jbop', 'paused', '--interval', '15', '--limit', '900', '--sessionId', 'B4A0E15A-3624-4F8E-92FA-61226F67BF62', '--killMessage', 'Your stream was paused for over 15 minutes and has been automatically stopped.'] 2021-04-13 00:00:06 - DEBUG :: Thread-2 : Tautulli Notifiers :: Executing script in a new thread. 2021-04-13 00:00:06 - INFO :: Thread-3 : Tautulli Notifiers :: Sending Webhook notification... 2021-04-13 00:00:07 - INFO :: Thread-3 : Tautulli Notifiers :: Webhook notification sent. 2021-04-13 00:00:07 - DEBUG :: Thread-16 : Tautulli ActivityHandler :: Session 302 stopped. 2021-04-13 00:00:07 - DEBUG :: Thread-2 : Tautulli NotificationHandler :: Notifiers enabled for notify_action 'on_stop'. 2021-04-13 00:00:07 - DEBUG :: Thread-2 : Tautulli NotificationHandler :: Checking global notification conditions. 2021-04-13 00:00:07 - DEBUG :: Thread-2 : Tautulli NotificationHandler :: Global notification conditions evaluated to '1'. 2021-04-13 00:00:07 - DEBUG :: Thread-16 : Tautulli ActivityProcessor :: Fetching metadata for item ratingKey 34879 2021-04-13 00:00:07 - DEBUG :: Thread-2 : Tautulli Helpers :: Image 'Waterworld' (poster) transformed on Cloudinary. 2021-04-13 00:00:07 - INFO :: Thread-2 : Tautulli NotificationHandler :: Preparing notification for notifier_id 15. 2021-04-13 00:00:08 - DEBUG :: Thread-16 : Tautulli ActivityHandler :: Removing sessionKey 302 ratingKey 34879 from session queue 2021-04-13 00:00:08 - INFO :: Thread-2 : Tautulli Notifiers :: Sending Webhook notification... 2021-04-13 00:00:08 - INFO :: Thread-2 : Tautulli Notifiers :: Webhook notification sent. 2021-04-13 00:00:08 - DEBUG :: Thread-560 : Tautulli Notifiers :: Subprocess returned with status code 0. 2021-04-13 00:00:08 - DEBUG :: Thread-560 : Tautulli Notifiers :: Script returned: Session 'B4A0E15A-3624-4F8E-92FA-61226F67BF62' from user 'None' is no longer active on the server, stopping monitoring. 2021-04-13 00:00:08 - INFO :: Thread-560 : Tautulli Notifiers :: Script notification sent. 2021-04-13 00:00:17 - DEBUG :: CP Server Thread-7 : Tautulli MobileApp :: Re-registered mobile device 'John Doe’s iPhone' in the database. 2021-04-13 00:00:17 - INFO :: Thread-563 : Tautulli MobileApp :: Validating OneSignal ID 2021-04-13 00:00:17 - INFO :: Thread-563 : Tautulli MobileApp :: OneSignal ID validation returned status code 400 2021-04-13 00:00:17 - INFO :: CP Server Thread-9 : Tautulli Pmsconnect :: Requesting name from server... 2021-04-13 00:00:17 - DEBUG :: CP Server Thread-7 : Tautulli PlexTV :: Retrieving current server version. 2021-04-13 00:00:17 - INFO :: CP Server Thread-7 : Tautulli Config :: Writing configuration to file 2021-04-13 00:00:17 - DEBUG :: CP Server Thread-7 : Tautulli PlexTV :: Plex update channel is beta. 2021-04-13 00:00:18 - INFO :: CP Server Thread-11 : Retrieving latest version information from GitHub 2021-04-13 00:00:18 - DEBUG :: CP Server Thread-11 : Requesting URL via GET method: https://api.github.com/repos/Tautulli/Tautulli/commits/master 2021-04-13 00:00:18 - DEBUG :: CP Server Thread-11 : Latest version is c780f1fd6c57763bd0e39253ffc55be2618050ea 2021-04-13 00:00:18 - INFO :: CP Server Thread-11 : Tautulli is up to date 2021-04-13 00:00:18 - DEBUG :: CP Server Thread-13 : Tautulli Pmsconnect :: No library data. 2021-04-13 00:00:18 - DEBUG :: CP Server Thread-13 : Tautulli Pmsconnect :: No library data. 2021-04-13 00:00:18 - DEBUG :: CP Server Thread-13 : Tautulli Pmsconnect :: No library data. 2021-04-13 00:00:18 - DEBUG :: CP Server Thread-13 : Tautulli Pmsconnect :: No library data. 2021-04-13 00:04:04 - DEBUG :: Thread-16 : Tautulli ActivityHandler :: Session 303 started by user 15134663 (John Doe 2) with ratingKey 35232 (preroll-08). 2021-04-13 00:04:04 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Notifiers enabled for notify_action 'on_play'. 2021-04-13 00:04:04 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Checking global notification conditions. 2021-04-13 00:04:04 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Global notification conditions evaluated to 'True'. 2021-04-13 00:04:04 - DEBUG :: Thread-3 : Tautulli Helpers :: Image 'preroll-08' (poster) transformed on Cloudinary. 2021-04-13 00:04:04 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Checking custom notification conditions for notifier_id 8. 2021-04-13 00:04:04 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: {1} video_resolution | is | '4k' > '1080' > False 2021-04-13 00:04:04 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: {2} transcode_decision | is | 'transcode' > 'transcode' > True 2021-04-13 00:04:04 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: {3} stream_local | is not | '1' > '0' > True 2021-04-13 00:04:04 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Condition logic: {1} and {2} and {3} > False 2021-04-13 00:04:04 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Custom conditions evaluated to 'False'. Conditions: [False, True, True]. 2021-04-13 00:04:04 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Custom notification conditions not satisfied, skipping notifier_id 8. 2021-04-13 00:04:04 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Checking custom notification conditions for notifier_id 10. 2021-04-13 00:04:04 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: {1} user_streams | is greater than | '2' > '1' > False 2021-04-13 00:04:04 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: {2} stream_local | is not | '1' > '0' > True 2021-04-13 00:04:04 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Condition logic: {1} and {2} > False 2021-04-13 00:04:04 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Custom conditions evaluated to 'False'. Conditions: [False, True]. 2021-04-13 00:04:04 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Custom notification conditions not satisfied, skipping notifier_id 10. 2021-04-13 00:04:04 - INFO :: Thread-2 : Tautulli NotificationHandler :: Preparing notification for notifier_id 15. 2021-04-13 00:04:04 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Checking custom notification conditions for notifier_id 17. 2021-04-13 00:04:04 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: {1} stream_local | is | '1' > '0' > False 2021-04-13 00:04:04 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: {2} username | contains | 'local' > 'John Doe 2' > False 2021-04-13 00:04:04 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Condition logic: {1} and {2} > False 2021-04-13 00:04:04 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Custom conditions evaluated to 'False'. Conditions: [False, False]. 2021-04-13 00:04:04 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Custom notification conditions not satisfied, skipping notifier_id 17. 2021-04-13 00:04:04 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Checking custom notification conditions for notifier_id 18. 2021-04-13 00:04:04 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: {1} library_name | is not | 'announcements' > '' > True 2021-04-13 00:04:04 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: {2} title | does not contain | 'preroll' > 'preroll-08' > False 2021-04-13 00:04:04 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: {3} username | is not | 'home theatre' or 'John Doe' > 'John Doe 2' > True 2021-04-13 00:04:04 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: {4} user_email | is not | ****************@********' or ****************@********' or ****************@********' or ****************@********' > '' > True 2021-04-13 00:04:04 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Condition logic: {1} and {2} and {3} and {4} > False 2021-04-13 00:04:04 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Custom conditions evaluated to 'False'. Conditions: [True, False, True, True]. 2021-04-13 00:04:04 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Custom notification conditions not satisfied, skipping notifier_id 18. 2021-04-13 00:04:04 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Checking custom notification conditions for notifier_id 19. 2021-04-13 00:04:04 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: {1} platform | is | 'safari' or 'chrome' or 'opera' or 'microsoft edge' or 'firefox' > 'ios' > False 2021-04-13 00:04:04 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Condition logic [blank]: {1} > False 2021-04-13 00:04:04 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Custom conditions evaluated to 'False'. Conditions: [False]. 2021-04-13 00:04:04 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Custom notification conditions not satisfied, skipping notifier_id 19. 2021-04-13 00:04:04 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Notifiers enabled for notify_action 'on_concurrent'. 2021-04-13 00:04:04 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Checking global notification conditions. 2021-04-13 00:04:04 - INFO :: Thread-2 : Tautulli Notifiers :: Sending Webhook notification... 2021-04-13 00:04:04 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Global notification conditions evaluated to 'False'. 2021-04-13 00:04:04 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Notifiers enabled for notify_action 'on_newdevice'. 2021-04-13 00:04:04 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Checking global notification conditions. 2021-04-13 00:04:04 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Global notification conditions evaluated to 'False'. 2021-04-13 00:04:05 - INFO :: Thread-2 : Tautulli Notifiers :: Webhook notification sent. 2021-04-13 00:04:29 - DEBUG :: Thread-16 : Tautulli ActivityHandler :: Session 303 watched. 2021-04-13 00:04:29 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Notifiers enabled for notify_action 'on_watched'. 2021-04-13 00:04:29 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Checking global notification conditions. 2021-04-13 00:04:29 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Global notification conditions evaluated to 'True'. 2021-04-13 00:04:29 - DEBUG :: Thread-3 : Tautulli Helpers :: Image 'preroll-08' (poster) transformed on Cloudinary. 2021-04-13 00:04:29 - INFO :: Thread-3 : Tautulli NotificationHandler :: Preparing notification for notifier_id 15. 2021-04-13 00:04:29 - INFO :: Thread-3 : Tautulli Notifiers :: Sending Webhook notification... 2021-04-13 00:04:30 - INFO :: Thread-3 : Tautulli Notifiers :: Webhook notification sent. 2021-04-13 00:04:31 - DEBUG :: Thread-16 : Tautulli ActivityHandler :: Session 303 is buffering. 2021-04-13 00:04:31 - DEBUG :: Thread-16 : Tautulli ActivityHandler :: Session 303 buffer count is 1. 2021-04-13 00:04:31 - DEBUG :: Thread-16 : Tautulli ActivityHandler :: Session 303 stopped. 2021-04-13 00:04:31 - DEBUG :: Thread-2 : Tautulli NotificationHandler :: Notifiers enabled for notify_action 'on_stop'. 2021-04-13 00:04:31 - DEBUG :: Thread-2 : Tautulli NotificationHandler :: Checking global notification conditions. 2021-04-13 00:04:31 - DEBUG :: Thread-2 : Tautulli NotificationHandler :: Global notification conditions evaluated to '1'. 2021-04-13 00:04:31 - DEBUG :: Thread-16 : Tautulli ActivityProcessor :: Session 303 ratingKey 35232 not logged. Does not meet logging criteria. Media type is 'clip' 2021-04-13 00:04:31 - DEBUG :: Thread-16 : Tautulli ActivityHandler :: Removing sessionKey 303 ratingKey 35232 from session queue 2021-04-13 00:04:31 - DEBUG :: Thread-2 : Tautulli Helpers :: Image 'preroll-08' (poster) transformed on Cloudinary. 2021-04-13 00:04:31 - INFO :: Thread-2 : Tautulli NotificationHandler :: Preparing notification for notifier_id 15. 2021-04-13 00:04:31 - INFO :: Thread-2 : Tautulli Notifiers :: Sending Webhook notification... 2021-04-13 00:04:32 - INFO :: Thread-2 : Tautulli Notifiers :: Webhook notification sent. 2021-04-13 00:05:03 - DEBUG :: Thread-16 : Tautulli ActivityHandler :: Session 304 started by user 15134663 (John Doe 2) with ratingKey 35272 (Lucy). 2021-04-13 00:05:03 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Notifiers enabled for notify_action 'on_play'. 2021-04-13 00:05:03 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Checking global notification conditions. 2021-04-13 00:05:03 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Global notification conditions evaluated to 'True'. 2021-04-13 00:05:03 - DEBUG :: Thread-3 : Tautulli Helpers :: Image 'Lucy' (poster) transformed on Cloudinary. 2021-04-13 00:05:03 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Checking custom notification conditions for notifier_id 8. 2021-04-13 00:05:03 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: {1} video_resolution | is | '4k' > '1080' > False 2021-04-13 00:05:03 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: {2} transcode_decision | is | 'transcode' > 'transcode' > True 2021-04-13 00:05:03 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: {3} stream_local | is not | '1' > '0' > True 2021-04-13 00:05:03 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Condition logic: {1} and {2} and {3} > False 2021-04-13 00:05:03 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Custom conditions evaluated to 'False'. Conditions: [False, True, True]. 2021-04-13 00:05:03 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Custom notification conditions not satisfied, skipping notifier_id 8. 2021-04-13 00:05:03 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Checking custom notification conditions for notifier_id 10. 2021-04-13 00:05:03 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: {1} user_streams | is greater than | '2' > '1' > False 2021-04-13 00:05:03 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: {2} stream_local | is not | '1' > '0' > True 2021-04-13 00:05:03 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Condition logic: {1} and {2} > False 2021-04-13 00:05:03 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Custom conditions evaluated to 'False'. Conditions: [False, True]. 2021-04-13 00:05:03 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Custom notification conditions not satisfied, skipping notifier_id 10. 2021-04-13 00:05:03 - INFO :: Thread-2 : Tautulli NotificationHandler :: Preparing notification for notifier_id 15. 2021-04-13 00:05:03 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Checking custom notification conditions for notifier_id 17. 2021-04-13 00:05:03 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: {1} stream_local | is | '1' > '0' > False 2021-04-13 00:05:03 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: {2} username | contains | 'local' > 'John Doe 2' > False 2021-04-13 00:05:03 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Condition logic: {1} and {2} > False 2021-04-13 00:05:03 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Custom conditions evaluated to 'False'. Conditions: [False, False]. 2021-04-13 00:05:03 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Custom notification conditions not satisfied, skipping notifier_id 17. 2021-04-13 00:05:03 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Checking custom notification conditions for notifier_id 18. 2021-04-13 00:05:03 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: {1} library_name | is not | 'announcements' > 'movies' > True 2021-04-13 00:05:03 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: {2} title | does not contain | 'preroll' > 'lucy' > True 2021-04-13 00:05:03 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: {3} username | is not | 'home theatre' or 'John Doe' > 'John Doe 2' > True 2021-04-13 00:05:03 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: {4} user_email | is not | ****************@********' or ****************@********' or ****************@********' or ****************@********' > '' > True 2021-04-13 00:05:03 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Condition logic: {1} and {2} and {3} and {4} > True 2021-04-13 00:05:03 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Custom conditions evaluated to 'True'. Conditions: [True, True, True, True]. 2021-04-13 00:05:03 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Checking custom notification conditions for notifier_id 19. 2021-04-13 00:05:03 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: {1} platform | is | 'safari' or 'chrome' or 'opera' or 'microsoft edge' or 'firefox' > 'ios' > False 2021-04-13 00:05:03 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Condition logic [blank]: {1} > False 2021-04-13 00:05:03 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Custom conditions evaluated to 'False'. Conditions: [False]. 2021-04-13 00:05:03 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Custom notification conditions not satisfied, skipping notifier_id 19. 2021-04-13 00:05:03 - INFO :: Thread-3 : Tautulli NotificationHandler :: Preparing notification for notifier_id 18. 2021-04-13 00:05:03 - INFO :: Thread-2 : Tautulli Notifiers :: Sending Webhook notification... 2021-04-13 00:05:03 - DEBUG :: Thread-3 : Tautulli Notifiers :: Trying to run notify script: C:\JBOPS\killstream\limiterr.py, arguments: ['--jbop', 'time', '--username', 'John Doe 2', '--sessionId', 'B4A0E15A-3624-4F8E-92FA-61226F67BF62', '--limit', 'hours=2', '--killMessage', 'You have met your limit of 2 hours.'], action: play 2021-04-13 00:05:03 - DEBUG :: Thread-3 : Tautulli Notifiers :: Full script is: ['C:\\Python39\\pythonw.exe', 'C:\\JBOPS\\killstream\\limiterr.py', '--jbop', 'time', '--username', 'John Doe 2', '--sessionId', 'B4A0E15A-3624-4F8E-92FA-61226F67BF62', '--limit', 'hours=2', '--killMessage', 'You have met your limit of 2 hours.'] 2021-04-13 00:05:03 - DEBUG :: Thread-3 : Tautulli Notifiers :: Executing script in a new thread. 2021-04-13 00:05:03 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Notifiers enabled for notify_action 'on_concurrent'. 2021-04-13 00:05:03 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Checking global notification conditions. 2021-04-13 00:05:04 - INFO :: Thread-2 : Tautulli Notifiers :: Webhook notification sent. 2021-04-13 00:05:04 - DEBUG :: Thread-2 : Tautulli NotificationHandler :: Notifiers enabled for notify_action 'on_newdevice'. 2021-04-13 00:05:04 - DEBUG :: Thread-2 : Tautulli NotificationHandler :: Checking global notification conditions. 2021-04-13 00:05:04 - DEBUG :: Thread-2 : Tautulli NotificationHandler :: Global notification conditions evaluated to 'False'. 2021-04-13 00:05:06 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Global notification conditions evaluated to 'False'. 2021-04-13 00:05:07 - DEBUG :: Thread-564 : Tautulli Notifiers :: Subprocess returned with status code 0. 2021-04-13 00:05:07 - INFO :: Thread-564 : Tautulli Notifiers :: Script notification sent. 2021-04-13 00:05:10 - DEBUG :: Thread-16 : Tautulli ActivityHandler :: Session 304 paused. 2021-04-13 00:05:10 - DEBUG :: Thread-2 : Tautulli NotificationHandler :: Notifiers enabled for notify_action 'on_pause'. 2021-04-13 00:05:10 - DEBUG :: Thread-2 : Tautulli NotificationHandler :: Checking global notification conditions. 2021-04-13 00:05:10 - DEBUG :: Thread-2 : Tautulli NotificationHandler :: Global notification conditions evaluated to 'True'. 2021-04-13 00:05:10 - DEBUG :: Thread-2 : Tautulli Helpers :: Image 'Lucy' (poster) transformed on Cloudinary. 2021-04-13 00:05:10 - DEBUG :: Thread-2 : Tautulli NotificationHandler :: Checking custom notification conditions for notifier_id 9. 2021-04-13 00:05:10 - DEBUG :: Thread-2 : Tautulli NotificationHandler :: {1} stream_local | is not | '1' > '0' > True 2021-04-13 00:05:10 - DEBUG :: Thread-2 : Tautulli NotificationHandler :: Condition logic [blank]: {1} > True 2021-04-13 00:05:10 - DEBUG :: Thread-2 : Tautulli NotificationHandler :: Custom conditions evaluated to 'True'. Conditions: [True]. 2021-04-13 00:05:10 - INFO :: Thread-3 : Tautulli NotificationHandler :: Preparing notification for notifier_id 9. 2021-04-13 00:05:10 - INFO :: Thread-2 : Tautulli NotificationHandler :: Preparing notification for notifier_id 15. 2021-04-13 00:05:10 - INFO :: Thread-2 : Tautulli Notifiers :: Sending Webhook notification... 2021-04-13 00:05:10 - DEBUG :: Thread-3 : Tautulli Notifiers :: Trying to run notify script: C:\JBOPS\killstream\kill_stream.py, arguments: ['--jbop', 'paused', '--interval', '15', '--limit', '900', '--sessionId', 'B4A0E15A-3624-4F8E-92FA-61226F67BF62', '--killMessage', 'Your stream was paused for over 15 minutes and has been automatically stopped.'], action: pause 2021-04-13 00:05:10 - DEBUG :: Thread-3 : Tautulli Notifiers :: Full script is: ['C:\\Python39\\pythonw.exe', 'C:\\JBOPS\\killstream\\kill_stream.py', '--jbop', 'paused', '--interval', '15', '--limit', '900', '--sessionId', 'B4A0E15A-3624-4F8E-92FA-61226F67BF62', '--killMessage', 'Your stream was paused for over 15 minutes and has been automatically stopped.'] 2021-04-13 00:05:10 - DEBUG :: Thread-3 : Tautulli Notifiers :: Executing script in a new thread. 2021-04-13 00:05:11 - INFO :: Thread-2 : Tautulli Notifiers :: Webhook notification sent. 2021-04-13 00:05:28 - DEBUG :: Thread-16 : Tautulli ActivityHandler :: Session 304 is buffering. 2021-04-13 00:05:28 - DEBUG :: Thread-568 : Tautulli Notifiers :: Subprocess returned with status code 0. 2021-04-13 00:05:28 - DEBUG :: Thread-568 : Tautulli Notifiers :: Script returned: Session 'B4A0E15A-3624-4F8E-92FA-61226F67BF62' from user 'John Doe 2' has been resumed, stopping monitoring. 2021-04-13 00:05:28 - INFO :: Thread-568 : Tautulli Notifiers :: Script notification sent. 2021-04-13 00:05:28 - DEBUG :: Thread-16 : Tautulli ActivityHandler :: Session 304 buffer count is 1. 2021-04-13 00:05:31 - DEBUG :: Thread-16 : Tautulli ActivityHandler :: Session 304 is buffering. 2021-04-13 00:05:31 - DEBUG :: Thread-16 : Tautulli ActivityHandler :: Session 304 buffer count is 2. 2021-04-13 00:05:35 - DEBUG :: Thread-16 : Tautulli ActivityHandler :: Session 304 is buffering. 2021-04-13 00:05:35 - DEBUG :: Thread-16 : Tautulli ActivityHandler :: Session 304 buffer count is 3. 2021-04-13 00:05:42 - DEBUG :: Thread-16 : Tautulli ActivityHandler :: Session 304 resumed. 2021-04-13 00:05:42 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Notifiers enabled for notify_action 'on_resume'. 2021-04-13 00:05:42 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Checking global notification conditions. 2021-04-13 00:05:42 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Global notification conditions evaluated to '1'. 2021-04-13 00:05:42 - DEBUG :: Thread-3 : Tautulli Helpers :: Image 'Lucy' (poster) transformed on Cloudinary. 2021-04-13 00:05:42 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Checking custom notification conditions for notifier_id 8. 2021-04-13 00:05:42 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: {1} video_resolution | is | '4k' > '1080' > False 2021-04-13 00:05:42 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: {2} transcode_decision | is | 'transcode' > 'transcode' > True 2021-04-13 00:05:42 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: {3} stream_local | is not | '1' > '0' > True 2021-04-13 00:05:42 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Condition logic: {1} and {2} and {3} > False 2021-04-13 00:05:42 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Custom conditions evaluated to 'False'. Conditions: [False, True, True]. 2021-04-13 00:05:42 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Custom notification conditions not satisfied, skipping notifier_id 8. 2021-04-13 00:05:42 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Checking custom notification conditions for notifier_id 10. 2021-04-13 00:05:42 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: {1} user_streams | is greater than | '2' > '1' > False 2021-04-13 00:05:42 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: {2} stream_local | is not | '1' > '0' > True 2021-04-13 00:05:42 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Condition logic: {1} and {2} > False 2021-04-13 00:05:42 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Custom conditions evaluated to 'False'. Conditions: [False, True]. 2021-04-13 00:05:42 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Custom notification conditions not satisfied, skipping notifier_id 10. 2021-04-13 00:05:42 - INFO :: Thread-2 : Tautulli NotificationHandler :: Preparing notification for notifier_id 15. 2021-04-13 00:05:42 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Checking custom notification conditions for notifier_id 17. 2021-04-13 00:05:42 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: {1} stream_local | is | '1' > '0' > False 2021-04-13 00:05:42 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: {2} username | contains | 'local' > 'John Doe 2' > False 2021-04-13 00:05:42 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Condition logic: {1} and {2} > False 2021-04-13 00:05:42 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Custom conditions evaluated to 'False'. Conditions: [False, False]. 2021-04-13 00:05:42 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Custom notification conditions not satisfied, skipping notifier_id 17. 2021-04-13 00:05:42 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Checking custom notification conditions for notifier_id 18. 2021-04-13 00:05:42 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: {1} library_name | is not | 'announcements' > 'movies' > True 2021-04-13 00:05:42 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: {2} title | does not contain | 'preroll' > 'lucy' > True 2021-04-13 00:05:42 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: {3} username | is not | 'home theatre' or 'John Doe' > 'John Doe 2' > True 2021-04-13 00:05:42 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: {4} user_email | is not | ****************@********' or ****************@********' or ****************@********' or ****************@********' > '' > True 2021-04-13 00:05:42 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Condition logic: {1} and {2} and {3} and {4} > True 2021-04-13 00:05:42 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Custom conditions evaluated to 'True'. Conditions: [True, True, True, True]. 2021-04-13 00:05:42 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Checking custom notification conditions for notifier_id 19. 2021-04-13 00:05:42 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: {1} platform | is | 'safari' or 'chrome' or 'opera' or 'microsoft edge' or 'firefox' > 'ios' > False 2021-04-13 00:05:42 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Condition logic [blank]: {1} > False 2021-04-13 00:05:42 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Custom conditions evaluated to 'False'. Conditions: [False]. 2021-04-13 00:05:42 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Custom notification conditions not satisfied, skipping notifier_id 19. 2021-04-13 00:05:42 - INFO :: Thread-3 : Tautulli NotificationHandler :: Preparing notification for notifier_id 18. 2021-04-13 00:05:42 - DEBUG :: Thread-3 : Tautulli Notifiers :: Trying to run notify script: C:\JBOPS\killstream\limiterr.py, arguments: ['--jbop', 'time', '--username', 'John Doe 2', '--sessionId', 'B4A0E15A-3624-4F8E-92FA-61226F67BF62', '--limit', 'hours=2', '--killMessage', 'You have met your limit of 2 hours.'], action: resume 2021-04-13 00:05:42 - DEBUG :: Thread-3 : Tautulli Notifiers :: Full script is: ['C:\\Python39\\pythonw.exe', 'C:\\JBOPS\\killstream\\limiterr.py', '--jbop', 'time', '--username', 'John Doe 2', '--sessionId', 'B4A0E15A-3624-4F8E-92FA-61226F67BF62', '--limit', 'hours=2', '--killMessage', 'You have met your limit of 2 hours.'] 2021-04-13 00:05:42 - DEBUG :: Thread-3 : Tautulli Notifiers :: Executing script in a new thread. 2021-04-13 00:05:42 - INFO :: Thread-2 : Tautulli Notifiers :: Sending Webhook notification... 2021-04-13 00:05:43 - INFO :: Thread-2 : Tautulli Notifiers :: Webhook notification sent. 2021-04-13 00:05:46 - DEBUG :: Thread-571 : Tautulli Notifiers :: Subprocess returned with status code 0. **2021-04-13 00:05:46 - DEBUG :: Thread-571 : Tautulli Notifiers :: Script returned: Total time (7) is less than limit (7200).** 2021-04-13 00:05:46 - INFO :: Thread-571 : Tautulli Notifiers :: Script notification sent. 2021-04-13 00:06:01 - DEBUG :: Thread-16 : Tautulli ActivityHandler :: Session 304 paused. 2021-04-13 00:06:01 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Notifiers enabled for notify_action 'on_pause'. 2021-04-13 00:06:01 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Checking global notification conditions. 2021-04-13 00:06:01 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Global notification conditions evaluated to 'True'. 2021-04-13 00:06:01 - DEBUG :: Thread-3 : Tautulli Helpers :: Image 'Lucy' (poster) transformed on Cloudinary. 2021-04-13 00:06:01 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Checking custom notification conditions for notifier_id 9. 2021-04-13 00:06:01 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: {1} stream_local | is not | '1' > '0' > True 2021-04-13 00:06:01 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Condition logic [blank]: {1} > True 2021-04-13 00:06:01 - DEBUG :: Thread-3 : Tautulli NotificationHandler :: Custom conditions evaluated to 'True'. Conditions: [True]. 2021-04-13 00:06:01 - INFO :: Thread-2 : Tautulli NotificationHandler :: Preparing notification for notifier_id 9. 2021-04-13 00:06:01 - INFO :: Thread-3 : Tautulli NotificationHandler :: Preparing notification for notifier_id 15. 2021-04-13 00:06:01 - INFO :: Thread-3 : Tautulli Notifiers :: Sending Webhook notification... 2021-04-13 00:06:01 - DEBUG :: Thread-2 : Tautulli Notifiers :: Trying to run notify script: C:\JBOPS\killstream\kill_stream.py, arguments: ['--jbop', 'paused', '--interval', '15', '--limit', '900', '--sessionId', 'B4A0E15A-3624-4F8E-92FA-61226F67BF62', '--killMessage', 'Your stream was paused for over 15 minutes and has been automatically stopped.'], action: pause 2021-04-13 00:06:01 - DEBUG :: Thread-2 : Tautulli Notifiers :: Full script is: ['C:\\Python39\\pythonw.exe', 'C:\\JBOPS\\killstream\\kill_stream.py', '--jbop', 'paused', '--interval', '15', '--limit', '900', '--sessionId', 'B4A0E15A-3624-4F8E-92FA-61226F67BF62', '--killMessage', 'Your stream was paused for over 15 minutes and has been automatically stopped.'] 2021-04-13 00:06:01 - DEBUG :: Thread-2 : Tautulli Notifiers :: Executing script in a new thread. 2021-04-13 00:06:02 - INFO :: Thread-3 : Tautulli Notifiers :: Webhook notification sent. 2021-04-13 00:06:26 - DEBUG :: Thread-16 : Tautulli ActivityHandler :: Session 304 stopped. 2021-04-13 00:06:26 - DEBUG :: Thread-2 : Tautulli NotificationHandler :: Notifiers enabled for notify_action 'on_stop'. 2021-04-13 00:06:26 - DEBUG :: Thread-2 : Tautulli NotificationHandler :: Checking global notification conditions. 2021-04-13 00:06:26 - DEBUG :: Thread-2 : Tautulli NotificationHandler :: Global notification conditions evaluated to '1'. 2021-04-13 00:06:26 - DEBUG :: Thread-16 : Tautulli ActivityProcessor :: Fetching metadata for item ratingKey 35272 2021-04-13 00:06:26 - DEBUG :: Thread-2 : Tautulli Helpers :: Image 'Lucy' (poster) transformed on Cloudinary. 2021-04-13 00:06:26 - INFO :: Thread-2 : Tautulli NotificationHandler :: Preparing notification for notifier_id 15. 2021-04-13 00:06:26 - DEBUG :: Thread-16 : Tautulli ActivityHandler :: Removing sessionKey 304 ratingKey 35272 from session queue 2021-04-13 00:06:26 - INFO :: Thread-2 : Tautulli Notifiers :: Sending Webhook notification... 2021-04-13 00:06:27 - INFO :: Thread-2 : Tautulli Notifiers :: Webhook notification sent. 2021-04-13 00:06:34 - DEBUG :: Thread-575 : Tautulli Notifiers :: Subprocess returned with status code 0. 2021-04-13 00:06:34 - DEBUG :: Thread-575 : Tautulli Notifiers :: Script returned: Session 'B4A0E15A-3624-4F8E-92FA-61226F67BF62' from user 'John Doe 2' is no longer active on the server, stopping monitoring. 2021-04-13 00:06:34 - INFO :: Thread-575 : Tautulli Notifiers :: Script notification sent.
blacktwin commented 3 years ago

You're one example up from the example you want to use.

So I did have this right, haha. The "issue" is that the default value for the --days arg is set to 0. Without setting that arg it will result in using that 0 value for the amount of days to go back into history. The solution for your issue would be to add --days 365.

--jbop time --username {username} --sessionId {session_id} --days 365 --limit hours=2 --killMessage "You have met your limit of 2 hours."

It doesn't have to be that extreme though as I'm not sure how that extreme of a value would impact the script's time to process. Not really sure why you would limit an user this way. I would suggest adding --notify to have the script notify you when that limit is reached, then you can manage that user however you see fit.

--jbop time --username {username} --sessionId {session_id} --days 365 --limit hours=2 --notify 1 --killMessage "You have met your limit of 2 hours."

Anuruddha094 commented 3 years ago

@blacktwin Thank you very much for your reply. I also thought about 365 days will solved the issue. But I wait for your reply. I will apply those arguments and let you know the results. I guess in this way script will reset the counter in every 365 days.

thank you.

blacktwin commented 3 years ago

If you have someone that you want to prevent from having access just unshare your libraries or remove them. Like the other issue you helped with (thank you by the way) there is a limit to what the script can do and a time when intervention is required.

Anuruddha094 commented 3 years ago

@blacktwin yes it's a good idea to remove a user from plex shared libraries. My main issue is some users make more stress on my plex server. I just need to limit them without removing them because they are my friends. If they contact me, may be I can allow them to watch more than 2 hours.

thank you very much for your scrips and excellent support.

cheers.

Anuruddha094 commented 3 years ago

@blacktwin I'm sorry I'm bit late to reply. I tried --jbop time --username {username} --sessionId {session_id} --days 365 --limit hours=2 --notify 1 --killMessage "You have met your limit of 2 hours." script and it didn't work at all. Script didn't return anything. I tweak the arguments slightly but I didn't get any successful results. So I have changed it to --jbop time --username {username} --sessionId {session_id} --duration {duration} --days 180 --limit hours=2 --notify 1 --killMessage "You have met your limit of 2 hours." It's working perfectly. Anyway its not permanently block user but at least for 6 months.

cheers