Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- #Called after sickbeard processes an episode
- SEED_DIR=~/Downloads/Seeding #CHANGE THIS TO YOUR OWN LOCATION
- PROC_DIR=~/Downloads/Processing #CHANGE THIS TO YOUR OWN LOCATION
- #args:
- # $1 = Final renamed filename with full path
- # $2 = Original filename with full path
- PROC_DIR_LEN=${#PROC_DIR}
- ORIG_NAME=${2:$PROC_DIR_LEN+1} #substing of arg $2 from length of proc dir - this could be Season name/episode name.mkv
- #create the link
- ln -fsn "$1" "$SEED_DIR/$ORIG_NAME"
Advertisement
Add Comment
Please, Sign In to add comment