juan_valdez Posted March 7, 2010 Report Share Posted March 7, 2010 Howdy,I saw the excellent (Windows GUI) BEncode Editor here, bravo ! Unfortunately, I'm looking to do something a little different.I am hoping to be able to have a command line script (preferably linux capable) replace a single tracker within the b'encoded .torrent file to a different pass key. i.e. http links might be fromprivate-tracker.com/announce.php?passkey=AAA36E6D84CBA8FDC2A1359A25FA6AAAto new passkey ofprivate-tracker.com/announce.php?passkey=BBB6BB55208CEB35A18894855754EBBBI'm not wanting to change anything else.I'm sure there have to be some scripts out there to do this, I just haven't been able to locate them yet.(I plan to drop the resulting modified copy over in another directory that uTorrent is set to scan via "Automatically load .torrents in directory" setting)Thanks for any pointers, didn't want to hijack the great BEncode Editor thread space. Link to comment Share on other sites More sharing options...
Lord Alderaan Posted March 8, 2010 Report Share Posted March 8, 2010 Hmmz, it depends on language you want to use:http://effbot.org/zone/bencode.htmhttp://www.google.com/search?q=bencode+library Link to comment Share on other sites More sharing options...
juan_valdez Posted March 8, 2010 Author Report Share Posted March 8, 2010 Thanks, looks good. I'm thinking PHP is pretty portable, and wouldn't be running this every 5 minutes, so plenty efficient for my needs.Also found http://www.carpetsmoker.net/code/download/changetracker.py.txt for those searching this topic, a python "Simple script to change the tracker(s) of a torrent file" . . . Link to comment Share on other sites More sharing options...
moogly Posted March 8, 2010 Report Share Posted March 8, 2010 And there is an API here about editing .torrent files: http://torrenteditor.com/ Link to comment Share on other sites More sharing options...
juan_valdez Posted March 8, 2010 Author Report Share Posted March 8, 2010 Ahh very nice, I had missed they had a BEncode capable php5 API there. I had glossed over the site once I saw it was an online tool - very nice, but not meeting what I wanted to do.Good catch Moogly, a php API is hard to argue with Link to comment Share on other sites More sharing options...
Lord Alderaan Posted March 8, 2010 Report Share Posted March 8, 2010 I use a PHP library in the Webui Shell. I got it from DWK. You can find it on utorrent trac:http://trac.utorrent.com/trac/browser/webui/webui-shell/trunk/webui_shell/classes/bencode.php Link to comment Share on other sites More sharing options...
juan_valdez Posted March 9, 2010 Author Report Share Posted March 9, 2010 Also useful, thank you.Hopefully, folks will be able to forum search on this in the future to help themselves out. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.