flexget.components.ftp.ftp_download module#

class flexget.components.ftp.ftp_download.OutputFtp[source]#

Bases: object

Ftp Download plugin.

input-url: ftp://<user>:<password>@<host>:<port>/<path to file> Example: ftp://anonymous:anon@my-ftp-server.com:21/torrent-files-dir

config:
ftp_download:

use-ssl: <True/False> ftp_tmp_path: <path> delete_origin: <True/False> download_empty_dirs: <True/False>

Todo:
  • Resume downloads

  • create banlists files

  • validate connection parameters

check_connection(ftp, config, ftp_url, current_path)[source]#
Parameters:

current_path (PurePosixPath)

ftp_connect(config, ftp_url, current_path)[source]#
Parameters:

current_path (PurePosixPath)

ftp_down(ftp, file_name, tmp_path, config, ftp_url, current_path)[source]#
Parameters:
ftp_walk(ftp, tmp_path, config, ftp_url, current_path)[source]#
Parameters:
on_task_download(task, config)[source]#
on_task_output(task, config)[source]#

Count this as an output plugin.

prepare_config(config, task)[source]#
schema = {'additionalProperties': False, 'properties': {'delete_origin': {'default': False, 'type': 'boolean'}, 'download_empty_dirs': {'default': False, 'type': 'boolean'}, 'ftp_tmp_path': {'format': 'path', 'type': 'string'}, 'use-ssl': {'default': False, 'type': 'boolean'}}, 'type': 'object'}#
flexget.components.ftp.ftp_download.register_plugin()[source]#