diff --git a/config b/config index 440a471..8c0dd84 100644 --- a/config +++ b/config @@ -18,6 +18,8 @@ function funcConfigPre { # These values are set at the beginning of the script # 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. + + umask 0002 # Set permissions 775/664 per default } @@ -37,7 +39,7 @@ function funcConfigPost { cmdCut="/home/deluged/multicutmkv.sh" # path to multicut - cmdCutArgs="-o $tempDir" + cmdCutArgs="-o $tempDir -t $tempDir" diff --git a/otrDecodeAll b/otrDecodeAll index a83d7bc..7080818 100755 --- a/otrDecodeAll +++ b/otrDecodeAll @@ -13,7 +13,6 @@ logLevel=0 echoLevel=5 lastKodiCheck=0 cutAppendix="-cut.mkv" -umask 0002 # Set permissions 775/664 per default PwD=$(readlink -e $0) # Get the path to this script @@ -487,7 +486,7 @@ function funcRemove { if [ $remove -eq 2 ]; then # force deleting funcRemoveFile "$pathAbsEncoded"; elif [ $remove -eq 1 ]; then # test torrent client - ## TODO: Add more checks here, not only Deluge. Therefore we need a new config var + ## Add more checks here, not only Deluge if [ -n "$delugeDir" ] && [ -d "$delugeDir/state" ]; then # If deluge config dir is defined if [ -n "`grep "$filename" "$delugeDir/state" -R --include=*.torrent`" ]; then funcLog 4 "Torrent still exists in Deluge"