TorrentParser : Fast .torrent metadata parser (v1 / v2 / hybrid)
A native bencode parser for .torrent files, written entirely using Directory Opus's scripting API, with a strong focus on performance.
Features:
- Provides the following metadata :
- File name, total file count, and total content size
- Creation date and computed age.
- Piece size and piece count (exact when derived from the classic pieces field; computed for pure v2 torrents)
- Private-flag, Multifile and source tag (commonly used by private trackers for cross-seeding)
- Full tracker list (announce + announce-list, de-duplicated)
- Comment, Created by, Publisher and Publisher URL.
- Version, meta-version (if any).
- Encoding field if any.
- Info hash (SHA-1) and, for v2/hybrid torrents, the v2 info hash (SHA-256)
- A ready-to-use magnet link (btih for v1, plus btmh for v2/hybrid)
- Correct text decoding for non-UTF-8 torrents, honoring the torrent's declared encoding/codepage, with user's configurable override per encoding/codepage.
Requirements:
- Directory Opus 13.24.1 or later.
Installation:
Then install the script as usual.
Usage
After installation, you can access all the columns as usual, for display, filtering, infotips, etc.
Notes
- Since v1.0 was developed rather quickly, there may still be a few bugs to iron out. Feel free to let me know if you run into any.
- If a torrent declares an encoding that isn't supported by the Opus scripting decoder, the script will fall back to UTF-8 instead of throwing an error (a warning will be shown in the Script Log).
- You can override any encoding/code page with your preferred one through the built-in configuration dialog, accessible via Configuration in the Script Management window.
Greetings
- To Opus team as usual.
- @bytim for the idea.
Changelog
v1.0 (07-jul-2026) :
- Initial release.

