tribler.core.watch_folder.manager

Attributes

logger

Classes

WatchFolderManager

Watch the torrent files in a folder.

Module Contents

tribler.core.watch_folder.manager.logger
class tribler.core.watch_folder.manager.WatchFolderManager(session: tribler.core.session.Session, task_manager: ipv8.taskmanager.TaskManager)

Watch the torrent files in a folder.

Add torrents that are in this folder and remove torrents that are removed while we are watching.

session
task_manager
start() None

Start the periodic processing of the watch folder.

check() bool

Check the watch folder for new torrents and start downloading them.

async process_torrent_file(path: pathlib.Path) None

Process an individual torrent file.