Player (66)
Joined: 4/21/2011
Posts: 232
I made a command line torrent maker. http://pastebin.com/Y9cdfD1N Its in python3, let me know if you need help getting it going, or have suggestions for improvement.
Emulator Coder, Site Developer, Former player
Joined: 11/6/2004
Posts: 833
The list of features a good torrent maker needs is pretty extensive. Off the top of my head:
  • Trackerless mode support (list DHT nodes instead of trackers)
  • Multiple trackers and failover (more annoying than useful)
  • Private mode
  • Directory/batch torrent support
Not that it's a huge list, and for tasvideos.org what you have would probably suffice. If you want to make it remotely feature-complete for general purpose use, these are next. Also, you might want to update the topic to "CLI torrent maker" to be more accurate. I thought you were going to ask what to use and I would suggest rtorrent
Emulator Coder, Skilled player (1113)
Joined: 5/1/2010
Posts: 1217
I have written a related script that: - Downloads mirror from Archive.org - Uses mplayer to compute length for it (in [h:]mm:ss) - Uses mktorrent to make a torrent with for it (complete with webseed). It can optionally override the torrent name, for when the right name contains comma or other characters archive.org doesn't like. It is part bash and part lua, so it is probably not useful in itself, but the idea would be.