Go to file
Heretic 88669d92df Data updates. 2023-07-30 11:22:44 -04:00
scripts Create indexes on import. 2023-03-01 17:21:07 -05:00
tools Upgrading deps. 2023-05-01 14:16:22 -04:00
.gitignore Moving from bash script to rust scripts. 2023-01-08 10:20:29 -05:00
README.md Moving from bash script to rust scripts. 2023-01-08 10:20:29 -05:00
torrents.csv Data updates. 2023-07-30 11:22:44 -04:00



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 https://gitea.com/[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.