Here's some of my random code of the various things I've been trying (some, of which have been commented out):
Code: Select all
#unique_id = deluge.core.export_add_torrent_file(filename, fd, None)
#if component.get("Core") is None:
# print 'there is no core!'
#self.core = self.plugin
components = component.getAll()
print components.keys()
core = component.get('PluginManager').get_core()
#unique_id = component.get("Core").export_add_torrent_url(location, path, None)
#from deluge.plugins.coreclient import client
#unique_id = aclient.core_add_torrent_file(filename, fd, None)
#self.interface.torrent_model_append(unique_id)
#fileArray = {filename:filename}
#component.get('AddTorrentDialog').add_from_files(fileArray)