Share your scripts or request scripts with specific features.
Forum rules
Please keep the forum clean - one topic per script. Questions not related to a specific script should be posted in Support forum.
-
andCoffee
- Posts: 10
- Joined: 22 Sep 2015, 05:27
Post
by andCoffee » 30 Jul 2017, 20:35
Hello,
I was wondering if anyone could help me create a script that adds the same fanart.jpg and poster.jpg to a folder after unpack. I use Plex for sports and it likes to auto-generate thumbnails that often contain spoilers (both in the poster and the fanart) so I'd everything that post-processes under my "Sports" category to add in a generic fanart image and poster image. This should prevent Plex from auto-generating anything.
I wouldn't need the script to generate images - just use a single image that I've already created.
Thanks for any help!
-
hugbug
- Developer & Admin
- Posts: 7645
- Joined: 09 Sep 2008, 11:58
- Location: Germany
Post
by hugbug » 31 Jul 2017, 06:16
So a simple copy command?
What is your OS?
-
andCoffee
- Posts: 10
- Joined: 22 Sep 2015, 05:27
Post
by andCoffee » 31 Jul 2017, 10:35
hugbug wrote: ↑31 Jul 2017, 06:16
So a simple copy command?
What is your OS?
Pretty much. I'm using Unraid (which is Linux). This is what I was trying to work with, but it doesn't seem to be going:
Code: Select all
#!/bin/sh
###########################################
### NZBGET POST-PROCESSING SCRIPT ###
# Copy generic fanart and poster to file destination directory.
#
# This prevents spoilers in auto-generated thumbnails
### NZBGET POST-PROCESSING SCRIPT ###
###########################################
cp $(MainDir)/poster.jpg $(NZBPP_DIRECTORY)
cp $(MainDir)/fanart.jpg $(NZBPP_DIRECTORY)
-
hugbug
- Developer & Admin
- Posts: 7645
- Joined: 09 Sep 2008, 11:58
- Location: Germany
Post
by hugbug » 31 Jul 2017, 11:33
but it doesn't seem to be going:
Was the script executed at all? NZBGet prints to log a message like "Executing script xxx".
If not - check if the script was selected for nzb - click on nzb, then button "Postprocess"
The script must also end with
Otherwise nzbget will show it as failed.
For details see
https://nzbget.net/post-processing-scripts.
Who is online
Users browsing this forum: No registered users and 28 guests