From ac62cf4935279445c18eeddbce97aa1381df1fc5 Mon Sep 17 00:00:00 2001 From: 6543 Date: Fri, 8 Feb 2019 00:16:38 +0100 Subject: [PATCH] add md5 export ability --- tools/db/import-md5-list | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/db/import-md5-list b/tools/db/import-md5-list index 243bdfb..5abf887 100755 --- a/tools/db/import-md5-list +++ b/tools/db/import-md5-list @@ -93,12 +93,12 @@ function md5_in_del() { } function md5_out_exist() { - db_query "SELECT CONCAT(MD5, ' ', ' ' ,'$moviedir/', Folder, '/', Name) FROM File WHERE TTSync=$TTSYNC_EXIST OR TTSync=$TTSYNC_BACKUP;" + db_query "SELECT CONCAT(MD5, ' ', ' ' ,'$moviedir/', Folder, '/', Name) FROM File WHERE TTSync=$TTSYNC_EXIST OR TTSync=$TTSYNC_BACKUP;" >> $md5 exit 0 } function md5_out_del() { - db_query "SELECT CONCAT(MD5, ' ', ' ' ,'$moviedir/', Folder, '/', Name) FROM File WHERE TTSync=$TTSYNC_DEL;" + db_query "SELECT CONCAT(MD5, ' ', ' ' ,'$moviedir/', Folder, '/', Name) FROM File WHERE TTSync=$TTSYNC_DEL;" >> $md5 exit 0 }