From a2af1c2fc46ea428b2a489cb01aad159270eb23e Mon Sep 17 00:00:00 2001 From: Dessalines Date: Wed, 20 Feb 2019 15:08:43 -0800 Subject: [PATCH] Adding an old rescanner. Fixes #52. --- scripts/rescan_olds.sh | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 scripts/rescan_olds.sh diff --git a/scripts/rescan_olds.sh b/scripts/rescan_olds.sh new file mode 100644 index 0000000..c96dac1 --- /dev/null +++ b/scripts/rescan_olds.sh @@ -0,0 +1,6 @@ +# Rescan everything that hasn't been scanned in a while +awk -F';' '$8 < $(date -d "6 months ago" "+%s")' torrents.csv | cut -d ';' -f1 > hashes_to_rescan +grep -vFf hashes_to_rescan infohashes_scanned.txt > new_infohashes_scanned +rm hashes_to_rescan +mv new_infohashes_scanned infohashes_scanned.txt +