########## # Config # ########## function funcConfigPre { # These values are set at the beginning of the script user="" # OTR email address pass="" # OTR password delugeDir="/etc/deluged" # Config dir of DelugeD inDir="/Multimedia/Video/.Downloaded" # Dir with .otrkeys uncutDir="/Multimedia/Video/.Uncut" # Dir with uncut videos (output of decoder) cutDir="/Multimedia/Video/.Uncut" # Dir with cut videos (output of cutter) outDir="/Multimedia/Video/" # Final dir with videos torrentDb="/home/deluged/torrents.db" # File with file names and labels (see at github: OTR-TorrentDb) kodiUrl="user:password@localhost:8080" # Specify user, password and port for Kodi JSON API (HTTP interface) logFile="/home/deluged/otrDecodeAll.log" # path to the log file # log levels: 0=off; 1=error; 2=warn; 3=info; 4 debug; 5 verbose debug logLevel=2 #level, which messages shall be written into the log. echoLevel=5 #level, which messages shall be written to stdout. } # These values are set after the command line arguments were parsed. # This way they can't be overridden, but can use the final config variables function funcConfigPost { cmdDecode="/usr/bin/otrtool" # path to otrkey decoder cmdDecodeArgs="-x -e $user -p $pass -D $uncutDir" # for pyropeters otrdecoder #cmdDecode="/home/pi/bin/qemu-x86_64 -L /home/pi/ /home/pi/bin64/otrdecoder-64" #cmdDecodeArgs="-e $user -p $pass -o "$uncutDir" -i" # for original otrdecoder #cmdDecode="/usr/bin/otrpidecoder" # path to NYrks otrdecoder #cmdDecodeArgs="-d -e $user -p $pass" #uncutDir="$inDir" # no output dir supported! cmdCut="/home/deluged/multicutmkv.sh" # path to multicut cmdCutArgs= cmdSaneRenamix="/home/deluged/saneRenamix.sh" # path to saneRenamix cmdSaneRenamixArgs="-s -f" }