You are not logged in.

#1 2009-12-13 20:49:15

rusty99
Member
Registered: 2009-03-18
Posts: 253

Edit .torrent files [solved]

Does anyone know of a cli app that cleanly handles editing .torrent files or is this doable in rtorrent somehow? rutorrent seems to handle it ok on my seedbox.
The reason I ask is, a site I'm a member of encourages long term seeding which is set by interval=n at the end of the tracker info, ie

https://xxxxxx.xx/announce.php?passkey=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&interval=1

I've tried transmission which will edit the .torrent but it adds an id hash, shown in the top example below, whereas I want to be like the second example.

ftp://ftp.archlinux.org/iso/2009.08/archlinux-2009.08-netinstall-x86_64.iso90fe4805a22c8f8c.torrent 
instead of 
ftp://ftp.archlinux.org/iso/2009.08/archlinux-2009.08-netinstall-x86_64.iso.torrent

Last edited by rusty99 (2009-12-14 15:04:53)

Offline

#2 2009-12-13 21:50:56

Dheart
Member
From: Sofia, Bulgaria
Registered: 2006-10-26
Posts: 956

Re: Edit .torrent files [solved]

Wouldn't sed work? I've never used it, nor am I familiar with the syntax, but it sure sounds like the application you're looking for.
Have fun with the man pages or ask someone to figure out the exact command for you.


My victim you are meant to be
No, you cannot hide nor flee
You know what I'm looking for
Pleasure your torture, I will endure...

Offline

#3 2009-12-14 00:02:26

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

Re: Edit .torrent files [solved]

To parse bencode I use http://pypi.python.org/pypi/BitTorrent-bencode/5.0.8 is a python package, I use it interactively with ipython

Offline

#4 2009-12-14 15:04:34

rusty99
Member
Registered: 2009-03-18
Posts: 253

Re: Edit .torrent files [solved]

kazuo wrote:

To parse bencode I use http://pypi.python.org/pypi/BitTorrent-bencode/5.0.8 is a python package, I use it interactively with ipython

That looks decent, thanks.

Offline

Board footer

Powered by FluxBB