tribler.core.torrent_checker.healthdataclasses
Attributes
Classes
Source of the Torrent Health information. |
|
An entry that described the health of a torrent at a particular moment in time. |
|
A list of health responses for the given url. |
Module Contents
- tribler.core.torrent_checker.healthdataclasses.MINUTE = 60
- tribler.core.torrent_checker.healthdataclasses.HOUR = 3600
- tribler.core.torrent_checker.healthdataclasses.TOLERABLE_TIME_DRIFT = 60
- tribler.core.torrent_checker.healthdataclasses.TORRENT_CHECK_WINDOW = 60
- tribler.core.torrent_checker.healthdataclasses.HEALTH_FRESHNESS_SECONDS = 14400
- class tribler.core.torrent_checker.healthdataclasses.Source
Bases:
enum.IntEnumSource of the Torrent Health information.
- UNKNOWN = 0
- DHT = 1
- TRACKER = 2
- POPULARITY_COMMUNITY = 3
- class tribler.core.torrent_checker.healthdataclasses.HealthInfo
An entry that described the health of a torrent at a particular moment in time.
- is_valid() bool
Whether the reported seeders and leechers are > 0 and the check was performed at most a minute in the future.
- older_than(other: HealthInfo) bool
Whether this check is older than the given check.
- much_older_than(other: HealthInfo) bool
Whether this check is more than 4 hours older than the given check.
- should_replace(prev: HealthInfo) bool
Whether this check should replace the given check.