You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Heretic 32b043c533
Data updates.
2 days ago
scripts Create indexes on import. 3 weeks ago
tools Moving from glob to jwalk 4 weeks ago
.gitignore Moving from bash script to rust scripts. 2 months ago Moving from bash script to rust scripts. 2 months ago
torrents.csv Data updates. 2 days ago


How the torrents.csv file looks

# torrents here...

Uploading / Adding Torrents from a Directory

An upload, consists of making a pull request after running the scan script, which adds torrents from a directory you choose to the torrent.db file, after checking that they aren't already there, and that they have seeders.



Fork this repo.

git clone[MY_USER]/torrents-csv-data
cd torrents-csv-data

# Import the current csv to a sqlite3 db file, to use as a consistent store.

Scanning a directory

# Run
pushd ~/git/torrents-csv-data/tools

cargo run --bin scan -- -f ../torrents.db -d MY_TORRENTS_DIR

# `MY_TORRENTS_DIR` is `~/.local/share/data/qBittorrent/BT_backup/` for qBittorrent on linux, but you can search for where your torrents are stored for your client.

# Export the db back to a torrents.csv file

# Add your torrents, commit
git add torrents.csv
git commit -am "Adding [MY_USER] torrents"
git push

# Now do a pull request

Updating Seeder / Leecher counts

This script will update seeder / leecher counts for torrents with seeders > 0.

pushd ~/git/torrents-csv-data/tools

cargo run --bin prune -- -f ../torrents.db -d X_DAYS

# `X_DAYS` scrapes torrents that haven't been scraped in X days.
# IE 30 will scrape torrents that haven't been scraped in the last month.