• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

So I wrote a .torrent file decoder.

notfred

Lifer
Here's the code (in perl) and Here's an example of the output

I was writing a CGI script that kept making calls to someone else's python script to decode .torrent files, and then it was parsing the output of the python script for the required information. I figured I'd write my own... it should be faster.

Anyway, the decoder is above. If you want to run it, here are directions:
You must have perl (download it here for windows) installed.
Download the file at the top of this page.
Rename the file from 'btdecode.txt' to 'btdecode.pl'
open a command prompt, go to the directory where you saved the script, and type "perl btdecode.pl somefile.torrent" where "somefile.torrent" is the path to any .torrent file.

I thought it was interesting the way the files are put together, if anyone else is interested, this will give you a hierarchical (probably spelled wrong) view of how they're constructed of dictionaries, lists, strings, and integers.
 
Originally posted by: notfred
I think I need to fnd a geekier forum, you guys are pathetic.

LOL. 😀 Pretty cool; if I weren't still working on my paper (almost done!), I'd look into it in more depth.

Rob
 
Originally posted by: Skoorb
.torrent file decoder just what I've always wanted!

no doubt, I don't think I understood a bit of what he was talking about....though I'm a networker, not programmer
 
Back
Top