Author: andar
Revision: 5582
Log:
Use the proper download_location when adding a newly created torrent to
the session
Diff:
Modified: trunk/deluge/core/core.py
===================================================================
--- trunk/deluge/core/core.py 2009-07-30 21:50:16 UTC (rev 5581)
+++ trunk/deluge/core/core.py 2009-07-30 22:04:23 UTC (rev 5582)
@@ -647,7 +647,9 @@
trackers=trackers)
log.debug("torrent created!")
if add_to_session:
- self.add_torrent_file(os.path.split(target)[1], open(target,
"rb").read(), None)
+ options = {}
+ options["download_location"] = os.path.split(path)[0]
+ self.add_torrent_file(os.path.split(target)[1], open(target,
"rb").read(), options)
@export
def upload_plugin(self, filename, plugin_data):
@@ -663,7 +665,9 @@
@export
def rescan_plugins(self):
- """Rescans the plugin folders for new plugins"""
+ """
+ Rescans the plugin folders for new plugins
+ """
component.get("CorePluginManager").scan_for_plugins()
@export
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"deluge-commit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/deluge-commit?hl=en
-~----------~----~----~----~------~----~------~--~---