0.6.15 pre queue script changes result-dir of post processin

Report & discuss bugs found in SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
warpAzrael
Newbie
Newbie
Posts: 13
Joined: May 16th, 2010, 1:50 pm

0.6.15 pre queue script changes result-dir of post processin

Post 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?
warpAzrael
Newbie
Newbie
Posts: 13
Joined: May 16th, 2010, 1:50 pm

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

Post 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
warpAzrael
Newbie
Newbie
Posts: 13
Joined: May 16th, 2010, 1:50 pm

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

Post by warpAzrael »

Post Reply