Page 2 of 3
Re: Media Processing Script
Posted: March 6th, 2008, 3:27 am
by th3joker
Wow that's really kind of you, just got out of bed and I'll try it now.
Thanks again :-)
Re: Media Processing Script
Posted: March 9th, 2008, 10:33 am
by th3joker
Still no joy.
This is the error I get if i run it:
./postproc.sh "/Volumes/Storage/sabnzbd/Downloads/Finished/TV"
usage: date [-jnu] [-d dst] [-r seconds] [-t west] [-v[+|-]val[ymwdHMS]] ...
[-f fmt date | [[[mm]dd]HH]MM[[cc]yy][.ss]] [+format]
----- Started Processing: -----
Folder Path: /Volumes/Storage/sabnzbd/Downloads/Finished/TV
Getting category from folder name
Cannot determine category - using default category: MOVIES
Category: MOVIES
du: illegal option -- S
usage: du [-H | -L | -P] [-a | -s | -d depth] [-c] [-h | -k | -m] [-x] [-I mask] [file ...]
Content is
No files found (file could be under 2M)
Processing error occured
Preserving source folder
Done!
Any ideas?
Re: Media Processing Script
Posted: March 25th, 2008, 1:15 am
by auskento
Sorry for delay on responding to this, I have been away for a while.
The error you are getting is again a limitation of the mac implementation of some of the linux commands i have itilised.
Search for the line that says
Code: Select all
MEDIATYPE=`du -aS | sort -nr | sed -n '2p' | awk -F. '{print $NF}'`
and change it to
Code: Select all
MEDIATYPE=`du -a | sort -nr | sed -n '2p' | awk -F. '{print $NF}'`
and give it a go
Re: Media Processing Script
Posted: April 8th, 2008, 11:36 am
by th3joker
I moved my sab machine to a PC I wasn't using, installed openSUSE and I'm up and running, the script works a treat too.
Many, many thanks for trying to get me up and running on the Mac :-)
I've upgraded to the new Beta 0.4.0b2 and it's the dog's danglies.
Re: Media Processing Script
Posted: April 8th, 2008, 6:33 pm
by sensei73
hi, i tried to download the script but i coulnd acces the site....please help!
anyway I have a question can it work with windows? thanks
Re: Media Processing Script
Posted: April 8th, 2008, 8:11 pm
by auskento
My internet has been offline for about 5 days after storms and a truck caused lots of problems with phone lines.
It is back online.
I will be revising the script, to move all variables back internal to the script, or use a config file location variable in it, to better suit the script to the 0.4.0 series.
Re: Media Processing Script
Posted: April 8th, 2008, 8:14 pm
by auskento
sensei73 wrote:
hi, i tried to download the script but i coulnd acces the site....please help!
anyway I have a question can it work with windows? thanks
No
Re: Media Processing Script
Posted: April 19th, 2008, 6:19 am
by th3joker
Just a quickie, when I download a TV episode that's about 1.2GB and also an MKV the script treats the file as though it where a Movie instead of a TV episode and copies it to the Movies folder instead.
If I download a Movie that is an MKV it fails to rename the file correctly and copies the file and it's folder to the Movies folder.
This is on my openSUSE box.
Re: Media Processing Script
Posted: April 23rd, 2008, 3:18 pm
by evidenceunseen
How can I download this script? The site says I'm not authorized and if I use https it comes up with a login.
Re: Media Processing Script
Posted: April 23rd, 2008, 3:32 pm
by th3joker
I think his hosting is broken, same for me too
Re: Media Processing Script
Posted: April 23rd, 2008, 5:18 pm
by auskento
My linux box died a nasty death
Should be back online now after getting a temp server in place.
Sorry for the problems
Re: Media Processing Script
Posted: September 25th, 2008, 2:15 pm
by th3joker
I've switched to a FreeNAS server downloading my stuff as I'm trying to reduce the amount of computers I have on 24/7.
With that running my file server and downloads I've been able to switch my download machine off.
It took a while getting sab up and running but with some help from people both on here and the FreeNAS forum I managed it.
FreeNAS is a really small FreeBSD install and the implementation of du doesn't recognise the command 'du -S' the error comes back as:
Code: Select all
du: illegal option -- S
usage: du [-H | -L | -P] [-a | -s | -d depth] [-c] [-h | -k | -m] [-n] [-x] [-I mask] [file ...]
Content is
No files found (file could be under 25M)
Processing error occured
Preserving source folder
Done!
When I change the command to 'du -s' lowercase 's' it doesn't error but responds with the following:
Code: Select all
usage: du [-H | -L | -P] [-a | -s | -d depth] [-c] [-h | -k | -m] [-n] [-x] [-I mask] [file ...]
Content is
No files found (file could be under 25M)
Processing error occured
Preserving source folder
Done!
I would really appreciate any help, many thanks for looking.
Thanks to Auskento too, he really helped me out a while back with problems running the script on my mac.
Re: Media Processing Script
Posted: September 25th, 2008, 3:38 pm
by th3joker
Fixed it I think.
I change line 812 of postproc.sh from:
Code: Select all
MEDIATYPE=`du -aS | sort -nr | sed -n '2p' | awk -F. '{print $NF}'`
to
Code: Select all
MEDIATYPE=`du -a | sort -nr | sed -n '2p' | awk -F. '{print $NF}'`
Now it's working again, it's such a great script too.
It seemed that du on Ubuntu accepted the du -S but the BSD implementation FreeNAS uses doesn't.
Not sure if I broke anything by changing it but the script seems to run fine and it hasn't deleted anything I didn't want it to yet :-)
Re: Media Processing Script
Posted: September 25th, 2008, 5:06 pm
by auskento
Glad you got it going.
I havent done much at all on this script in a while due to my free time being reduced.
It *mostly* does what it needs to, but occasionally does strange things.
I might get around to looking at it further closer to christmas. Most of what needs to be done is bug fixes, theres not a huge amount else to add to the script at this stage.
Re: Media Processing Script
Posted: March 2nd, 2009, 8:30 pm
by th3joker
How would I add into the TV part to also convert .mkv files into iPhone compliant files and keep the original .mkv as well.