WIP
This commit is contained in:
parent
63c8da0e8f
commit
bad7a85cb9
@ -76,9 +76,16 @@ function main() {
|
||||
#for each ID with an old check date ...
|
||||
ID=$line
|
||||
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
|
||||
}
|
||||
|
||||
|
||||
MD5=$(db_query "SELECT MD5 FROM File WHERE ID=$ID;")
|
||||
done
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user