Expose block_ip_range() to plugins.
This commit is contained in:
parent
c9caab1b4d
commit
2eec78f9fb
|
@ -142,3 +142,8 @@ class PluginManager(deluge.pluginmanagerbase.PluginManagerBase,
|
||||||
def get_torrent_list(self):
|
def get_torrent_list(self):
|
||||||
"""Returns a list of torrent_id's in the current session."""
|
"""Returns a list of torrent_id's in the current session."""
|
||||||
return component.get("TorrentManager").get_torrent_list()
|
return component.get("TorrentManager").get_torrent_list()
|
||||||
|
|
||||||
|
def block_ip_range(self, range):
|
||||||
|
"""Blocks the ip range in the core"""
|
||||||
|
return self.core.export_block_ip_range(range)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue