blacktwin / JBOPS

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

Help with hide_episode_spoilers.py #301

Closed shanethegooner closed 2 years ago

shanethegooner commented 3 years ago

Hello! Please bear with me, this is the first time using a script (or any python script for that matter!) with Tautulli but I think I've done everything correct, I'm just not getting the result I thought I would.

I have installed Python 3.9.6, I also installed plexapi and requests via pip. I setup the config, triggers, conditions and arguments as instructed to in the script and inserted my Tautulli/Plex URL and API.

When the episodes are added however, the episode title cards are not blurred. I manually tested the script against a few episodes but that didn't work either. I can see the script working as when I test the script, the episode in Plex started to update (as if I requested new metadata for it) but as above, no blurred image.

2021-07-28 10:37:01 - INFO :: CP Server Thread-7 : Tautulli Notifiers :: Updated notification agent: Script (notifier_id 6). 2021-07-28 10:37:01 - DEBUG :: CP Server Thread-5 : Sending test Script notification. 2021-07-28 10:37:01 - DEBUG :: CP Server Thread-5 : Tautulli NotificationHandler :: Notifiers enabled for notify_action 'test' (manual trigger). 2021-07-28 10:37:01 - INFO :: Thread-2 : Tautulli NotificationHandler :: Preparing notification for notifier_id 6. 2021-07-28 10:37:01 - DEBUG :: Thread-2 : Tautulli Notifiers :: Trying to run notify script: C:\Users\USERNAME\Documents\Tautulli Scripts\hide_episode_spoilers.py, arguments: ['--rating_key', '13127', '--blur', '25'], action: test 2021-07-28 10:37:01 - DEBUG :: Thread-2 : Tautulli Notifiers :: Full script is: ['python', 'C:\Users\USERNAME\Documents\Tautulli Scripts\hide_episode_spoilers.py', '--rating_key', '13127', '--blur', '25'] 2021-07-28 10:37:01 - DEBUG :: Thread-2 : Tautulli Notifiers :: Executing script in a new thread. 2021-07-28 10:37:05 - DEBUG :: Thread-63 : Tautulli Notifiers :: Subprocess returned with status code 0. 2021-07-28 10:37:05 - INFO :: Thread-63 : Tautulli Notifiers :: Script notification sent.

blacktwin commented 3 years ago

I recently merged a PR to this script. Please download this newer version and see if that helps.