Version: 4
restore

Contents

Method

GetTorrentInfo

ModuleFileContent
LibraryFileContent
Action

Returns information contained inside a torrent file.

Parameters

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

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

In v3.2 and earlier FileName must be used instead.  While the earlier name will still work, we recommend that, from v3.3 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 and older.
FileContent.GetTorrentInfo(FilePath:"c:\\torrents\\myTorrent.torrent");
Platforms
  • Windows
  • Linux
  • MacOS
  • Solaris Intel
Notes