You are not logged in.

#1 2010-05-30 06:15:51

kazuo
Member
From: São Paulo/Brazil
Registered: 2008-03-18
Posts: 413
Website

Edit the trackers from a torrent file using vim.

Hi.

I constantly need to edit torrent files to change their trackers. So I wrote a vim plugin to handle this.

The plugin is at http://fma.if.usp.br/~kazuo/torrent.vba

You need hunnyb (in aur) OR bittorent (the original one, is in extra/bittorent) and a vim compiled with python.

To use simple install the vba and open a torrent file, in the buffer you see a list of trackers from the torrent file, edit it, one tracker per line with a leading space, and save it, its automatic regenerate the torrent file. (Dont touch the other lines in the buffer)

This is the first version, please try it and report back.

The buffer is somewhat more complicated than needed because I like to add other infos to be edited, so I'm using ConfigParser.

I hope its is useful to someone!

EDIT:
New version 0.5.5: Support for tiers. Now its do the correct with tiers, to separate a tier from other use a line containing a '.' (dot) with leading spaces, for example

[torrent]
trackers =
 http://tracker.publicbt.com:80/announce
 udp://tracker.publicbt.com:80/announce
 .
 http://tracker.thepiratebay.org/announce
 udp://tracker.thepiratebay.org:80/announce
 .
 http://tracker.openbittorrent.com/announce
 udp://tracker.openbittorrent.com:80/announce

0.5.6: Tiers now can be separated by empty lines (like utorrent tracker list)

Last edited by kazuo (2010-05-30 10:06:58)

Offline

Board footer

Powered by FluxBB