resolf #22 (add filesize to DB)

+ del unused func
This commit is contained in:
6543 2019-05-11 18:12:12 +02:00
parent 10d8bb1a39
commit f3eafa3a31

View File

@ -83,6 +83,8 @@ function md5_in_add() {
else
db_query "UPDATE File SET TTSync=$TTSYNC_EXIST WHERE MD5='$md5' AND Folder='$folder' AND Name='$name';"
fi
#filesize ..
[ -f "$moviedir/$folder/$name" ] && db_query "UPDATE File SET Size=$(file_size "$moviedir/$folder/$name") WHERE MD5='$md5' AND Folder='$folder' AND Name='$name';"
done

exit 0
@ -153,11 +155,6 @@ function db_exist_md5() {
fi
}

# db_F-ID_getPath <F-ID> -> <Path>
function db_id_getPath() {
db_query "SELECT CONCAT('$moviedir/', Folder, '/', Name) FROM File WHERE ID=$1;"
}

case "$mode" in
"a") #in_add
md5_in_add