flexget.plugins.clients.rtorrent module#
- class flexget.plugins.clients.rtorrent.HTTPDigestTransport(scheme, digest_auth, username, password, session, *args, **kwargs)[source]#
Bases:
TransportTransport that uses requests to support Digest authentication.
- class flexget.plugins.clients.rtorrent.RTorrent(uri, username=None, password=None, digest_auth=None, session=None)[source]#
Bases:
objectrTorrent API client.
- default_fields = ('hash', 'name', 'up_total', 'down_total', 'down_rate', 'is_open', 'is_active', 'custom1', 'custom2', 'custom3', 'custom4', 'custom5', 'state', 'complete', 'bytes_done', 'down.rate', 'left_bytes', 'ratio', 'base_path', 'load_date', 'timestamp_finished')#
- required_fields = ('hash', 'name', 'base_path')#
- class flexget.plugins.clients.rtorrent.RTorrentInputPlugin[source]#
Bases:
RTorrentPluginBase- schema = {'additionalProperties': False, 'properties': {'custom_fields': {'items': {'type': 'string'}, 'type': 'array'}, 'digest_auth': {'default': False, 'type': 'boolean'}, 'fields': {'oneOf': [{'items': {'enum': ['hash', 'name', 'up_total', 'down_total', 'down_rate', 'is_open', 'is_active', 'custom1', 'custom2', 'custom3', 'custom4', 'custom5', 'state', 'complete', 'bytes_done', 'down.rate', 'left_bytes', 'ratio', 'base_path', 'load_date', 'timestamp_finished'], 'title': 'single value', 'type': 'string'}, 'minItems': 1, 'title': 'multiple values', 'type': 'array', 'uniqueItems': False}, {'enum': ['hash', 'name', 'up_total', 'down_total', 'down_rate', 'is_open', 'is_active', 'custom1', 'custom2', 'custom3', 'custom4', 'custom5', 'state', 'complete', 'bytes_done', 'down.rate', 'left_bytes', 'ratio', 'base_path', 'load_date', 'timestamp_finished'], 'title': 'single value', 'type': 'string'}]}, 'password': {'type': 'string'}, 'uri': {'type': 'string'}, 'username': {'type': 'string'}, 'view': {'default': 'main', 'type': 'string'}}, 'required': ['uri'], 'type': 'object'}#
- class flexget.plugins.clients.rtorrent.RTorrentOutputPlugin[source]#
Bases:
RTorrentPluginBase- on_task_abort(task, config)#
Make sure all temp files are cleaned up when entries are learned.
- on_task_learn(task, config)[source]#
Make sure all temp files are cleaned up when entries are learned.
- schema = {'additionalProperties': False, 'properties': {'action': {'default': 'add', 'enum': ['update', 'delete', 'add', 'purge'], 'type': 'string'}, 'custom1': {'type': 'string'}, 'custom2': {'type': 'string'}, 'custom3': {'type': 'string'}, 'custom4': {'type': 'string'}, 'custom5': {'type': 'string'}, 'custom_fields': {'additionalProperties': {'type': 'string'}, 'type': 'object'}, 'digest_auth': {'default': False, 'type': 'boolean'}, 'fast_resume': {'default': False, 'type': 'boolean'}, 'message': {'type': 'string'}, 'mkdir': {'default': True, 'type': 'boolean'}, 'password': {'type': 'string'}, 'path': {'type': 'string'}, 'priority': {'type': 'string'}, 'start': {'default': True, 'type': 'boolean'}, 'uri': {'type': 'string'}, 'username': {'type': 'string'}}, 'required': ['uri'], 'type': 'object'}#
- class flexget.plugins.clients.rtorrent.RTorrentPluginBase[source]#
Bases:
object- priority_map = {'high': 3, 'low': 1, 'medium': 2, 'off': 0}#
- class flexget.plugins.clients.rtorrent.SCGITransport(*args, **kwargs)[source]#
Bases:
TransportPublic domain SCGITrannsport implementation from: JohnDoee/autotorrent.