"Finally, I can reup all my shit, again!"
main.py <rootdir>
This will take all folders inside and create a torrent for each one. Does not go deeper than the first level.
I recommend running this from the directory that you want the torrent files to be in. E.g.:
cd ~/mytorrentfiles
~/bulk-mktorrent/main.py ~/mymusicfolder/
- Make sure you have python 3 on your machine.
- Clone this repo.
pip install -r requirements.txt
- Create a
.env
file with your announceurl after this (no spaces)ANNOUNCE_URL=
- run
./main.py
(this installer will now attempt to install mktorrent for you if you don't have it)
- Install mktorrent: https://github.com/pobrn/mktorrent
- Check which python you have.
- Install virtualenv.
- Clone this repo.
- Go into this repo.
- Create a virtualenv for this repo.
- Enter the virtualenv.
- Install the requirements.
- Copy .env.example to .env
Steps 1-8:
python --version
python3 --version
pip install virtualenv
git clone git@github.com:tendermario/bulk-mktorrent.git
cd bulk-mktorrent
virtualenv -p python3 .venv
source .venv/bin/activate
pip install -r requirements.txt
cp .env.example .env
- Update
.env
file to have YOUR announce URL.
- If you mess up and get stuck with a ton of .torrent files and want to delete them all from the current directory, use the handy command:
rm *.torrent
-
-o
in mktorrent's cli tool does not seem to work to target a directory for the torrents output location, so unfortunately, these torrents will be created in the current directory for now. Maybe we can move all these files after they are created one day. -
Probably doesn't work with things with double quotations in the names right now.
-
Why only first level? This makes us avoid making a torrent for CD1, CD2, and suits my needs. If you think having multiple levels would be nice, feel free to make a PR.
-
Logo made from 30 seconds of tinkering with, and therefore courtesy of, http://recursivedrawing.com