From c257c0a57475a658a253c25c1bf69c7445f30a92 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Fri, 8 Feb 2019 10:35:06 -0800 Subject: [PATCH] Using a custom torrent save dir for update --- README.md | 2 +- scripts/update.sh | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index ca549a4..d28c3f7 100644 --- a/README.md +++ b/README.md @@ -99,7 +99,7 @@ Then [click here](https://gitlab.com/dessalines/torrents.csv/merge_requests/new) ``` git clone https://gitlab.com/dessalines/torrents.csv cd torrents.csv/scripts -./update.sh +./update.sh SAVE_TORRENT_DIR ``` ## How the .csv file looks diff --git a/scripts/update.sh b/scripts/update.sh index d232bf9..b2a687b 100755 --- a/scripts/update.sh +++ b/scripts/update.sh @@ -1,8 +1,7 @@ # 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 +cargo run --release -- -s "$1" -t ../torrents.csv.seeders.desc rm ../torrents.csv.seeders.desc cd ../scripts -. scan_torrents.sh torrents +. scan_torrents.sh "$1"