Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Method

GetTorrentInfo

ModuleFileContent
LibraryFileContent
Action

Excerpt
Returns information contained inside a torrent file.

Parameters

FilePath (string; required): The full path of the torrent file.

 

Note

The FilePath parameter name is only available from v3.3 2 onwards.

In v3.2 1 and earlier FileName must be used instead.  While the earlier name will still work, we recommend that, from v3.3 2 onwards, FilePath is used instead.

Return values

Comment (string): The comment field contained in the torrent, if it exists.

CreatedBy (string): This typically describes the software used to create the torrent, if it exists.

CreationDate (string): This is the creation date of the torrent. This is not the creation date on disk.

NumberOfSignatures (string): The number of signatures contained within the signatures structure inside the torrent.

Example

Get the files described in a torrent called myTorrent.torrent.

This uses the newer FilePath parameter name. Replace with FileName for v3.2 1 and older.
Code Block
FileContent.GetTorrentInfo(FilePath:"c:\\torrents\\myTorrent.torrent");
Platforms
  • Windows
  • Linux
  • MacOS
  • Solaris Intel
Notes