flexget.plugins.operate.free_space module#

class flexget.plugins.operate.free_space.PluginFreeSpace[source]#

Bases: object

Aborts a task if an entry is accepted and there is less than a certain amount of space free on a drive.

static prepare_config(config, task)[source]#
on_task_download(task, config)[source]#
schema = {'oneOf': [{'type': 'number'}, {'additionalProperties': False, 'dependentRequired': {'host': ['user', 'ssh_key_filepath', 'path']}, 'properties': {'abort_if': {'default': 'below', 'enum': ['below', 'above'], 'type': 'string'}, 'allotment': {'default': -1, 'type': 'number'}, 'host': {'type': 'string'}, 'path': {'type': 'string'}, 'port': {'default': 22, 'type': 'integer'}, 'space': {'oneOf': [{'type': 'number'}, {'format': 'size', 'type': 'string'}]}, 'ssh_key_filepath': {'type': 'string'}, 'user': {'type': 'string'}}, 'required': ['space'], 'type': 'object'}]}#
flexget.plugins.operate.free_space.get_free_space(config, task)[source]#

Return folder/drive free space (in megabytes).

flexget.plugins.operate.free_space.register_plugin()[source]#