Versions Compared

Key

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

GetTorrentAnnounceUris

ModuleFileContent
LibraryFileContent
Action

Excerpt
Returns all announce URI contained within the announce and announce-list structures 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

AnnounceUri (string): An announce URI contained in the torrent file.

Example

Get on or more announce URI of a torrent called myTorrent.torrent.

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