blacktwin / JBOPS

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

[Request] Killstream show IP of killed stream #285

Closed Kazz3r24 closed 3 years ago

Kazz3r24 commented 3 years ago

Is your feature request an improvement on an existing script? Please link to script. An improvement on the Killstream script would be to show the IP of a stream that is killed in the Discord notification - Session key that is currently displayed doesn't really do much good except to the Plex service.

Is your feature request related to a problem? Please describe. Not related to a problem, but this would be a vast improvement, especially since blocking can't be done by Tautulli or Plex natively.

Describe alternatives you've considered N/A

Additional context N/A

blacktwin commented 3 years ago

You can customize the your rich notification however you'd like. What is in the script is a general output of information and a basic template of what can be done.

Add what you'd like here. the stream object holds all the information about the stream that is being killed. Any of the stream parameters can be used and can be found following these instructions.

                    "fields": [
                        {
                            "inline": True,
                            "name": "User",
                            "value": self.stream.friendly_name
                        },
                        {
                            "inline": True,
                            "name": "Session Key",
                            "value": self.stream.session_key
                        },
                        {
                            "inline": True,
                            "name": "Watching",
                            "value": self.stream.full_title
                        },
                        {
                            "inline": True,
                            "name": "IP Address",
                            "value": self.stream.ip_address   # Your request
                        },
                        {
                            "inline": False,
                            "name": "Message Sent",
                            "value": message
                        }
                    ],
Kazz3r24 commented 3 years ago

Oh perfect! Thank you for pointing that out to me.