struct

QBittorrent::Model::Tracker

Inherits JSON::Serializable < Struct < Value < Object

A tracker entry for a torrent, as returned by torrents/trackers (see ext/api-map.md ยง3). The list also includes synthetic ** [DHT] **, ** [PeX] ** and ** [LSD] ** pseudo-rows (with tier -1).

status decodes through the tolerant TrackerStatusConverter, so an unknown/null status becomes nil instead of raising. Fields are nilable to tolerate partial payloads and build drift.

Constructors

new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

msg

Tracker status/error message.

Source
num_downloaded

Number of completed downloads reported by this tracker.

Source
num_leeches

Number of leeches reported by this tracker.

Source
num_peers

Number of peers reported by this tracker.

Source
num_seeds

Number of seeds reported by this tracker.

Source
status

Tracker status. Decoded tolerantly (unknown/null => nil).

Source
tier

Tracker tier (-1 for the DHT/PeX/LSD pseudo-rows).

Source
url

Tracker announce URL (or a ** [DHT/PeX/LSD] ** pseudo-URL).

Source