Adding an old rescanner. Fixes #52.

This commit is contained in:
Dessalines 2019-02-20 15:08:43 -08:00
parent e5fdc5afaf
commit a2af1c2fc4
1 changed files with 6 additions and 0 deletions

6
scripts/rescan_olds.sh Normal file
View File

@ -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