Search found 85 matches

by Mar2zz
September 22nd, 2011, 3:04 pm
Forum: Post-Processing Scripts
Topic: [BASH] Pre-processing script (or queue-filter scripts)
Replies: 22
Views: 32835

Re: [BASH] Pre-processing script (or queue-filter scripts)

hmm, maybe because you echo blanks? Try this: ### return things to sab (changed or unchanged) echo 1 # 0=Refuse, 1=Accept echo $1 # Name of the NZB (no path, no ".nzb") echo $2 # PP (0, 1, 2 or 3) echo $3 # Category echo $4 # Script (basename) echo $PRIORITY # Priority (-100 -2, -1, 0 or 1...
by Mar2zz
September 22nd, 2011, 8:06 am
Forum: Post-Processing Scripts
Topic: [BASH] Pre-processing script (or queue-filter scripts)
Replies: 22
Views: 32835

Re: [BASH] Pre-processing script (or queue-filter scripts)

use -gt instead of >, or see this for more options (note the difference between string and integer comparisons)
http://tldp.org/LDP/abs/html/comparison ... OMPARISON1
by Mar2zz
August 28th, 2011, 1:59 am
Forum: Post-Processing Scripts
Topic: [BASH]General bash question - variables in post processing
Replies: 1
Views: 1514

Re: [BASH]General bash question - variables in post processi

Is it logging? maybe you could grep the log for those variables, or use some dirname functions to get these names.
by Mar2zz
August 19th, 2011, 7:39 am
Forum: Post-Processing Scripts
Topic: Looking for help, willing to make a donation
Replies: 3
Views: 3031

Re: Looking for help, willing to make a donation

You should ask Ruud from couchpotato to implement something like that in couchpotato. He has a donate-button also.
by Mar2zz
August 18th, 2011, 2:34 pm
Forum: Post-Processing Scripts
Topic: [Bash/Linux] Help with Rename script
Replies: 2
Views: 1957

Re: [Bash/Linux] Help with Rename script

Use sed to replace stuff.

pseudocode:
#$1 is inputfile (or directory)

filename=$(basename $1)
extension=${filename##*.}
newname=echo $filename | sed 's/.xvid.*\|.x264.*//g'
mv $filename $newname.$extension
by Mar2zz
August 9th, 2011, 2:23 pm
Forum: Post-Processing Scripts
Topic: [BASH] How to create your own postprocessingscript
Replies: 30
Views: 82975

Re: [BASH] How to create your own postprocessingscript

Thanks for your reply ls $1/../proc this didn't work, I ended up doing this : final=$(echo "$1" | sed 's-temp.*-proc-') and find "$1" \( -name "*.avi" -or -name "*.mkv" -or -name "*.mp4" -or -name "*.mov" -or -name "*.mpeg" -or -...
by Mar2zz
July 2nd, 2011, 8:15 am
Forum: Third-party Addons
Topic: Headphones : Music albums and artists auto download program
Replies: 311
Views: 1349787

Re: Headphones : Music albums and artists auto download program

I'm testing out Mutagen to read the id3 tags of individual songs so you can even see which tracks you have off an album, so eventually you can download single mp3s Great, I really hoped you were going for Mutagen! And even taking it to the next level, downloading individual mp3's, that would be a g...
by Mar2zz
July 1st, 2011, 12:58 pm
Forum: Post-Processing Scripts
Topic: I have a Problem with post prossesing SickBeard script in SABnzbd.
Replies: 3
Views: 4068

Re: I have a Problem with post prossesing SickBeard script in SABnzbd.

You need to copy all files in sickbeards autoProcessTV-folder to your postprocessscript directory... Did you do that?
by Mar2zz
July 1st, 2011, 12:55 pm
Forum: Post-Processing Scripts
Topic: [Synology][upnp] Post process script error
Replies: 5
Views: 6453

Re: [Synology][upnp] Post process script error

Don't know if this is a solution, but synology doesn't have bash, but ash.

On top of your script you have #!/bin/bash, change that into #!/bin/sh. Maybe that will work, I have no synology, but it's worth a try....
by Mar2zz
June 8th, 2011, 7:50 am
Forum: Post-Processing Scripts
Topic: [BASH] Pre-processing script (or queue-filter scripts)
Replies: 22
Views: 32835

Re: [BASH] Pre-processing script (or queue-filter scripts)

A script that pauses all nzb's coming from sickbeard (can also be used to set low priority) (someone asked for in PM, thought to share it here): #!/usr/bin/env bash ### Set to paused if it's a file from sickbeard case $3 TV) # <- change this to your Sickbeard category priority="-2" # -2 me...
by Mar2zz
May 23rd, 2011, 12:16 am
Forum: Post-Processing Scripts
Topic: simple script to move files after processing
Replies: 39
Views: 69283

Re: simple script to move files after processing

use cp instead of mv and delete sourcefiles after succesfull copy.
by Mar2zz
April 14th, 2011, 3:05 pm
Forum: Post-Processing Scripts
Topic: [BASH] Pre-processing script (or queue-filter scripts)
Replies: 22
Views: 32835

[BASH] Pre-processing script (or queue-filter scripts)

It took some effort to find out how this works, so I thougt to share the knowledge how this works. Sabnzbd 6.x can do preprocessing, what means it can do stuff to the nzb before it enters the queue. Sab starts the scripts and feeds it parameters like this: Running pre-queue script ['/home/username/....
by Mar2zz
April 11th, 2011, 11:00 am
Forum: Post-Processing Scripts
Topic: simple script to move files after processing
Replies: 39
Views: 69283

Re: simple script to move files after processing

mv -fv "$1/*" $HOME/Desktop/

try this
by Mar2zz
April 2nd, 2011, 9:56 am
Forum: Post-Processing Scripts
Topic: running multiple scripts?
Replies: 5
Views: 7274

Re: running multiple scripts?

Create a script that calls other scripts. If you are on linux: # Running multiple scripts from 1 script This is also easy. You can do 2 things. First the easiest: 1. Blank textfile, #!/usr/bin/env bash @ top and the following lines in the script: ./path/toscript/one/scriptname1 ./path/toscript/two/s...
by Mar2zz
March 26th, 2011, 1:15 pm
Forum: Post-Processing Scripts
Topic: simple script to move files after processing
Replies: 39
Views: 69283

Re: simple script to move files after processing

That's probably a problem with line endings (invisible stuff). See http://en.wikipedia.org/wiki/Line_endings

Convert it to LF for Mac I think.