Pkg.Torrent
— API for parsing torrent files¶
Overview¶
The Pkg.Torrent
module contains the API for parsing torrent files.
Module API¶
Pkg.Torrent module API.
Classes:
This class represents a torrent file.
- class TorrentObject¶
Bases:
Pro.Core.CFFObject
This class represents a torrent file.
Methods:
Returns the the creation time if available; otherwise returns an invalid date-time.
Returns the torrent contents as a dictionary.
GetFiles
()Returns the files as a list.
Returns the trackers as a dictionary.
- CreationDate() → Pro.Core.NTDateTime¶
- Returns
Returns the the creation time if available; otherwise returns an invalid date-time.
- Return type
- GetDictionary() → Dict[Any, Any]¶
- Returns
Returns the torrent contents as a dictionary.
- Return type
Dict[Any, Any]
- GetFiles() → List[bytes]¶
- Returns
Returns the files as a list.
- Return type
List[bytes]
- GetTrackers() → Dict[Any, Any]¶
- Returns
Returns the trackers as a dictionary.
- Return type
Dict[Any, Any]