Page 1 of 1

0.6.15 pre queue script changes result-dir of post processin

Posted: February 21st, 2012, 5:28 pm
by warpAzrael
Hi,

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

eg "Castle - [4x16] - 720p WEB DL DD5 1 H 264 NFHD", the following post-processing script gets called with a wrong first parameter:

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
The problem is the trailing " - [" on Castle - [ which i use to get the TvShow name.

is this a Sabnzbd bug?

Re: 0.6.15 pre queue script changes result-dir of post proce

Posted: February 21st, 2012, 5:36 pm
by warpAzrael
maybe tv sorting is causing this?
My TV sorting pattern is:

Code: Select all

%sn/%sn - [%sx%0e] - %en.%ext
2012-02-21 19:23:42,092::INFO::[postproc:523] Running repair on set Castle.S04E16.Linchpin.720p.WEB-DL.DD5.1.H.264-NFHD
...
2012-02-21 19:23:42,134::INFO::[newsunpack:765] Quick-check for Castle.S04E16.Linchpin.720p.WEB-DL.DD5.1.H.264-NFHD is OK, skipping repair
2012-02-21 19:23:42,136::INFO::[newsunpack:822] Deleting /mnt/cache/.downloads/incomplete/Castle S04E16 720p WEB DL DD5 1 H 264 NFHD/Castle.S04E16.Linchpin.720p.WEB-DL.DD5.1.H.264-NFHD.par2
2012-02-21 19:23:42,136::INFO::[newsunpack:836] Deleting /mnt/cache/.downloads/incomplete/Castle S04E16 720p WEB DL DD5 1 H 264 NFHD/Castle.S04E16.Linchpin.720p.WEB-DL.DD5.1.H.264-NFHD.vol001+02.par2
2012-02-21 19:23:42,139::INFO::[postproc:537] Par2 check finished on Castle - [4x16] - 720p WEB DL DD5 1 H 264 NFHD
2012-02-21 19:23:42,143::DEBUG::[tvsort:193] Found TV Show - Starting folder sort (Castle - [4x16] - 720p WEB DL DD5 1 H 264 NFHD)
2012-02-21 19:23:42,734::INFO::[misc:722] Creating directories: /mnt/cache/.downloads/complete/TV/Castle - [/Castle - [4x16] - 720p WEB DL DD5 1 H 264 NFHD

Re: 0.6.15 pre queue script changes result-dir of post proce

Posted: February 26th, 2012, 2:44 pm
by warpAzrael