mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 19:44:52 +00:00
again, to prevent upgrade problems, disable torrentpieces from being shown as available
This commit is contained in:
parent
3e5ad3e60d
commit
2037ceba69
1 changed files with 4 additions and 3 deletions
|
@ -60,9 +60,10 @@ class PluginManager:
|
|||
# to be by design.
|
||||
mod = __import__(modname, globals(), locals(), [''])
|
||||
if 'deluge_init' in dir(mod):
|
||||
print "Initialising plugin",modname
|
||||
mod.deluge_init(path)
|
||||
self.available_plugins[mod.plugin_name] = mod
|
||||
if modname != "TorrentPieces":
|
||||
print "Initialising plugin",modname
|
||||
mod.deluge_init(path)
|
||||
self.available_plugins[mod.plugin_name] = mod
|
||||
|
||||
def get_available_plugins(self):
|
||||
return self.available_plugins.keys()
|
||||
|
|
Loading…
Add table
Reference in a new issue