JBOPS - Just a Bunch Of Plex Scripts

@Blacktwin
Ok, it’s taken me about 5 hours of testing and hacking, but I’ve got it working. My first issue was SSL verification.
I force verify off. Not ideal, but will work for me for my local net.
Once I got that working and cancelling the stream, I realized that placing the cut off message in double, and even single, quotes, Tautulli was still passing individually, so “Session killed due to whatever” as cut message would always say “Session”

You may laugh it took me so long, but again, I can READ what most code does, that doesn’t mean I speak the language out-right.

As I don’t know Git well enough, or want to learn, to do pull request, I’ll let you decide whether or not my solutions to get my code working are necessary

Here they are - AS OF THIS POST - git lines
Line 105 -https://github.com/blacktwin/JBOPS/blob/fb7c16ee80ace4e298eb2e84c3b25a11f19547fd/killstream/kill_stream.py#L105
Current:
message = str(sys.argv[2])
Change I made so that it works (will show entire cut off message, technically, you wouldn’t even need quotes anymore (since they didn’t work to enclose from Tautllu in the first place)):
message = str(' '.join(sys.argv[2:]))

Line 112 – https://github.com/blacktwin/JBOPS/blob/fb7c16ee80ace4e298eb2e84c3b25a11f19547fd/killstream/kill_stream.py#L112
Current:
requests.post(TAUTULLI_URL.rstrip('/') + '/api/v2', params=payload)
Change I made (added 3 lines, inspired by your Pause More than code that turns verify false)

req = requests.Session()
req.verify = False
req.post(TAUTULLI_URL.rstrip('/') + '/api/v2', params=payload)

Now, of course, with your expert skill, you are more than welcome to fix that last part in a more safe/secure way that doesn’t break the SSL lookup. I kept getting the error in my previous post, even if I set fallback URL to my external Tautulli SSL address that uses a LetsEncrypt cert.