NZBGet PP

Running FileBot from the console, Groovy / FileBot scripting, shell scripts, etc
Post Reply
remo
Posts: 9
Joined: 28 Sep 2019, 19:15

NZBGet PP

Post by remo » 30 Nov 2019, 16:47

Hello Pros,

I‘ve written a short NZBGet Post-Processing Script which runs pretty well.

But sometimes PP fails with „trying to auto-detect from context“

8 of 10 cases work well.
But sometimes I‘ll get the above message.

The folder depths are equal in any case.

Is there a way to read out the final file including its complete path?

-remo

User avatar
rednoah
The Source
Posts: 16942
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: NZBGet PP

Post by rednoah » 30 Nov 2019, 17:14

What does the complete log say?


:idea: Please read How to Request Help.
:idea: Please read the FAQ and How to Request Help.

remo
Posts: 9
Joined: 28 Sep 2019, 19:15

Re: NZBGet PP

Post by remo » 30 Nov 2019, 17:50

Sorry.

Here's my script:

Code: Select all

#!/bin/bash

####################################################################################################
### NZBGET POST-PROCESSING SCRIPT																 ###

# Run FileBot as post-process after extraction.
# (c) remo 2019

### NZBGET POST-PROCESSING SCRIPT																 ###
####################################################################################################



FINAL_DIR="$NZBPP_DIRECTORY/$NZBPP_NZBNAME"

filebot -rename "$FINAL_DIR" --format "{plex.name}" -non-strict --lang de -no-xattr --log-file /tmp/fbot.log

if [ $? = 0 ]; then
	exit 93		#SUCCESS
else
	exit 94		#FAILURE
fi
Log:

Code: Select all

Rename movies using [TheMovieDB]
Auto-detect movie from context: [/media/remonas-nzbget/x264/Big Game 2014 German DTS DL 1080p BluRay x264-Pate/Big Game 2014 German DTS DL 1080p BluRay x264-Pate/Big Game - Die Jagd beginnt (2014).mkv]
Skipped [/media/remonas-nzbget/x264/Big Game 2014 German DTS DL 1080p BluRay x264-Pate/Big Game 2014 German DTS DL 1080p BluRay x264-Pate/Big Game - Die Jagd beginnt (2014).mkv] because [/media/remonas-nzbget/x264/Big Game 2014 German DTS DL 1080p BluRay x264-Pate/Big Game 2014 German DTS DL 1080p BluRay x264-Pate/Big Game - Die Jagd beginnt (2014).mkv] already exists
Processed 0 files
Rename episodes using [AniDB]
No media files: [/media/remonas-nzbget/x264/Big Game 2014 German DTS DL 1080p BluRay x264-Pate/Big Game 2014 German DTS DL 1080p BluRay x264-Pate/biggame.108-sample.mkv]
Failure (×_×)⌒☆
Rename episodes using [AniDB]
No media files: [/media/remonas-nzbget/x264/Watchmen.Die.Waechter.ULTIMATE.CUT.2009.German.AC3D.5.1.DL.1080p.BluRay.x264-PS/Watchmen.Die.Waechter.ULTIMATE.CUT.2009.German.AC3D.5.1.DL.1080p.BluRay.x264-PS/ps-watchmenult.bd108-sample.mkv]
Failure (×_×)⌒☆
remo

User avatar
rednoah
The Source
Posts: 16942
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: NZBGet PP

Post by rednoah » 01 Dec 2019, 06:30

1.
The destination file path already exists:

Code: Select all

Skipped [/media/remonas-nzbget/x264/Big Game 2014 German DTS DL 1080p BluRay x264-Pate/Big Game 2014 German DTS DL 1080p BluRay x264-Pate/Big Game - Die Jagd beginnt (2014).mkv] because [/media/remonas-nzbget/x264/Big Game 2014 German DTS DL 1080p BluRay x264-Pate/Big Game 2014 German DTS DL 1080p BluRay x264-Pate/Big Game - Die Jagd beginnt (2014).mkv] already exists
:?: The --conflict option allows you to decided what to do if source file can't be moved to destination file, because destination file already exists.

:idea: You likely have multiple automated tools running. If the destination file already exists, but FileBot didn't create it, then something else did.


2.
-sample files are categorically ignored:

Code: Select all

No media files: [/media/remonas-nzbget/x264/Big Game 2014 German DTS DL 1080p BluRay x264-Pate/Big Game 2014 German DTS DL 1080p BluRay x264-Pate/biggame.108-sample.mkv]
:idea: Please read the FAQ and How to Request Help.

Post Reply