torrents.csv/scripts/update.sh

9 lines
338 B
Bash
Executable File

# This fetches from several torrent websites for new updates
mkdir ../torrents
cd ../new_torrents_fetcher
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