parent
10d8bb1a39
commit
f3eafa3a31
@ -83,6 +83,8 @@ function md5_in_add() {
|
|||||||
else
|
else
|
||||||
db_query "UPDATE File SET TTSync=$TTSYNC_EXIST WHERE MD5='$md5' AND Folder='$folder' AND Name='$name';"
|
db_query "UPDATE File SET TTSync=$TTSYNC_EXIST WHERE MD5='$md5' AND Folder='$folder' AND Name='$name';"
|
||||||
fi
|
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
|
done
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
@ -153,11 +155,6 @@ function db_exist_md5() {
|
|||||||
fi
|
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
|
case "$mode" in
|
||||||
"a") #in_add
|
"a") #in_add
|
||||||
md5_in_add
|
md5_in_add
|
||||||
|
Loading…
Reference in New Issue
Block a user