Skip to content

bulk make your torrents, if that was not already obvious.

Notifications You must be signed in to change notification settings

tendermario/bulk-mktorrent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bulk-mktorrent

bulk-mktorrent

"Finally, I can reup all my shit, again!"

Usage:

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/

Dumb install

  1. Make sure you have python 3 on your machine.
  2. Clone this repo.
  3. pip install -r requirements.txt
  4. Create a .env file with your announceurl after this (no spaces) ANNOUNCE_URL=
  5. run ./main.py (this installer will now attempt to install mktorrent for you if you don't have it)

Proper install

  1. Install mktorrent: https://github.com/pobrn/mktorrent
  2. Check which python you have.
  3. Install virtualenv.
  4. Clone this repo.
  5. Go into this repo.
  6. Create a virtualenv for this repo.
  7. Enter the virtualenv.
  8. Install the requirements.
  9. 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
  1. Update .env file to have YOUR announce URL.

Notes:

  • 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

About

bulk make your torrents, if that was not already obvious.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published