Method

GetTorrentAnnounceUris

ModuleFileContent
LibraryFileContent
Action


Returns all announce URIs contained within the announce and announce-list structures contained inside a torrent file.


Parameters

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


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

In v3.1 and earlier FileName must be used instead.  While the earlier name will still work, we recommend that, from v3.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.1 and older.
FileContent.GetTorrentAnnounceUris(FilePath:"c:\\torrents\\myTorrent.torrent");


Platforms
  • Windows
  • Linux
  • MacOS
  • Solaris Intel
  • Solaris SPARC
Notes