flexget.components.bittorrent.torrent_alive module#

class flexget.components.bittorrent.torrent_alive.TorrentAlive[source]#

Bases: object

on_task_filter(task, config)[source]#
on_task_output(task, config)[source]#
prepare_config(config)[source]#
schema = {'oneOf': [{'type': 'boolean'}, {'type': 'integer'}, {'additionalProperties': False, 'properties': {'min_seeds': {'type': 'integer'}, 'reject_for': {'format': 'interval', 'type': 'string'}}, 'type': 'object'}]}#
class flexget.components.bittorrent.torrent_alive.TorrentAliveThread(tracker, info_hash)[source]#

Bases: Thread

run()[source]#

Method representing the thread’s activity.

You may override this method in a subclass. The standard run() method invokes the callable object passed to the object’s constructor as the target argument, if any, with sequential and keyword arguments taken from the args and kwargs arguments, respectively.

_counter = count(0)#
flexget.components.bittorrent.torrent_alive.get_http_seeds(url, info_hash)[source]#
flexget.components.bittorrent.torrent_alive.get_scrape_url(tracker_url, info_hash)[source]#
flexget.components.bittorrent.torrent_alive.get_tracker_seeds(url, info_hash)[source]#
flexget.components.bittorrent.torrent_alive.get_udp_seeds(url, info_hash)[source]#
flexget.components.bittorrent.torrent_alive.max_seeds_from_threads(threads)[source]#

Join the threads and return the maximum seeds found from any of them.

Parameters:

threads – A list of started TorrentAliveThread

Returns:

Maximum seeds found from any of the threads

flexget.components.bittorrent.torrent_alive.register_plugin()[source]#