The seedbox.tasks.base Module

Provides the basic definition for a task.

Also handles execution and basic error handling.

class seedbox.tasks.base.BaseTask(media_file)

Bases: object

Provides the base definition of a task.

add_gen_files(files)

Adds media files included within an archived file.

Enables parallel processing.

Parameters:files – a list of media files produced by a plugin to be included on the torrent.
execute()

Perform action associated with task for the provided media_file.

static is_actionable(media_file)

Perform check to determine if action should be taken.

Parameters:media_file – the file to inspect to determine if action is necessary
Returns:a flag indicating to act or not to act
Return type:boolean