Using a custom torrent save dir for update

This commit is contained in:
Dessalines 2019-02-08 10:35:06 -08:00
parent bb617d4c37
commit c257c0a574
2 changed files with 3 additions and 4 deletions

View File

@ -99,7 +99,7 @@ Then [click here](https://gitlab.com/dessalines/torrents.csv/merge_requests/new)
``` ```
git clone https://gitlab.com/dessalines/torrents.csv git clone https://gitlab.com/dessalines/torrents.csv
cd torrents.csv/scripts cd torrents.csv/scripts
./update.sh ./update.sh SAVE_TORRENT_DIR
``` ```
## How the .csv file looks ## How the .csv file looks

View File

@ -1,8 +1,7 @@
# This fetches from several torrent websites for new updates # This fetches from several torrent websites for new updates
mkdir ../torrents
cd ../new_torrents_fetcher cd ../new_torrents_fetcher
sort -r --field-separator=';' -n --key=5 ../torrents.csv > ../torrents.csv.seeders.desc 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 rm ../torrents.csv.seeders.desc
cd ../scripts cd ../scripts
. scan_torrents.sh torrents . scan_torrents.sh "$1"