Page 1 of 1

SABnzbd

Posted: 29 Aug 2013, 16:29
by Gutz-Pilz
Hi guys...

might be a quick question

Code: Select all

#!/bin/sh

SAVEIFS=$IFS
IFS=$(echo -en "\n\b")

BaseDir=/media/5a24e136-09b9-48e1-95db-b44d5db3e28a
MediaDir=${BaseDir}/Medien
DownloadFolder=$1

AMC(){
filebot -script fn:amc "$DownloadFolder" --output "$MediaDir" --conflict skip -non-strict --action move --def "ignore=\b(?i:doku)\b" clean=y artwork=y xbmc=192.168.0.16,192.168.0.109 subtitles=de
}
Cleaning(){
filebot -script "${ScriptsDir}/cleaner.groovy" "$DownloadFolder"
}
# Main #
IFS=$SAVEIFS
echo '### Scannen,extrahieren, umbenennen und verschieben  ###'
AMC
echo '### CleanUP ###'
Cleaning
echo '### Fertig ###'

i have this as a postprocessing bash in my pyLoad and it works.
in SABnzbd it doesnt.

i get this output:

Code: Select all

Parameter: ignore = \b(?i:doku)\b
Parameter: clean = y
Parameter: artwork = y
Parameter: xbmc = 192.168.0.16,192.168.0.109
Parameter: subtitles = de
Argument: /media/5a24e136-09b9-48e1-95db-b44d5db3e28a/Medien/Downloads/Hannibal.S01E01.Aperitif.GERMAN.DUBBED.DL.720p.WebHD.x264-TVP
Read archive [100002320-100005359-99998170.rar] to [/media/5a24e136-09b9-48e1-95db-b44d5db3e28a/Medien/Downloads/Hannibal.S01E01.Aperitif.GERMAN.DUBBED.DL.720p.WebHD.x264-TVP/100002320-100005359-99998170/Hannibal.S01E01.Aperitif.GERMAN.DUBBED.DL.720p.WebHD.x264-TVP]
Done ?(?????)?
### CleanUP ###
Delete /media/5a24e136-09b9-48e1-95db-b44d5db3e28a/Medien/Downloads/Hannibal.S01E01.Aperitif.GERMAN.DUBBED.DL.720p.WebHD.x264-TVP/100002320-100005359-99998170.nfo
Delete /media/5a24e136-09b9-48e1-95db-b44d5db3e28a/Medien/Downloads/Hannibal.S01E01.Aperitif.GERMAN.DUBBED.DL.720p.WebHD.x264-TVP/100002320-100005359-99998170.rar
Done ?(?????)?

what im trying to say...

pyload extracts sorts and does everything perfect.
but on SAB it doesnt even start extracting

is it because the way it is packed ?
SAB had = .rar, r0,r1,r2....
pyLoad has = part1.rar, part2.rar, part3.rar

Re: SABnzbd

Posted: 30 Aug 2013, 00:13
by rednoah
Is this just stout? All multi-value rar naming schemes should be supported. I'd there is errors check stderr. If you're redirecting output make sure to redirect standard outputs a well as standard error.