MSG for MV: Path not ID
This commit is contained in:
parent
11dca81397
commit
3ff5bcb9a9
@ -187,7 +187,7 @@ function file_add() {
|
|||||||
#if something MVs ...
|
#if something MVs ...
|
||||||
local IDs_mv="$(db_query "SELECT ID FROM File WHERE MD5='$MD5' AND Size='$SIZE' AND (Name!='$name' OR Folder!='$folder');")"
|
local IDs_mv="$(db_query "SELECT ID FROM File WHERE MD5='$MD5' AND Size='$SIZE' AND (Name!='$name' OR Folder!='$folder');")"
|
||||||
[ $DEBUG == $TRUE ] && echo "IDs_mv: $IDs_mv" >&2
|
[ $DEBUG == $TRUE ] && echo "IDs_mv: $IDs_mv" >&2
|
||||||
[ -n "$IDs_mv" ] && echo "FILE MV: $(db_query "SELECT ID FROM File WHERE ID=$(echo $IDs_mv | cut -d ' ' -f1);") -> $FILE"
|
[ -n "$IDs_mv" ] && echo "FILE MV: $(db_query "SELECT CONCAT(Folder,Name) FROM File WHERE ID=$(echo $IDs_mv | cut -d ' ' -f1);") -> $FILE"
|
||||||
db_query "UPDATE File SET TTCheck='$DATE',Name='$name',Folder='$folder',TTSync='$TTSYNC_EXIST' WHERE MD5='$MD5' AND Size='$SIZE' AND (Name!='$name' OR Folder!='$folder');"
|
db_query "UPDATE File SET TTCheck='$DATE',Name='$name',Folder='$folder',TTSync='$TTSYNC_EXIST' WHERE MD5='$MD5' AND Size='$SIZE' AND (Name!='$name' OR Folder!='$folder');"
|
||||||
|
|
||||||
#es existiert genau so ein eintrag
|
#es existiert genau so ein eintrag
|
||||||
|
Loading…
Reference in New Issue
Block a user