First off, I absolutely love NZBGet, it's the best download client I've used.
Second, I'm a n00b at scripting in general so please take it easy on me.
I have basically written a 2-liner script that will wake up the machine that's running Plex Server (this is a different machine that the one where NZBGet is running) and then it will update the TV Show library.
This is the script:
Code: Select all
#!/bin/bash
###########################################################
### NZBGET POST-PROCESSING SCRIPT
# Step 1: Sends a magic packet to the Plex Media Server
# Step 2: Executes the URL to update the TV Shows Library
### NZBGET POST-PROCESSING SCRIPT
###########################################################
# First send a magic packet to the Plex Server to wake it up
# Plex Server MAC Address: D8:CB:8A:38:DD:FD
wakeonlan D8:CB:8A:38:DD:FD
# Update the Plex TV Show Library
wget http://192.168.0.101:32400/library/sections/2/refresh
So I dump this script into the NZBGet scripts folder and add it to the default scripts for the 'tv' category.
But every time a download finishes, the step where this script is executed shows an error, for example:
Can anyone help me get rid of that error?
All my downloads show PP-FAILURE because of this failed post-processing step.
Thanks