From ca6c232f4be8a6627fd532950e1b5558ebff3ded Mon Sep 17 00:00:00 2001 From: Dessalines Date: Thu, 7 Feb 2019 08:39:42 -0800 Subject: [PATCH] Run new torrents fetcher with new torrents by seeder count. Fixes #45 --- scripts/update.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/update.sh b/scripts/update.sh index 289f8e3..d232bf9 100755 --- a/scripts/update.sh +++ b/scripts/update.sh @@ -1,6 +1,8 @@ # This fetches from several torrent websites for new updates mkdir ../torrents cd ../new_torrents_fetcher -cargo run --release -- -s ../torrents -t ../torrents.csv +sort -r --field-separator=';' -n --key=5 ../torrents.csv > ../torrents.csv.seeders.desc +cargo run --release -- -s ../torrents -t ../torrents.csv.seeders.desc +rm ../torrents.csv.seeders.desc cd ../scripts -. scan_torrents.sh torrents \ No newline at end of file +. scan_torrents.sh torrents