0.6.15 pre queue script changes result-dir of post processin
Posted: February 21st, 2012, 5:28 pm
Hi,
when i change line 2 of the output of the pre-queue-script to
eg "Castle - [4x16] - 720p WEB DL DD5 1 H 264 NFHD", the following post-processing script gets called with a wrong first parameter:
The problem is the trailing " - [" on Castle - [ which i use to get the TvShow name.
is this a Sabnzbd bug?
when i change line 2 of the output of the pre-queue-script to
Code: Select all
...
if [ "$3" = "tv" ]
then
touch tv.txt
# clean NZB FILE name so postprocessing has the expected format
ret2="${8} - [${9}x${10}] - ${11}"
# enable TV-Sorting: --> %sn/%sn - [%sx%0e] - %en.%ext
found=$(grep -liwc -m1 "^${8} - \[${9}x${10}\]" tv.txt)
if [ "$found" = "tv.txt" ] ; then
#echo "already downloaded"
ret6="-2" #pause
fi
fi
Code: Select all
The first parameter (result-dir) = /mnt/cache/.downloads/complete/TV/Castle - [
The second parameter (nzb-name) = Castle S04E16 720p WEB DL DD5 1 H 264 NFHD.nzb
The third parameter (nice name) = Castle - [4x16] - 720p WEB DL DD5 1 H 264 NFHD
The fourth parameter (newzbin-id) =
The fifth parameter (category) = tv
The sixth parameter (group) = alt.binaries.hdtv
The seventh parameter (status) = 0
is this a Sabnzbd bug?