This commit is contained in:
6543 2019-05-10 19:59:26 +02:00
parent 63c8da0e8f
commit bad7a85cb9

View File

@ -76,9 +76,16 @@ function main() {
#for each ID with an old check date ... #for each ID with an old check date ...
ID=$line ID=$line
TTSync=$(db_query "SELECT TTSync FROM File WHERE ID=$ID;") TTSync=$(db_query "SELECT TTSync FROM File WHERE ID=$ID;")
FILE=$(db_query "SELECT CONCAT('$moviedir/', Folder, '/', Name) FROM File WHERE ID=$ID;")
if [ -f "$FILE"]; then
SIZE=$(db_query "SELECT Size FROM File WHERE ID=$ID;")
[ "$SIZE" != "$(file_size "$FILE")"] && {
echo "FILE CHANGE: $FILE"
#recalc md5 ... + check
#update DB
}




SIZE=$(db_query "SELECT Size FROM File WHERE ID=$ID;")
MD5=$(db_query "SELECT MD5 FROM File WHERE ID=$ID;") MD5=$(db_query "SELECT MD5 FROM File WHERE ID=$ID;")
done done