I'm new to Deluge plugin development but thinking of writing a plugin that lets you add a torrent (that you already had downloaded in past) and it recursively auto scans your drive for the files (pieces) and if they exist, then sets that to be the download location so it can seed from there.
Question is in core.py of a custom plugin, I know
Code: Select all
component.get("TorrentManager")[torrent_id].get_files()
But is it possible to call get_files() BEFORE the torrent is added to the TorrentManager?
Or do I have to decode the .torrent file manually?