1
0
Fork 0
mirror of https://github.com/Jonny007-MKD/OTR-DecodeAll synced 2024-05-16 23:14:06 +02:00
OTR-DecodeAll/config

49 lines
1.9 KiB
Plaintext
Raw Normal View History

2014-08-06 18:31:44 +02:00
##########
# Config #
##########
function funcConfigPre { # These values are set at the beginning of the script
user="" # OTR email address
pass="" # OTR password
2014-08-06 18:31:44 +02:00
delugeDir="/etc/deluged" # Config dir of DelugeD
inDir="/Multimedia/Video/.Downloaded" # Dir with .otrkeys
2015-02-25 17:33:16 +01:00
tempDir="/Multimedia/Video/.Temp" # Dir with decoded and cut videos (output of decoder and cutter)
outDir="/Multimedia/Video/" # Final dir with videos
2014-08-06 18:31:44 +02:00
torrentDb="/home/deluged/torrents.db" # File with file names and labels (see at github: OTR-TorrentDb)
2015-02-24 17:25:31 +01:00
kodiUrl="user:password@localhost:8080" # Specify user, password and port for Kodi JSON API (HTTP interface)
2014-08-06 18:31:44 +02:00
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.
2015-03-02 16:42:17 +01:00
umask 0002 # Set permissions 775/664 per default
}
2014-08-06 18:31:44 +02:00
# 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
2015-02-25 17:33:16 +01:00
cmdDecodeArgs="-x -e $user -p $pass -D $tempDir" # for pyropeters otrdecoder
2015-02-24 17:24:12 +01:00
#cmdDecode="/home/pi/bin/qemu-x86_64 -L /home/pi/ /home/pi/bin64/otrdecoder-64"
2015-02-25 17:33:16 +01:00
#cmdDecodeArgs="-e $user -p $pass -o "$tempDir" -i" # for original otrdecoder
2015-02-24 17:24:12 +01:00
#cmdDecode="/usr/bin/otrpidecoder" # path to NYrks otrdecoder
#cmdDecodeArgs="-d -e $user -p $pass"
2015-02-25 17:33:16 +01:00
#tempDir="$inDir" # no output dir supported!
2015-02-24 17:24:12 +01:00
cmdCut="/home/deluged/multicutmkv.sh" # path to multicut
2015-03-02 16:42:17 +01:00
cmdCutArgs="-o $tempDir -t $tempDir"
2015-02-24 17:24:12 +01:00
cmdSaneRenamix="/home/deluged/saneRenamix.sh" # path to saneRenamix
cmdSaneRenamixArgs="-s -f"
}